Started by
Utytft
on
Topic category: Help with MCreator software
I wanted to know if there is any way to make a tiem protect the player from taking damage and also doing "something" when the entity attacks with procedures
For example: when the players holds right click, the item protects him from incoming damage and for every hit absorbed 1 item is added into the inventory of the player
This procedure should do what you want:
https://drive.google.com/file/d/1sU9d9ZTXgFHQGeyuvXuTwcFRugcYOm6S/view?usp=sharing
One thing I don't know for how to do sure is to check if the player is right clicking.
Make an nbt variable that is set to true when you right click the shield. Add check for nbt data to Willk's procedure.