Updated damage sources
This commit is contained in:
@@ -13,34 +13,7 @@
|
|||||||
"default": "none",
|
"default": "none",
|
||||||
"description": "Type of damage that triggers the events.",
|
"description": "Type of damage that triggers the events.",
|
||||||
"title": "Cause",
|
"title": "Cause",
|
||||||
"enum": [
|
"$ref": "../../../../general/entity/damage_source.json"
|
||||||
"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": {
|
"damage_multiplier": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
|
|||||||
@@ -23,32 +23,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "TODO",
|
"description": "TODO",
|
||||||
"title": "Cause",
|
"title": "Cause",
|
||||||
"enum": [
|
"$ref": "../../../../general/entity/damage_source.json"
|
||||||
"anvil",
|
|
||||||
"attack",
|
|
||||||
"block_explosion",
|
|
||||||
"contact",
|
|
||||||
"drowning",
|
|
||||||
"entity_explosion",
|
|
||||||
"fall",
|
|
||||||
"falling_block",
|
|
||||||
"fatal",
|
|
||||||
"fire",
|
|
||||||
"fire_tick",
|
|
||||||
"fly_into_wall",
|
|
||||||
"lava",
|
|
||||||
"magic",
|
|
||||||
"none",
|
|
||||||
"override",
|
|
||||||
"piston",
|
|
||||||
"projectile",
|
|
||||||
"starve",
|
|
||||||
"suffocation",
|
|
||||||
"suicide",
|
|
||||||
"thorns",
|
|
||||||
"void",
|
|
||||||
"wither"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,35 +13,7 @@
|
|||||||
"default": "none",
|
"default": "none",
|
||||||
"description": "Type of damage that triggers the events.",
|
"description": "Type of damage that triggers the events.",
|
||||||
"title": "Cause",
|
"title": "Cause",
|
||||||
"enum": [
|
"$ref": "../../../../general/entity/damage_source.json"
|
||||||
"all",
|
|
||||||
"anvil",
|
|
||||||
"attack",
|
|
||||||
"block_explosion",
|
|
||||||
"contact",
|
|
||||||
"drowning",
|
|
||||||
"entity_explosion",
|
|
||||||
"entity_attack",
|
|
||||||
"fall",
|
|
||||||
"falling_block",
|
|
||||||
"fata",
|
|
||||||
"fire",
|
|
||||||
"fire_tick",
|
|
||||||
"fly_into_wall",
|
|
||||||
"lightning",
|
|
||||||
"lava",
|
|
||||||
"magic",
|
|
||||||
"none",
|
|
||||||
"override",
|
|
||||||
"piston",
|
|
||||||
"projectile",
|
|
||||||
"starve",
|
|
||||||
"suffocation",
|
|
||||||
"suicide",
|
|
||||||
"thorns",
|
|
||||||
"void",
|
|
||||||
"wither"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"damage_multiplier": {
|
"damage_multiplier": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
|
|||||||
@@ -23,33 +23,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Cause",
|
"title": "Cause",
|
||||||
"description": "Damage cause",
|
"description": "Damage cause",
|
||||||
"enum": [
|
"$ref": "../../../../general/entity/damage_source.json"
|
||||||
"anvil",
|
|
||||||
"attack",
|
|
||||||
"block_explosion",
|
|
||||||
"contact",
|
|
||||||
"drowning",
|
|
||||||
"entity_explosion",
|
|
||||||
"fall",
|
|
||||||
"falling_block",
|
|
||||||
"fatal",
|
|
||||||
"fire",
|
|
||||||
"fire_tick",
|
|
||||||
"fly_into_wall",
|
|
||||||
"lava",
|
|
||||||
"magic",
|
|
||||||
"none",
|
|
||||||
"override",
|
|
||||||
"piston",
|
|
||||||
"projectile",
|
|
||||||
"starve",
|
|
||||||
"suffocation",
|
|
||||||
"suicide",
|
|
||||||
"temperature",
|
|
||||||
"thorns",
|
|
||||||
"void",
|
|
||||||
"wither"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"damage_per_tick": {
|
"damage_per_tick": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
|||||||
@@ -23,32 +23,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "TODO",
|
"description": "TODO",
|
||||||
"title": "Cause",
|
"title": "Cause",
|
||||||
"enum": [
|
"$ref": "../../../../general/entity/damage_source.json"
|
||||||
"anvil",
|
|
||||||
"attack",
|
|
||||||
"block_explosion",
|
|
||||||
"contact",
|
|
||||||
"drowning",
|
|
||||||
"entity_explosion",
|
|
||||||
"fall",
|
|
||||||
"falling_block",
|
|
||||||
"fatal",
|
|
||||||
"fire",
|
|
||||||
"fire_tick",
|
|
||||||
"fly_into_wall",
|
|
||||||
"lava",
|
|
||||||
"magic",
|
|
||||||
"none",
|
|
||||||
"override",
|
|
||||||
"piston",
|
|
||||||
"projectile",
|
|
||||||
"starve",
|
|
||||||
"suffocation",
|
|
||||||
"suicide",
|
|
||||||
"thorns",
|
|
||||||
"void",
|
|
||||||
"wither"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,32 +23,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Cause",
|
"title": "Cause",
|
||||||
"description": "Damage cause",
|
"description": "Damage cause",
|
||||||
"enum": [
|
"$ref": "../../../../general/entity/damage_source.json"
|
||||||
"anvil",
|
|
||||||
"attack",
|
|
||||||
"block_explosion",
|
|
||||||
"contact",
|
|
||||||
"drowning",
|
|
||||||
"entity_explosion",
|
|
||||||
"fall",
|
|
||||||
"falling_block",
|
|
||||||
"fatal",
|
|
||||||
"fire",
|
|
||||||
"fire_tick",
|
|
||||||
"fly_into_wall",
|
|
||||||
"lava",
|
|
||||||
"magic",
|
|
||||||
"none",
|
|
||||||
"override",
|
|
||||||
"piston",
|
|
||||||
"projectile",
|
|
||||||
"starve",
|
|
||||||
"suffocation",
|
|
||||||
"suicide",
|
|
||||||
"thorns",
|
|
||||||
"void",
|
|
||||||
"wither"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"damage_per_tick": {
|
"damage_per_tick": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
|||||||
@@ -16,32 +16,7 @@
|
|||||||
"value": {
|
"value": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The Damage type to test",
|
"description": "The Damage type to test",
|
||||||
"enum": [
|
"$ref": "../../../../general/entity/damage_source.json",
|
||||||
"anvil",
|
|
||||||
"attack",
|
|
||||||
"block_explosion",
|
|
||||||
"contact",
|
|
||||||
"drowning",
|
|
||||||
"entity_explosion",
|
|
||||||
"fall",
|
|
||||||
"falling_block",
|
|
||||||
"fatal",
|
|
||||||
"fire",
|
|
||||||
"fire_tick",
|
|
||||||
"fly_into_wall",
|
|
||||||
"lava",
|
|
||||||
"magic",
|
|
||||||
"none",
|
|
||||||
"override",
|
|
||||||
"piston",
|
|
||||||
"projectile",
|
|
||||||
"starve",
|
|
||||||
"suffocation",
|
|
||||||
"suicide",
|
|
||||||
"thorns",
|
|
||||||
"void",
|
|
||||||
"withe"
|
|
||||||
],
|
|
||||||
"title": "Value"
|
"title": "Value"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
7
source/general/entity/damage_source.json
Normal file
7
source/general/entity/damage_source.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
|
"title": "Entity Damage Source",
|
||||||
|
"description": "The types of damage an entity can receive",
|
||||||
|
"type": "string",
|
||||||
|
"$ref": "../../../../general/entity/damage_source.json"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user