feat: add damage cause enum

This commit is contained in:
Reider745
2026-04-14 07:43:52 +03:00
parent 47934f706c
commit c77e35f737
3 changed files with 57 additions and 0 deletions
@@ -56,5 +56,8 @@
},
"tile_entity_type": {
"typename": "TileEntityType"
},
"damage_cause": {
"typename": "DamageCause"
}
}
@@ -167,6 +167,33 @@
"italic": "\u0432\u00a7o",
"reset": "\u0432\u00a7r"
},
"damage_cause": {
"generic": 0,
"cactus": 1,
"mob": 2,
"impact": 3,
"in_wall": 4,
"fall": 5,
"in_fire": 6,
"on_fire": 7,
"lava": 8,
"drown": 9,
"explosion": 10,
"mob_explosion": 11,
"out_of_world": 12,
"command": 13,
"magic": 14,
"wither": 15,
"starve": 16,
"anvil": 17,
"thorns": 18,
"projectile": 19,
"falling_block": 20,
"fly_into_wall": 21,
"magma": 22,
"fireworks": 23,
"lightning_bolt": 24
},
"dimension": {
"normal": 0,
"overworld": 0,
@@ -168,6 +168,33 @@
"italic": "\u0432\u00a7o",
"reset": "\u0432\u00a7r"
},
"damage_cause": {
"generic": 0,
"cactus": 1,
"mob": 2,
"impact": 3,
"in_wall": 4,
"fall": 5,
"in_fire": 6,
"on_fire": 7,
"lava": 8,
"drown": 9,
"explosion": 10,
"mob_explosion": 11,
"out_of_world": 12,
"command": 13,
"magic": 14,
"wither": 15,
"starve": 16,
"anvil": 17,
"thorns": 18,
"projectile": 19,
"falling_block": 20,
"fly_into_wall": 21,
"magma": 22,
"fireworks": 23,
"lightning_bolt": 24
},
"dimension": {
"normal": 0,
"overworld": 0,