Files
minecraft-bedrock-json-schemas/behaviour/entities/1.16.100/components/minecraft.leashable.json
2020-11-18 10:02:20 +01:00

37 lines
1.4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behaviour.entities.1.16.100.minecraft.leashable",
"type": "object",
"title": "Leashable 1.16.100",
"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.",
"title": "Can be stolen"
},
"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" },
"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.",
"title": "Soft distance"
}
}
}