Events types for Items, Entities, and Blocks

Events types for Items, Entities, and Blocks

Items

Valid Reward Types For Items

EventContext
ANVIL_REPAIRwhen this is the output item
BLOCK_BREAKif this is a block item, the xp for breaking the block version of this. good to include for tooltips. not used for xp
BLOCK_PLACEif this is a block item, the xp for placing the block
BREWas brew ingredient, output does not matter
CONSUMEif eaten/drank
CRAFTwhen this is the output itemm
TOOL_BREAKINGif the item has durability and breaks
ENCHANTwhen enchants are added to this item
FISHwhen this is the item obtained from fishing
SMELTwhen this is the item being smelted/cooked, NOT the output
SMELTEDwhen this is the item being OUTPUT from a smelt/cook action
GIVEN_AS_TRADEwhen this item is consumed by a village during a trade
ACTIVATE_ITEMif this item has a right-click action, when that is activated
RECEIVED_AS_TRADEwhen this item is received from a villager during a trade

Valid Req Types for Items

Req TypeContext
WEARfor placing in armor slots, curio slots, or either hand
TOOLfor use breaking blocks
WEAPONfor use harming entities
USEthe ability to right-click this item
PLACEif this is a block item, the ability to place it
BREAKif this is a block item, the ability to break it
INTERACTthe ability to use this item on blocks/entities. eg gold on piglins

Entities

Valid Reward Types For Entities

eventcontext
BREEDwhen this entity is bred
DEATHwhen this entity dies
ENTITYwhen the player interacts with this entity, such as villager trading
RIDINGexperience per tick while the player is riding this entity
SHIELD_BLOCKwhen the player blocks damage with a shield dealt by this entity
TAMINGwhen the player tames this entity.

Valid Req Types for Entities

requirementcontext
KILLdealing any damage to the entity
RIDEmounting the entity
TAMEsuccessfully taming. note this does not prevent attempts
BREEDbreeding two of this entity. note this does not prevent attempts
ENTITY_INTERACTright-clicking the entity

Blocks

Valid Reward Types For Blocks

eventcontext
BLOCK_BREAKwhen a block is broken
BLOCK_PLACEwhen a block is placed
GROWwhen a crop block grows a stage
HIT_BLOCKwhen a player hits a block in the process of breaking it
ACTIVATE_BLOCKwhen a player right-clicks a block

Valid Req Types for Blocks

requirementaction
PLACEthe ability to place the block
BREAKthe ability to break the block
INTERACTthe ability to right click, such as activating a button