1. Wiki
  2. /Entities
  3. /minecraft:trail

minecraft:trail

Don't want to write this by hand? GodCraft sets minecraft:trail for you with a switch.Get GodCraft

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

FieldTypeDefaultDescription
block_typeString"air"Block placed along the trail; solid blocks need an offset so they don't trap the entity.
spawn_filterMinecraft FilternoneConditions that must be true for a block to be placed.
spawn_offsetVector [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]"
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more