Started by
I N E R T I A
on
Topic category: Help with Minecraft modding (Java Edition)
How do I temporarily change a sword's damage? For example, I have a modded sword that does 4 damage ordinarily. I want it to do 5 damage when you unlock a perk. How do I do this?
Make it so if the player has the perk, a variable is set to true. When a living entity is hit with it, check if the variable is true, and if so, deal extra damage.