Started by
KaidinOk
on
Topic category: Help with Minecraft modding (Java Edition)
i'm making a mod which adds classes and instead of adding potion effects when you equip a weapon with armor on i wanted to make it increase the base damage, i tried it, but its not working.
Heres the procedure:
Edited by KaidinOk on Wed, 04/06/2022 - 01:58
well thats going to increase the durability slightly over time
to actually do what youre saying you have to use the 'armor value of [entity]' block
what i would do is give it sharpness for every armor value you have (or every two) since im not sure if theres a way to change the damage value of an item without a custom enchant or something similar
"Set damage of item" refers to the durability like mdpotato said
not the total durability but how broken an item is
instead of increasing the base damage, you should make a procedure that triggers when a player hits something, sense if the player is wearing armour, then damage the event/target entity with however much you want to add on
ok, thanks for helping :)