Files
minecraft-bedrock-json-schemas/source/behavior/entities/1.8.0/components/minecraft.lookat.json

41 lines
1.5 KiB
JSON
Raw Normal View History

2021-06-06 10:07:19 +00:00
{
"$id": "blockception.minecraft.behavior.entities.1.8.0.minecraft.lookat",
"description": "Defines the behavior when another entity looks at this entity.",
"type": "object",
"title": "Lookat 1.8.0",
"additionalProperties": false,
"required": [],
"properties": {
2021-07-01 16:42:21 +02:00
"filters": { "$ref": "../../filters/filters.json", "description": "Defines the entities that can trigger this component" },
2021-06-06 10:07:19 +00:00
"look_cooldown": {
"$ref": "../types/range_number_type.json",
"default": [0.0, 0.0],
2021-06-06 13:00:25 +02:00
"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",
2021-06-24 17:32:47 +02:00
"title": "Look Cooldown"
2021-06-06 10:07:19 +00:00
},
"look_event": {
"description": "The event identifier to run when the entities specified in filters look at this entity",
2021-06-24 17:32:47 +02:00
"title": "Look Event",
"$ref": "../types/event.json"
2021-06-06 10:07:19 +00:00
},
2021-06-24 17:32:47 +02:00
"AllowInvulnerable": {
2021-06-06 10:07:19 +00:00
"type": "boolean",
"default": false,
"description": "If true, invulnerable entities (e.g. Players in creative mode) are considered valid targets",
2021-06-24 17:32:47 +02:00
"title": "Allow Invulnerable"
2021-06-06 10:07:19 +00:00
},
"searchRadius": {
"type": "number",
"default": 10,
"description": "Maximum distance this entity will look for another entity looking at it",
2021-06-24 17:32:47 +02:00
"title": "Search Radius"
2021-06-06 10:07:19 +00:00
},
"setTarget": {
"type": "boolean",
"default": true,
"description": "If true, this entity will set the attack target as the entity that looked at it",
2021-06-24 17:32:47 +02:00
"title": "Set Target"
2021-06-06 10:07:19 +00:00
}
}
}