事件(Events)

什么是事件?

Event 对象代表事件的状态,比如事件在其中发生的元素. 当触发事件(比如:播放声音,执行命令...)时,你可以设置一些操作([actions](actions.md))

事件列表

  • block_break

  • attack

  • kill

  • interact.entity

  • interact.left

  • interact.left_shift

  • interact.right

  • interact.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

  • unheld

  • 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

  • bucket_empty

  • bucket_fill

Last updated