Disable item in slot

Started by TheFuturisticIdiot on

Topic category: Help with modding (Java Edition)

Last seen on 11:40, 4. Sep 2020
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?

Last seen on 00:03, 27. May 2022
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