Files
minecraft-bedrock-json-schemas/source/behavior/entities/1.8.0/components/minecraft.leashable.json

31 lines
1.3 KiB
JSON
Raw Normal View History

2021-06-06 10:07:19 +00:00
{
2021-10-08 12:54:09 +02:00
"$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.leashable",
2021-06-06 10:07:19 +00:00
"type": "object",
2021-10-08 12:54:09 +02:00
"title": "Leashable 1.16.0",
"description": "Defines interactions with this entity.",
2021-06-06 10:07:19 +00:00
"additionalProperties": false,
"properties": {
"can_be_stolen": {
"type": "boolean",
"default": false,
2021-10-08 12:54:09 +02:00
"description": "If true, players can leash this entity even if it is already leashed to another mob.",
2021-07-01 16:51:30 +02:00
"title": "Can Be Stolen"
2021-06-06 10:07:19 +00:00
},
"hard_distance": {
"type": "number",
"default": 6,
2021-10-08 12:54:09 +02:00
"description": "Distance in blocks at which the leash stiffens, restricting movement.",
2021-07-01 16:51:30 +02:00
"title": "Hard Distance"
2021-06-06 10:07:19 +00:00
},
2021-10-08 12:54:09 +02:00
"max_distance": { "type": "number", "default": 10, "description": "Distance in blocks at which the leash breaks.", "title": "Maximum Distance" },
"on_leash": { "$ref": "../types/event.json", "description": "Event to call when this entity is leashed.", "title": "On Leash" },
"on_unleash": { "$ref": "../types/event.json", "description": "Event to call when this entity is unleashed.", "title": "On Unleash" },
2021-06-06 10:07:19 +00:00
"soft_distance": {
"type": "number",
"default": 4,
2021-10-08 12:54:09 +02:00
"description": "Distance in blocks at which the `spring` effect starts acting to keep this entity close to the entity that leashed it.",
2021-07-01 16:51:30 +02:00
"title": "Soft Distance"
2021-06-06 10:07:19 +00:00
}
}
}