Disable item in slot

Started by TheFuturisticIdiot on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Disable item in slot

Im trying to make it so there is a slot where you can put any item BUT one specific item. Any way to do this?

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If item in slot x = Banned…
Tue, 07/14/2020 - 03:37

If item in slot x = Banned_Item 

do

repeat [Get number of items from slot x] times

do

spawn the item get item from slot x  [x] [y+1] [z] 

remove item from slot x

if item in slot x is NOT = Banned_Item

do Break loop