46 lines
1.8 KiB
JSON
46 lines
1.8 KiB
JSON
{
|
|
"$id": "blockception.minecraft.behavior.entities.1.8.0.minecraft.damage_sensor",
|
|
"title": "Damage Sensor 1.8.0",
|
|
"additionalProperties": false,
|
|
"description": "Defines what events to call when this entity is damaged by specific entities or items.",
|
|
"definitions": {
|
|
"damagespec": {
|
|
"type": "object",
|
|
"description": "A trigger with the events to call when taking specific kinds of damage.",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"cause": {
|
|
"type": "string",
|
|
"default": "none",
|
|
"description": "Type of damage that triggers the events.",
|
|
"$ref": "../../../../general/entity_damage.json",
|
|
"title": "Cause"
|
|
},
|
|
"deals_damage": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "If true, the damage dealt to the entity will take away health from it, set to false to make the entity ignore that damage.",
|
|
"title": "Deals Damage"
|
|
},
|
|
"on_damage": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"filters": { "$ref": "../../filters/filters.json" },
|
|
"event": { "type": "string", "pattern": "^.*$", "description": "UNDOCUMENTATED: event", "title": "Event" },
|
|
"target": { "$ref": "../../filters/filters/types/subject.json", "description": "UNDOCUMENTATED: target", "title": "Target" }
|
|
},
|
|
"description": "Specifies filters for entity definitions and events.",
|
|
"title": "On Damage"
|
|
}
|
|
},
|
|
"title": "Damagespec"
|
|
}
|
|
},
|
|
"required": [],
|
|
"oneOf": [
|
|
{ "type": "object", "$ref": "#/definitions/damagespec" },
|
|
{ "type": "array", "items": { "$ref": "#/definitions/damagespec" } }
|
|
]
|
|
}
|