This block has one item slot, let's call it the accumulator.
3 is the upper side, 4 is the bottom side of the block.
If the back side is not powered:
When side 1 is powered, a stack of items from the container above (3) is transfered to the accumulator.
When side 2 is powered, a stack of items from the container below (4) is transfered to the accumulator.
And if it is:
When side 1 is powered, contents from the accumulator are transfered to the block above (3).
When side 2 is powered, contents from the accumulator are transfered to the block below (4).
All the transfers happen on the rising edge of signals 1 and 2.
The front side is useful as well. The block stores the 'return code' of the last operation.
0 = undefined
5 = success
10 = input error: container (above or below) is empty
15 = output error: container (above or below) is full (or the block is not a container at all)
If you connect the front side to the output of the swapper, you can read some information from it.
If the comparator is in comparison mode, it will act the same way as with chests.
If the comparator is in subtraction mode, it will output the return code.
I don't know if the return code system is any useful, but it might be helpful for debugging or for limited applications.
In general, the swapper can be useful in storage systems
Honestly, I'd be more interested in a filter block, which would allow for compact sorting systems that sort different items into different destination containers, much like Immersive Engineering's item router. Swappers could in theory be used for chest clocks, swapping items into chests to alternate a signal for such things as auto farms.
Rollback Post to RevisionRollBack
I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!