Started by
GoldenLambMC
on
Topic category: Help with Minecraft modding (Java Edition)
I need help for making an item. This item, when right clicked, adds a heart to the player's total heart counter. I need it to be one time use and I don't know how to do that. Also this is the code for the procedure when right clicking the item and something isn't working. Thanks for any feedback what so ever.
Here's my code: https://pasteboard.co/FfrgFEvxXMzj.png
Edited by GoldenLambMC on Thu, 07/20/2023 - 21:30
Well instead of that put an add potion health boost for when the item right clicked
Heres how: when the item is used, add the following blocks:
Shrink (provided itemstack) for (1)
item in main hand of (target / event entity)
replace provided itemstack with the second block.
shrink (item in main hand of (target/event entity) for 1
this works because i know because i have an item that when rightclicked ona block, places a plant and removes one of it. I hope this helps