Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/teleport.json
DW623 8a7533a941 Updating Undocumented (#180)
* Updating UnDocumented
Updating Undocumented and Fix Component errors
* Update source/behavior/entities/format/components/is_stackable.json
* Update source/behavior/entities/format/components/is_stackable.json

---------

Co-authored-by: Daan Verstraten <daanverstraten@hotmail.com>
2023-08-14 08:21:03 +02:00

87 lines
2.5 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.0,
"description": "Maximum distance the entity will teleport when chasing a target.",
"title": "Target Distance"
},
"target_teleport_chance": {
"type": "number",
"default": 1.0,
"description": "The chance that the entity will teleport between 0.0 and 1.0. 1.0 means 100%",
"title": "Target Teleport Chance",
"minimum": 0.0,
"maximum": 1.0
}
},
"examples": [
{
"dark_teleport_chance": 0.01,
"light_teleport_chance": 0.01,
"max_random_teleport_time": 20,
"min_random_teleport_time": 0,
"random_teleport_cube": [],
"random_teleports": true,
"target_distance": 16,
"target_teleport_chance": 1
}
]
}