Events

Use the official files editor to read all the properties

📄Files editor

What are events?

Events describe the time when something happen. You can make things happen (actions) when an event is triggered (play sound, execute command etc.)

List of events

  • block_break

  • attack

  • kill

  • interact.entity

  • interact.left

  • interact.left_shift

  • interact.right

  • interact.right_shift

  • interact_mainhand.left

  • interact_mainhand.left_shift

  • interact_mainhand.right

  • interact_mainhand.right_shift

  • interact_offhand.left

  • interact_offhand.left_shift

  • interact_offhand.right

  • interact_offhand.right_shift

  • drop

  • pickup

  • eat

  • drink

  • bow_shot

  • gun_shot

  • gun_no_ammo

  • gun_reload

  • book_write

  • book_read

  • fishing_start

  • fishing_caught

  • fishing_failed

  • fishing_cancel

  • fishing_bite

  • fishing_in_ground

  • wear

  • unwear

  • held

  • held_offhand

  • unheld

  • unheld_offhand

  • item_throw

  • item_hit_ground

  • item_hit_entity

  • placed_block.interact

  • placed_block.break

  • placed_armorstand.interact

  • placed_armorstand.break

  • placed_itemframe.interact

  • placed_itemframe.break

  • holding_item.player_damaged_by_entity

  • holding_item_offhand.player_damaged_by_entity

  • equipped_armor_item.player_damaged_by_entity

  • bucket_empty

  • bucket_fill

EXAMPLE

Why is it written like interact (dot) right? Below is a small example of how to correctly write it into your item config.

...
events:
  interact:
    right:
      play_sound:
      ...
...

Last updated