Damage capping

Started by Bandydak on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Damage capping
Thu, 09/05/2024 - 13:28 (edited)

I created mod that adds weapon that deals 9999999 dmg and armor that has 99 defense and resistance 4, i wont nerf weapon and i cant make armor stronger but i would like to make it that armor caps the damage you can take at 50 (armor is so strong that it will deal barely any damage)

Edited by Bandydak on Thu, 09/05/2024 - 13:28
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is hard to explain with…
Sun, 09/15/2024 - 01:48

This is hard to explain with text so i'll just leave an image,

in summary: you detect when someone is attacked, if they are wearing your armor and the atacker uses the sword, it cancels the damage and it damages them for your custom amoun of damage.