Help Required

Started by GoldenLambMC on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help Required
Thu, 07/20/2023 - 21:30 (edited)

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
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well instead of that put an…
Fri, 07/21/2023 - 12:11

Well instead of that put an add potion health boost for when the item right clicked

 

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Heres how: when the item is…
Fri, 08/04/2023 - 22:52

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