Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/lookat.json
ChibiMango 534d77c389 Created & applied new event_object type (#109)
Created new event type.
some components only allow for an event to be an object, not a string
Co-authored-by: Daan Verstraten <daanverstraten@hotmail.com>
2022-08-22 20:13:13 +02:00

51 lines
1.7 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.lookat",
"description": "Defines the behavior when another entity looks at this entity.",
"type": "object",
"title": "Lookat",
"additionalProperties": false,
"properties": {
"allow_invulnerable": {
"type": "boolean",
"default": false,
"description": "If true, invulnerable entities (e.g. Players in creative mode) are considered valid targets.",
"title": "Allow Invulnerable"
},
"filters": {
"$ref": "../../filters/filters.json",
"description": "Defines the entities that can trigger this component.",
"title": "Filters"
},
"look_cooldown": {
"$ref": "../types/range_number_type.json",
"default": [0.0, 0.0],
"description": "The range for the random amount of time during which the entity is `cooling down` and won't get angered or look for a target.",
"title": "Look Cooldown"
},
"look_event": {
"description": "The event identifier to run when the entities specified in filters look at this entity.",
"title": "Look Event",
"$ref": "../types/event_object.json"
},
"search_radius": {
"type": "number",
"default": 10,
"description": "Maximum distance this entity will look for another entity looking at it.",
"title": "Search Radius"
},
"set_target": {
"type": "boolean",
"default": true,
"description": "If true, this entity will set the attack target as the entity that looked at it.",
"title": "Set Target"
}
},
"examples": [
{
"allow_invulnerable": false,
"search_radius": 10,
"set_target": true
}
]
}