A way to disable items from dropping from GUI's

Status
Fixed
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

I could do this but it will only work in cases where GUI is not bound to the entity/item/block. This means it is still OK for the trader GUIs which do not need binding but are only opened without any inventory link.

Submitted by MrScautHD on Wed, 07/22/2020 - 07:57 Permalink

is this a Option to drop all other slots without the Output slot?