Edit

Entity Documentation - minecraft:behavior.stay_near_noteblock

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

Entity Stay Near Noteblock Behavior Properties

Name Default Value Type Description Example Values
control_flags [] Control Flags choices
listen_time 30 Integer number Sets the time an entity should stay near a noteblock after hearing it.
priority 0 Integer number As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. Allay: 5
speed 1 Decimal number Sets the entity's speed when moving toward the block. Allay: 8
start_distance 10 Decimal number Sets the distance the entity needs to be away from the block to attempt to start the goal. Allay: 16
stop_distance 2 Decimal number Sets the distance from the block the entity will attempt to reach. Allay: 4

Control Flags choices

Value Title Description
jump Jump
look Look
move Move

Samples

Allay

"minecraft:behavior.stay_near_noteblock": {
  "speed": 8,
  "start_distance": 16,
  "stop_distance": 4,
  "priority": 5
}