Topic category: Help with MCreator software
So basically I have two items in my mod: Uncharged ukulele and Charged ukulele (its icon is an ukulele with some blue effects).
That is how I want it to work: you take a charged ukulele in your hand -> you hit a mob with it -> charged ukulele is removed from your inventory -> uncharged ukulele is added to your inventory.
I really need your help. I watched some tutorials, but can't figure out how to create this feature properly. In my code I tried to target a player who hits a mob with a tool.
UPD: anyone here?