minecraft:behavior.skeleton_horse_trap

Allows Equine mobs to be Horse Traps and be triggered like them, spawning a lightning bolt and a bunch of horses when a player is nearby. Can only be used by Horses, Mules, Donkeys and Skeleton Horses.

Properties

PropertyTypeDefaultWhat it does
durationDecimal1Amount of time in seconds the trap exists. After this amount of time is elapsed, the trap is removed from the world if it hasn't been activated
within_radiusDecimal0Distance in blocks that the player has to be within to trigger the horse trap.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Skeleton Horse uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.skeleton_horse_trap": {
    "within_radius": 10.0,
    "duration": 900.0,
    "priority": 2
  }
}

Used by 1

Vanilla entities with minecraft:behavior.skeleton_horse_trap in their definition:

Related components