diff --git a/source/behaviour/entities/1.13.0/components/minecraft.damage_sensor.json b/source/behaviour/entities/1.13.0/components/minecraft.damage_sensor.json index 4c617695..e3a3df95 100644 --- a/source/behaviour/entities/1.13.0/components/minecraft.damage_sensor.json +++ b/source/behaviour/entities/1.13.0/components/minecraft.damage_sensor.json @@ -13,34 +13,7 @@ "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" - ] + "$ref": "../../../../general/entity/damage_source.json" }, "damage_multiplier": { "type": "number", diff --git a/source/behaviour/entities/1.16.0/components/minecraft.area_attack.json b/source/behaviour/entities/1.16.0/components/minecraft.area_attack.json index 1ce7f7c2..acd3934b 100644 --- a/source/behaviour/entities/1.16.0/components/minecraft.area_attack.json +++ b/source/behaviour/entities/1.16.0/components/minecraft.area_attack.json @@ -23,32 +23,7 @@ "type": "string", "description": "TODO", "title": "Cause", - "enum": [ - "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" - ] + "$ref": "../../../../general/entity/damage_source.json" } } } diff --git a/source/behaviour/entities/1.16.0/components/minecraft.damage_sensor.json b/source/behaviour/entities/1.16.0/components/minecraft.damage_sensor.json index bb111d8f..746941df 100644 --- a/source/behaviour/entities/1.16.0/components/minecraft.damage_sensor.json +++ b/source/behaviour/entities/1.16.0/components/minecraft.damage_sensor.json @@ -13,35 +13,7 @@ "default": "none", "description": "Type of damage that triggers the events.", "title": "Cause", - "enum": [ - "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" - ] + "$ref": "../../../../general/entity/damage_source.json" }, "damage_multiplier": { "type": "number", diff --git a/source/behaviour/entities/1.16.0/components/minecraft.hurt_on_condition.json b/source/behaviour/entities/1.16.0/components/minecraft.hurt_on_condition.json index 7f1ffb73..77afadfb 100644 --- a/source/behaviour/entities/1.16.0/components/minecraft.hurt_on_condition.json +++ b/source/behaviour/entities/1.16.0/components/minecraft.hurt_on_condition.json @@ -23,33 +23,7 @@ "type": "string", "title": "Cause", "description": "Damage cause", - "enum": [ - "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" - ] + "$ref": "../../../../general/entity/damage_source.json" }, "damage_per_tick": { "type": "integer", diff --git a/source/behaviour/entities/1.8.0/components/minecraft.area_attack.json b/source/behaviour/entities/1.8.0/components/minecraft.area_attack.json index 2a25a833..59647817 100644 --- a/source/behaviour/entities/1.8.0/components/minecraft.area_attack.json +++ b/source/behaviour/entities/1.8.0/components/minecraft.area_attack.json @@ -23,32 +23,7 @@ "type": "string", "description": "TODO", "title": "Cause", - "enum": [ - "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" - ] + "$ref": "../../../../general/entity/damage_source.json" } } } diff --git a/source/behaviour/entities/1.8.0/components/minecraft.hurt_on_condition.json b/source/behaviour/entities/1.8.0/components/minecraft.hurt_on_condition.json index 59c10814..aee827e7 100644 --- a/source/behaviour/entities/1.8.0/components/minecraft.hurt_on_condition.json +++ b/source/behaviour/entities/1.8.0/components/minecraft.hurt_on_condition.json @@ -23,32 +23,7 @@ "type": "string", "title": "Cause", "description": "Damage cause", - "enum": [ - "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" - ] + "$ref": "../../../../general/entity/damage_source.json" }, "damage_per_tick": { "type": "integer", diff --git a/source/behaviour/entities/1.8.0/filters/has_damage.json b/source/behaviour/entities/1.8.0/filters/has_damage.json index 64299ea7..34276f94 100644 --- a/source/behaviour/entities/1.8.0/filters/has_damage.json +++ b/source/behaviour/entities/1.8.0/filters/has_damage.json @@ -16,32 +16,7 @@ "value": { "type": "string", "description": "The Damage type to test", - "enum": [ - "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" - ], + "$ref": "../../../../general/entity/damage_source.json", "title": "Value" } } diff --git a/source/general/entity/damage_source.json b/source/general/entity/damage_source.json new file mode 100644 index 00000000..7763f63a --- /dev/null +++ b/source/general/entity/damage_source.json @@ -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" +}