Files
minecraft-bedrock-json-schemas/behaviour/entities/1.16.100/behaviors/minecraft.behavior.defend_trusted_target.json
2020-11-18 10:02:20 +01:00

56 lines
1.9 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behaviour.entities.1.16.100.minecraft.behavior.defend_trusted_target",
"type": "object",
"title": "Behaviour.defend_trusted_target 1.16.100",
"description": "Allows the mob to target another mob that hurts an entity it trusts.",
"additionalProperties": false,
"properties": {
"priority": {
"ref": "types/base_priority.json"
},
"aggro_sound": {
"type": "string",
"default": "",
"description": "Sound to occasionally play while defending.",
"title": "Aggro sound"
},
"attack_interval": {
"type": "integer",
"default": 0,
"description": "Time in seconds between attacks",
"title": "Attack interval"
},
"must_see": {
"type": "boolean",
"default": false,
"description": "If true, only entities in this mob's viewing range can be selected as targets",
"title": "Must see"
},
"must_see_forget_duration": {
"type": "number",
"default": 3,
"description": "Determines the amount of time in seconds that this mob will look for a target before forgetting about it and looking for a new one when the target isn't visible any more",
"title": "Must see forget duration"
},
"on_defend_start": { "$ref": "../types/event.json", "title": "On defend start", "description": "UNDOCUMENTATED" },
"within_radius": {
"type": "number",
"default": 0,
"description": "Distance in blocks that the target can be within to launch an attack",
"title": "Within radius"
},
"entity_types": {
"type": "object",
"description": "List of entity types that this mob considers valid targets",
"title": "Entity types",
"additionalProperties": false
},
"sound_chance": {
"title": "Sound chance",
"description": "UNDOCUMENTATED",
"type": "number"
}
}
}