Item doesn't dissapear when right clicked

Started by filval387 on Sat, 12/04/2021 - 18:26

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Item doesn't dissapear when right clicked
Sat, 12/04/2021 - 18:26

(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 18:07, 28. Jan 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.