Started by
Green_Warrior777
on
Topic category: Help with Minecraft modding (Java Edition)
I want to set the damage of a weapon equivalent of how much of a certain item I have in my inventory but I can't find out how to set its value to a variable I keep getting errors
Set it's default damage to 0 in its properties, then use a procedure to check when someone attacks with that item, then use the block, "deal (number) damage to (entity)", and set the number to whatever value you want depending on the factors you're using.