跳转至

Tick World

文档版本:1.21.0.24

Defines if the entity ticks the world and the radius around it to tick.

架构

tick_world:
{
  number "distance_to_players" : opt
  boolean "never_despawn" : opt
  integer "radius" : opt
}
distance_to_playersnumber
The distance at which the closest player has to be before this entity despawns. This option will be ignored if never_despawn is true. Min: 128 blocks.
never_despawnboolean
If true, this entity will not despawn even if players are far away. If false, distance_to_players will be used to determine when to despawn.
radiusinteger
The area around the entity to tick. Default: 2. Allowed range: 2-6.