Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/minecraft.teleport.json
2021-10-08 13:04:13 +02:00

64 lines
2.1 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.teleport",
"description": "Defines an entity's teleporting behavior.",
"type": "object",
"title": "Teleport",
"additionalProperties": false,
"required": [],
"properties": {
"dark_teleport_chance": {
"type": "number",
"default": 0.01,
"description": "Modifies the chance that the entity will teleport if the entity is in darkness",
"title": "Dark Teleport Chance"
},
"light_teleport_chance": {
"type": "number",
"default": 0.01,
"description": "Modifies the chance that the entity will teleport if the entity is in daylight",
"title": "Light Teleport Chance"
},
"max_random_teleport_time": {
"type": "number",
"default": 20,
"description": "Maximum amount of time in seconds between random teleports",
"title": "Maximum Random Teleport Time"
},
"min_random_teleport_time": {
"type": "number",
"default": 0,
"description": "Minimum amount of time in seconds between random teleports",
"title": "Minimum Random Teleport Time"
},
"random_teleport_cube": {
"title": "Random Teleport Cube",
"description": "Entity will teleport to a random position within the area defined by this cube",
"type": "array",
"default": [32.0, 16.0, 32.0],
"items": [
{ "type": "number", "title": "A" },
{ "type": "number", "title": "B" },
{ "type": "number", "title": "C" }
]
},
"random_teleports": {
"type": "boolean",
"default": true,
"description": "If true, the entity will teleport randomly",
"title": "Random Teleports"
},
"target_distance": {
"type": "number",
"default": 16,
"description": "Maximum distance the entity will teleport when chasing a target",
"title": "Target Distance"
},
"target_teleport_chance": {
"type": "number",
"default": 1,
"description": "The chance that the entity will teleport between 0.0 and 1.0. 1.0 means 100%",
"title": "Target Teleport Chance"
}
}
}