Overview
minecraft:trail is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Leaves blocks behind the entity as it moves, like the snow trail of a snow golem.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
block_type | String | "air" | Block placed along the trail; solid blocks need an offset so they don't trap the entity. |
spawn_filter | Minecraft Filter | none | Conditions that must be true for a block to be placed. |
spawn_offset | Vector [a, b, c] | "[0, 0, 0]" | Where the block appears relative to the entity, up to 16 blocks away. X is left/right, Y is down/up, Z is back/forward. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:trail": {
"block_type": "air",
"spawn_filter": {},
"spawn_offset": "[0, 0, 0]"
}
}