Files
minecraft-bedrock-json-schemas/source/behavior/entities/1.16.0/components/minecraft.lookat.json
2021-04-04 13:52:35 +02:00

36 lines
2.1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.lookat",
"description": "Defines the behavior when another entity looks at this entity.",
"type": "object",
"title": "Lookat 1.16.0",
"additionalProperties": false,
"required": [],
"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.json", "description": "Defines the entities that can trigger this component", "title": "TODO Title" },
"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": "TODO Title"
},
"look_event": { "type": "string", "description": "The event identifier to run when the entities specified in filters look at this entity", "title": "TODO Title" },
"mAllowInvulnerable": {
"type": "boolean",
"default": false,
"description": "If true, invulnerable entities (e.g. Players in creative mode) are considered valid targets",
"title": "TODO Title"
},
"searchRadius": { "type": "number", "default": 10, "description": "Maximum distance this entity will look for another entity looking at it", "title": "TODO Title" },
"setTarget": { "type": "boolean", "default": true, "description": "If true, this entity will set the attack target as the entity that looked at it", "title": "TODO Title" },
"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" }
}
}