Disable item in slot

Started by TheFuturisticIdiot on Mon, 07/13/2020 - 17:15

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Disable item in slot
Mon, 07/13/2020 - 17:15

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 20:49, 8. Feb 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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