Started by
Kenjisaurus
on
Topic category: Help with Minecraft modding (Java Edition)
How can i make a tool that deals extra damage to any entity that attacks the user of the tool.
Topic category: Help with Minecraft modding (Java Edition)
How can i make a tool that deals extra damage to any entity that attacks the user of the tool.
Well you can use “spike” enchantment effect procedure when the sword in your inventory
Tool = sword
*On entity hit with tool"
*Deal damage to "source entity"*
what I mean is when a mob hits you and you have the sword in main hand if you hit that mob then it takes more damage
nevermind i found a way to do it
How did you manage to make the enchant? I'd like to know if that's alright
Probably using a custom effect or NBT tag applied to any entity that attacks someone holding the tool, and on hit, the sword checks if the entity has the effect and does extra damage if true.