Item doesn't dissapear when right clicked

Started by filval387 on

Topic category: Help with modding (Java Edition)

Last seen on 04:17, 2. Jan 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item doesn't dissapear when right clicked

(Executed from when item right clicked in air)

Here, I want to delete the Item the player has when they use it, however, when I tried, the item stays there.

Last seen on 20:36, 19. Sep 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I had this problem with my…
Sun, 12/05/2021 - 13:11

I had this problem with my mod but fixed it by placing a (Do If) block, then place at (If) a (Has Event/target entity in inventory [item]) block, then at (Do) place the block of whatever action you want it to complete then a (Remove 1 [Same item] from main inventory) block. I know that was really confusing and I explained it bad, but I hope it helps. If I could figure out how to place an image here I would.