Event Actions
These are special actions that only work with certain events.
KEEP ITEMS
This action only works for player_death
event type. Allows the player to keep their items or xp on death. Possible values: items
, xp
, all
CANCEL DROP
This action only works for block_break
and player_kill
event types. It will completely cancel item drops from the block/entity. It only works on 1.13+.
SET DAMAGE
This action only works for player_attack
and player_damage
event types. Allows to modify the final damage of the attack/damage taken.
HIDE JOIN MESSAGE
This action only works for player_join
event type. Allows to completely hide the player join message.
HIDE LEAVE MESSAGE
This action only works for player_leave
event type. Allows to completely hide the player leave message.
SET DEATH MESSAGE
This action only works for player_death
event type. Allows to replace the player death message with a custom one. You can set it to "no" to hide the death message.
PREVENT JOIN
This action only works for player_pre_join
event type. Prevents the player from joining the server, with a custom message.
SET ITEM
This action only works for player_fish
event type. Allows to modify the item caught by the player.
Item properties you can use are described on the Give Item action.
You must make sure that the player is receiving an item. For that you must check for some conditions first. See the examples below.
SET EVENT XP
This actions only works for block_break
and player_fish
event types. Allows to modify the xp dropped when breaking a block or fishing. Set to 0 to prevent xp from being dropped.
Last updated