Updated damage sources

This commit is contained in:
DaanV2
2021-03-11 11:53:21 +01:00
parent 88f445f7a8
commit 2a815a59d1
8 changed files with 14 additions and 188 deletions

View File

@@ -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",

View File

@@ -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"
]
} }
} }
} }

View File

@@ -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",

View File

@@ -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",

View File

@@ -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"
]
} }
} }
} }

View File

@@ -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",

View File

@@ -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"
} }
} }

View 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"
}