Drag and drop a matching item?

Hi guys, noob needing some specific help!

I have an inventory all setup with drag and drop setup, and a secondary inventory/chest that i can drag and drop into and out off.

How to I have a slot that needs a specific item dropped into it? Slot will only accept an apple item for example.

Thanks.

Create an enumerator:

Or, in fewer words:


  • drop slots get an enum
  • draggables get an enum
  • when you drop, compare enumerators
  • if match → Drop
  • if not → Cancel Operation