Limit input for hoppers

Started by coolbot100s on

Topic category: Help with modding (Java Edition)

Last seen on 20:45, 16. Sep 2020
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Limit input for hoppers

When I create a gui and select a slot in that gui to only accept a certain item as input, hoppers will still place any item in that slot.
How do I change it so the slot will only store a specific item? and canonly have that specific item inserted by a hopper?

Last seen on 18:54, 23. Aug 2023
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It may be that it wasn't…
Tue, 09/01/2020 - 01:25

It may be that it wasn't thoroughly tested and only works when being placed by hand, not by hopper input. So if possible, you can use the "on block tick" trigger to check the block inventory, and if an item is placed inside it (that isn't "x" item), spit it out of the inventory or something of the sorts.