A way to disable items from dropping from GUI's

Upvotes: 3
Issue description

Could we have a way to disable items from dropping from GUI slots.

I made a tutorial on trading mechanics but someone brought to may attention that the mechanics that I used drop both the trade item and the currency item if the currency slot has the item in it, it gets added to the inventory when it should only drop the emerald. Video tutorial: https://youtu.be/0_eqw9VAl3I?t=238

If we where to disable the dropping we could do the following.

  • Test for the item which we want to only drop or add to the player's inventory
  • use the spawn gem or directly add the item to the players inventory.

Thanks in advance :D
- NorthWestTrees Gaming

Issue comments

Disabling dropping for specific slots would be even better, although I am not 100% sure if possible :D



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.