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

27 lines
1.3 KiB
JSON
Raw Normal View History

2020-11-01 17:22:42 +01:00
{
"$schema": "http://json-schema.org/draft-07/schema",
2021-04-04 13:52:35 +02:00
"$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.leashable",
2020-11-01 17:22:42 +01:00
"type": "object",
"title": "Leashable 1.16.0",
"description": "Defines interactions with this entity.",
"additionalProperties": false,
"properties": {
"can_be_stolen": {
"type": "boolean",
"default": false,
"description": "If true, players can leash this entity even if it is already leashed to another mob.",
2021-03-21 15:18:38 +01:00
"title": "Can Be Stolen"
2020-11-01 17:22:42 +01:00
},
2021-03-21 15:18:38 +01:00
"hard_distance": { "type": "number", "default": 6, "description": "Distance in blocks at which the leash stiffens, restricting movement.", "title": "Hard Distance" },
"max_distance": { "type": "number", "default": 10, "description": "Distance in blocks at which the leash breaks.", "title": "Max 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" },
2020-11-01 17:22:42 +01:00
"soft_distance": {
"type": "number",
"default": 4,
"description": "Distance in blocks at which the 'spring' effect starts acting to keep this entity close to the entity that leashed it.",
2021-03-21 15:18:38 +01:00
"title": "Soft Distance"
2020-11-01 17:22:42 +01:00
}
}
}