Started by
Ball-van
on
Topic category: Help with Minecraft modding (Java Edition)
Hello everyone! Please tell me how to make sure that when using an item on the player, effects are superimposed?
Topic category: Help with Minecraft modding (Java Edition)
Hello everyone! Please tell me how to make sure that when using an item on the player, effects are superimposed?
What effect
i think it’s just so dam easy u shall try urself
I want to make sure that when killing a mob with a custom sword, the player gets regeneration, I can only apply the effect on the mobs, I don't know how to make the effect apply to the player in this case.
MatthewX, it's actually not very easy lol. I can say this because there's no trigger for "entity is killed with tool" and it's only possible through an event-based (globally triggered) procedure. plus, not all people are skilled at procedures. you didn't even teach him exactly how to do such thing, so... let me take it from here, i usually know what i do with procedures yet kind enough to show/teach people how to do something with them :D
Ball-van, you can use this as the basis for making your custom sword give players regeneration after they kill a mob with it:
all you need to change is the sword on the item procedure block to your own custom sword (as you can see i used netherite sword as an example). that's it, hope this helps!
additional info for future reference:
Hey! Thanks for your help! It helped me a lot!