tutorial:damagetypes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:damagetypes [2023/09/03 22:17] – Rename some mapped classes and field names to Intermediary hiisuuii | tutorial:damagetypes [2023/09/24 18:53] (current) – Use new minecraft wiki mattidragon | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ==== Creating a Damage Type ==== | ==== Creating a Damage Type ==== | ||
| - | First, create a json file for your custom damage type following the format [[https:// | + | First, create a json file for your custom damage type following the format [[https:// |
| <code json data/ | <code json data/ | ||
| { | { | ||
| Line 17: | Line 17: | ||
| </ | </ | ||
| - | Our new custom damage type will now cause 0.1 [[https:// | + | Our new custom damage type will now cause 0.1 [[https:// |
| ==== Getting our damage type in code ==== | ==== Getting our damage type in code ==== | ||
| Line 88: | Line 88: | ||
| | avoids_guardian_thorns | Does not trigger the Thorns effect when attacking Guardians | | | | avoids_guardian_thorns | Does not trigger the Thorns effect when attacking Guardians | | | ||
| | burns_armor_stands | Deals a flat 4.0 damage to armor stands | | | | burns_armor_stands | Deals a flat 4.0 damage to armor stands | | | ||
| - | | bypasses_armor | Ignores all armor protection value | | | + | | bypasses_armor | Ignores all armor base protection value. Does not ignore Protection enchantments. |
| | bypasses_effects | Bypasses both Resistance effect and Protection enchantments, | | bypasses_effects | Bypasses both Resistance effect and Protection enchantments, | ||
| - | | bypasses_enchantments | Ignores all types of Protection enchantments | | | + | | bypasses_enchantments | Ignores all types of Protection enchantments, but not base armor protection. |
| | bypasses_invulnerability | Damages players who are invulnerable, | | bypasses_invulnerability | Damages players who are invulnerable, | ||
| | bypasses_resistance | Bypasses Resistance effect | | | | bypasses_resistance | Bypasses Resistance effect | | | ||
tutorial/damagetypes.1693779450.txt.gz · Last modified: 2023/09/03 22:17 by hiisuuii