Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.51 KB

File metadata and controls

44 lines (33 loc) · 1.51 KB
author ms.author title description ms.service
iconicNurdle
mikeam
Entity Documentation - minecraft:trail
A reference document detailing the 'trail' entity component
minecraft-bedrock-edition

Entity Documentation - minecraft:trail

minecraft:trail causes an entity to leave a trail of blocks as it moves about the world.

Parameters

Name Default Value Type Description
block_type "air" String 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 (0,0,0).
spawn_filter not set Minecraft Filter One or more conditions that must be met in order to cause the chosen block type to spawn.
spawn_offset [0, 0, 0] Vector [a, b, c] The distance from the entity's 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(-/+).

Example

"minecraft:trail": {
    "block_type": "air",
    "spawn_filter": {"test":"is_daytime", "value": true},
    "spawn_offset": [0, 0, 0]
}

Vanilla entities examples

snow_golem

"minecraft:trail": {
        "block_type": "minecraft:snow_layer",
        "spawn_filter": { "test": "is_temperature_value", "operator": "<", "value": 0.81 }
      }

Vanilla entities using minecraft:trail