跳转至

Stay Near Noteblock

文档版本:1.21.0.24

[EXPERIMENTAL BEHAVIOR] The entity will attempt to toss the items from its inventory to a nearby recently played noteblock.

架构

stay_near_noteblock:
{
  priority "priority"
  integer "listen_time" : opt
  number "speed" : opt
  number "start_distance" : opt
  number "stop_distance" : opt
}
prioritypriority
priority:
integer
listen_timeinteger
Sets the time an entity should stay near a noteblock after hearing it.
speednumber
Sets the entity's speed when moving toward the block.
start_distancenumber
Sets the distance the entity needs to be away from the block to attempt to start the goal.
stop_distancenumber
Sets the distance from the block the entity will attempt to reach.