Files
minecraft-bedrock-json-schemas/source/behaviour/entities/1.16.0/behaviors/minecraft.behavior.go_home.json

53 lines
2.0 KiB
JSON
Raw Normal View History

2020-11-01 17:22:42 +01:00
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behaviour.entities.1.16.0.minecraft.behavior.go_home",
"additionalProperties": false,
"description": "Allows the mob to move back to the position they were spawned.",
2021-03-21 15:18:38 +01:00
"title": "Go Home",
2020-11-01 17:22:42 +01:00
"type": "object",
"definitions": {
"on_home_spec": {
"additionalProperties": false,
"type": "object",
2021-03-21 15:18:38 +01:00
"title": "On Home Event",
2020-11-01 17:22:42 +01:00
"description": "UNDOCUMENTATED",
"properties": {
2021-03-21 15:18:38 +01:00
"event": { "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$", "description": "The event to fire", "title": "Event" },
2020-11-01 17:22:42 +01:00
"target": {
"type": "string",
"description": "The target of the event",
"title": "Target",
"enum": ["baby", "block", "damager", "other", "parent", "player", "self", "target"]
},
2021-03-21 15:18:38 +01:00
"filters": { "$ref": "../filters.json" }
2020-11-01 17:22:42 +01:00
}
}
},
"properties": {
2021-01-27 00:52:47 +01:00
"priority": { "$ref": "types/base_priority.json" },
"speed_multiplier": { "$ref": "types/base_speed_multiplier.json" },
2020-11-01 17:22:42 +01:00
"goal_radius": {
"type": "number",
"default": 0.5,
"description": "Distance in blocks within the mob considers it has reached the goal. This is the \"wiggle room\" to stop the AI from bouncing back and forth trying to reach a specific spot",
2021-03-21 15:18:38 +01:00
"title": "Goal Radius"
2020-11-01 17:22:42 +01:00
},
"interval": {
"type": "integer",
"default": 120,
"description": "A random value to determine when to randomly move somewhere. This has a 1/interval chance to choose this goal",
"title": "Interval"
},
"on_home": {
"description": "Event to run when this mob gets home.",
2021-03-21 15:18:38 +01:00
"title": "On Home",
2020-11-01 17:22:42 +01:00
"oneOf": [
2021-03-21 15:18:38 +01:00
{ "type": "string", "pattern": "^[a-zA-Z0-9_\\-:]+$" },
{ "type": "object", "$ref": "#/definitions/on_home_spec" },
{ "type": "array", "items": { "$ref": "#/definitions/on_home_spec" } }
2020-11-01 17:22:42 +01:00
]
},
2021-03-21 15:18:38 +01:00
"on_failed": { "$ref": "../types/event.json", "title": "On Failed", "description": "UNDOCUMENTATED" }
2020-11-01 17:22:42 +01:00
}
}