Skip to content

Damage Type Keys 1.18.2 & 1.19.2

Felipe Cerboncini edited this page Sep 16, 2023 · 5 revisions

In Minecraft 1.18.2 and 1.19.2, the damage types are not registered as they are in version 1.19.4 and above. Instead, they have a message ID that does not contain minecraft: at the beginning, and they are not lowercased. Fortunately, you don't need to worry about the case thing because it does not matter in my code. If you want to use custom damage types created by other modders you will need to know their message ID.

Here is a list of all vanilla message IDs/damage types that you can use in this two version:

inFire lightningBolt onFire lava hotFloor inWall cramming drown starve cactus fall flyIntoWall outOfWorld generic magic wither anvil fallingBlock dragonBreath dryout sweetBerryBush freeze fallingStalactite stalagmite sting mob player arrow trident fireworks witherSkull thrown indirectMagic thorns explosion.player sonic_boom

Clone this wiki locally