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 break a crop, interact a pot etc.
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'
Here's an example that combines the conditions and actions. In this example, if you interact the ripe crop with empty hand, it would be harvested. If you interact it with a seed, it would be replanted.
hologram_action:type:hologramvalue:duration:20text:'{water_bar}'apply-correction:true# apply corrections on each cropvisible-to-all:falsey:2x:0z:0
fake-item (Display a fake item for some time)
fake_item_action:type:fake-itemvalue:duration:25 <- ticksposition:other <- other/playeritem:util:lava_splash_itemy:0 <- y offsetx:0 <- x offsetz:0 <- z offsetvisible-to-all:true
break_action:type:breakvalue:true# whether to trigger "break" event
particle
particle_action:type:particlevalue:particle:FLAMEx:0.5y:0.5z:0.5count:10offset-x:0.5offset-y:0.5offset-z:0.5extra:0.0# Only works when particle is ITEM_CRACKitemStack:customcrops:xxx# Only works when particle is REDSTONE/DUST_COLOR_TRANSITIONcolor:255,0,0scale:1# Only works when particle is DUST_COLOR_TRANSITIONto-color:0,0,255
give-money
money_action:type:give-moneyvalue:100.12
take-money
money_action:type:take-moneyvalue:50.54
title
title_action:type:titlevalue:title:'<green>Hello!</green>'subtitle:'This is the subtitle!'fade-in:20stay:30fade-out:10