跳转至

Trail

文档版本:1.21.0.24

Defines the entity's trail to carry items.

架构

trail:
{
  string "block_type" : opt
  filters "spawn_filter"
  array "spawn_offset" : opt
  {
    number "0..0" : opt
    number "1..1" : opt
    number "2..2" : opt
  }
}
block_typestring
The type of block you wish to be spawned by the entity as it move about the world. Solid blocks may not be spawned at an offset of ().
spawn_filterfilters
一个过滤器组。One or more conditions that must be met in order to cause the chosen block type to spawn.
spawn_offsetarray
The distance from the entities current position to spawn the block. Capped at up to 16 blocks away. The X value is left/right(-/+), the Z value is backward/forward(-/+), the Y value is below/above(-/+).
spawn_offset
0..0number
1..1number
2..2number