I can't remove the item from the inventory

Started by playextreme on Tue, 01/05/2021 - 22:01

Topic category: Help with modding (Java Edition)

Last seen on 23:47, 5. Apr 2021
Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I can't remove the item from the inventory
Tue, 01/05/2021 - 22:01

I created a Lootbox, which could be opened using a key 

I wanted that when I opened the box, the key and the box would disappear from my inventory, however, only the key will disappear, and the box will be replaced in the same slot.

Can anyone help me with this?