new protection enchantment

Started by Pedro Figu on

Topic category: Help with modding (Java Edition)

Last seen on 23:24, 3. Sep 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
new protection enchantment

im making an enchantment that is just like protection but it decreases magic damage instead of projectiles or explosions.
is there any way i can make it work other than checking for EVERY time somthing is damaged if the damage was magic and if the target had the enchantment?