Re: [Mod] Hoppers
Posted: Fri Mar 31, 2017 07:09
I've made an update to the minetest-mods hopper version, adding a new type of block: a "sorter" node. This is essentially a chute node with an alternate output that you can use to shunt particular items to a different destination.
There is a set of inventory slots labeled "Filter" at the top of this block's inventory display, if you place an item into one of these slots the sorter will record the item's type (without actually taking it from you). Then when items come through the sorter's inventory that match one of the items in the filter list it will first attempt to send it in the direction marked with an arrow on the sorter's sides. If the item doesn't match the filter list, or the secondary output is unable to take the item for whatever reason, the sorter will try to send the item out the other output instead.
Credit goes to Burli for prompting me to do this with his Hopper with hopper sorter fork. I wound up rewriting the sorter entirely when I implemented it here (Burli forked off of the original hopper, which my fork has diverged too far from at this point for easy merging) so my version behaves a bit differently.
There is a set of inventory slots labeled "Filter" at the top of this block's inventory display, if you place an item into one of these slots the sorter will record the item's type (without actually taking it from you). Then when items come through the sorter's inventory that match one of the items in the filter list it will first attempt to send it in the direction marked with an arrow on the sorter's sides. If the item doesn't match the filter list, or the secondary output is unable to take the item for whatever reason, the sorter will try to send the item out the other output instead.
Credit goes to Burli for prompting me to do this with his Hopper with hopper sorter fork. I wound up rewriting the sorter entirely when I implemented it here (Burli forked off of the original hopper, which my fork has diverged too far from at this point for easy merging) so my version behaves a bit differently.