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 typevalue:The arguments of the actionchance:Optional (0~1 Default:1)
If the value is an integer or a double value, you can use expression for instance
exp_action:type:expvalue:'{level} * 3'
Action Library
message (Send a message to player)
messages_action:type:messagevalue: - '<#FF4500>[1st] Congratulations! You got the first prize!'
random-message (Send a random message from the list)
title_action:type:titlevalue:title:'<green>GG!</green>'subtitle:'You caught a {nick}'fade-in:20stay:30fade-out:10
random-title
title_action:type:random-titlevalue:titles: - '<green>GG!</green>' - '<green>Good Job!</green>'subtitles: - 'You caught a {loot}' - 'Whoa! Nice catch!' - 'Oh {loot} here we go!' - 'Let''s see what it is!'fade-in:20stay:30fade-out:10
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-itemvalue:duration:25 <- ticksposition:other <- other/playeritem:water_effectuse-item-display:true# whether to use item display (1.19.4+)y:0 <- y offsetx:0 <- x offsetz:0 <- z offsetyaw:0opposite-yaw:truerange:0# If range = 0, the hologram can only be seen by one player
hologram (Display a hologram for some time)
hologram_action:type:hologramvalue:duration:20 <- tickstext:'{player} caught a {loot}!'position:player <- other/playeruse-text-display:true# whether to use text display (1.19.4+)rgba:0,0,0,0range:16# If range = 0, the hologram can only be seen by one playery:2 <- y offsetx:0 <- x offsetz:0 <- z offset