The action system offers pre-set effects provided by the plugin. However, you can also add your own actions by using the API. This system can be applied anywhere an action can be triggered, like when you successfully catch a fish, when a competition ends and rewards are given out, or when selling fish.
Action is composed of three parts
type: The action type
value: The arguments of the action
chance: Optional (0~1 Default: 1)
If the value is an integer or a double value, you can use expression for instance
exp_action:
type: exp
value: '{level} * 3'
Action Library
message (Send a message to player)
messages_action:
type: message
value:
- '<#FF4500>[1st] Congratulations! You got the first prize!'
random-message (Send a random message from the list)
fake-item (Display a fake item for some time)
Note: "opposite-yaw" and "yaw" cannot be used at the same time
fake_item_action:
type: fake-item
value:
duration: 25 <- ticks
position: other <- other/player
item: water_effect
use-item-display: true # whether to use item display (1.19.4+)
y: 0 <- y offset
x: 0 <- x offset
z: 0 <- z offset
yaw: 0
opposite-yaw: true
range: 0 # If range = 0, the hologram can only be seen by one player
hologram (Display a hologram for some time)
hologram_action:
type: hologram
value:
duration: 20 <- ticks
text: '{player} caught a {loot}!'
position: player <- other/player
use-text-display: true # whether to use text display (1.19.4+)
rgba: 0,0,0,0
range: 16 # If range = 0, the hologram can only be seen by one player
y: 2 <- y offset
x: 0 <- x offset
z: 0 <- z offset
fish-finder
finder_action:
type: fish-finder
value: false (false: water / true: lava)
message-nearby
message_action:
type: message-nearby
value:
message:
- 'Hello {near}. This message is sent by {player}'
range: 32
item_amount_action:
type: item-amount
value:
# main / off
hand: main
amount: -1
durability
durability_action:
type: durability
value:
# hand / offhand / feet / head / chest /legs
slot: hand
amount: -1
give-item
item_action:
type: give-item
value:
item: CustomFishing:star_rod
amount: 1
to-inventory: false # whether to drop the item or go directly into inventory
give-money
money_action:
type: give-money
value: 100.12
take-money
money_action:
type: take-money
value: 50.54
level
money_action:
type: level
value: -10
context-arg
argument_action:
type: context-arg
value:
test: custom
another: another