minecraft:leashable
Dynamic value
Properties
This component has no properties in the official schema: add it as an empty object {} to switch the behaviour on.
Example from the game files
This is how vanilla Zombie Horse uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:leashable": {
"on_unleash": {
"event": "minecraft:on_unleashed",
"target": "self"
},
"presets": [
{
"filter": {
"test": "is_family",
"subject": "other",
"value": "happy_ghast"
},
"spring_type": "quad_dampened"
},
{
"hard_distance": 10,
"max_distance": 14
}
]
}
}Used by 43
Vanilla entities with minecraft:leashable in their definition:
AllayArmadilloAxolotlBeeBoatCamelCamel HuskCatBoat with ChestChickenCopper GolemCowDolphinDonkeyFoxFrogGlow SquidGoatHappy GhastHoglinHorseIron GolemLlamaMooshroomMuleNautilusOcelotParrotPigPolar BearRabbitSheepSkeleton HorseSnifferSnow GolemSquidStriderSulfur CubeTrader LlamaWolfZoglinZombie HorseZombie Nautilus