Initial Commit
This commit is contained in:
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "blockception.minecraft.behaviour.entities.1.13.0.minecraft.damage_sensor",
|
||||
"title": "Damage sensor 1.13.0",
|
||||
"description": "Defines what events to call when this entity is damaged by specific entities or items.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"definitions": {
|
||||
"trigger": {
|
||||
"properties": {
|
||||
"cause": {
|
||||
"type": "string",
|
||||
"default": "none",
|
||||
"description": "Type of damage that triggers the events.",
|
||||
"title": "Cause",
|
||||
"enum": [
|
||||
"all",
|
||||
"anvil",
|
||||
"attack",
|
||||
"block_explosion",
|
||||
"contact",
|
||||
"drowning",
|
||||
"entity_explosion",
|
||||
"fall",
|
||||
"falling_block",
|
||||
"fata",
|
||||
"fire",
|
||||
"fire_tick",
|
||||
"fly_into_wall",
|
||||
"lava",
|
||||
"lightning",
|
||||
"magic",
|
||||
"none",
|
||||
"override",
|
||||
"piston",
|
||||
"projectile",
|
||||
"starve",
|
||||
"suffocation",
|
||||
"suicide",
|
||||
"thorns",
|
||||
"void",
|
||||
"wither"
|
||||
]
|
||||
},
|
||||
"damage_multiplier": {
|
||||
"type": "number",
|
||||
"default": 1,
|
||||
"description": "A multiplier that modifies the base damage from the damage cause. If deals_damage is true the multiplier can only reduce the damage the entity will take to a minimum of 1.",
|
||||
"title": "Damage multiplier"
|
||||
},
|
||||
"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",
|
||||
"description": "Specifies filters for entity definitions and events.",
|
||||
"title": "On damage",
|
||||
"properties": {
|
||||
"filters": {
|
||||
"$ref": "../filters.json"
|
||||
},
|
||||
"event": {
|
||||
"type": "string",
|
||||
"pattern": "^.*$",
|
||||
"description": "TODO description: event",
|
||||
"title": "Event"
|
||||
},
|
||||
"target": {
|
||||
"$ref": "../filters/types/base_subject.json",
|
||||
"description": "TODO description: target",
|
||||
"title": "Target"
|
||||
}
|
||||
},
|
||||
"on_damage_sound_event": {
|
||||
"type": "string",
|
||||
"description": "Defines what sound to play, if any, when the on_damage filters are met.",
|
||||
"title": "On damage sound event"
|
||||
}
|
||||
},
|
||||
"on_damage_sound_event": {
|
||||
"$ref": "../../1.8.0/types/event.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"triggers": {
|
||||
"description": "The list of triggers with the events to call when taking specific kinds of damage.",
|
||||
"title": "Triggers",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/trigger"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/trigger"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user