Started by
HVDES
on
Topic category: Help with Minecraft modding (Java Edition)
I'm pretty new.
I made a sword with a certain chance to deal a critical hit. The base damage of the sword is 7, and the critical hit deals 10 damage, it worked. However, when enchanting the sword, the additional damage doesn't increase, so I need it to deal 3 additional damage, even if it's enchanted. Is there any way to achieve this? Please help.
here is the procedure i used. https://imgur.com/a/thAozi5
Edited by HVDES on Wed, 07/03/2024 - 16:45
i think the issue here is that you set the damage dealt to 10. if you want it to deal more damage based on an enchant swap out the 10 for its current attack damage + 3. pretty sure the block is (get damage of provided item stack) then you just put it in a math block and add a "+3"