实验性
实验性
可选
options: EntityDataDrivenTriggerEventOptions添加一个回调函数,该回调函数会在数据驱动实体事件被触发后调用。
Adds a callback that will be called after a data driven entity event is triggered.
无法在只读模式下调用此函数,详见 WorldBeforeEvents。
This function can be called in early-execution mode.
实验性
移除一个回调函数,该回调函数会在数据驱动实体事件被触发后调用。
Removes a callback that will be called after a data driven entity event is triggered.
无法在只读模式下调用此函数,详见 WorldBeforeEvents。
This function can be called in early-execution mode.
包含与触发数据驱动实体事件相关的事件注册,例如鸡的 minecraft:ageable_grow_up 事件。
Contains event registration related to firing of a data driven entity event - for example, the minecraft:ageable_grow_up event on a chicken.