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
| Property | Type | Default | What it does |
|---|---|---|---|
duration | Decimal | 1 | Amount 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_radius | Decimal | 0 | Distance in blocks that the player has to be within to trigger the horse trap. |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.floatbehavior.random_swimbehavior.swim_idlebehavior.swim_wanderbehavior.use_kinetic_weaponbehavior.move_to_waterbehavior.teleport_to_ownerbehavior.float_wanderbehavior.go_homebehavior.random_hoverbehavior.slime_floatbehavior.slime_keep_on_jumpingbehavior.slime_random_directionbehavior.move_to_landbehavior.move_to_random_blockbehavior.circle_around_anchorbehavior.dragonholdingpatternbehavior.dragonlandingbehavior.dragontakeoffbehavior.explore_outskirtsbehavior.find_underwater_treasurebehavior.move_to_blockbehavior.move_to_liquidbehavior.random_breach