Following is a unique redstone component that may open up design space. The Item Comparator allows you to calculate if a recipe is craftable by telling you how many multiples of particular set of items there are in an attached chest. That may sound complicated so please read on for clarification.
The Item Comparator is crafted with a chest on top of a comparator. It contains 3 slots for items. The Item Comparator compares the number and type of items in a connected container to the number and type of items in the Item Comparator. It outputs a redstone signal equal to the smallest multiple of those items in the connected container.
For example, with a comparator that contains 3 diamonds and 2 sticks, if the container has 10 diamonds and 10 sticks, the output will be 3 i.e. we have enough ingredients for 3 diamond pickaxes. If the container has 100 sticks and 2 diamonds, the signal strength will be zero because there is not enough ingredients to make any pickaxes.
I chose to have 3 slots because that is enough to calculate for most recipes. If performance is concerning, the Item Comparator may simply have one slot. In that case it may be made with a Comparator + Item Frame and we could employ the use of AND gates to calculate for recipes.
This block would assist in complex item transportation. It would open up design space for automatable blocks that require more than 1 item as input and blocks that determine the output based on specific quantities.
Current use cases for the item comparator that the current comparator doesn't do include, checking if a furnace has coal without counting other items or checking if a hopper has exactly 1 diamond in it. Keep in mind that this component is breaking new ground; I believe the best use cases don't exist yet. I am looking forward to seeing new potentially automated blocks that encourage its use.
Please sign in to leave a comment.