Copper Golem Sorting Support
So I am implementing a 3x3 Copper Golem sorting system, and I'm trying to set it so the golem can put its unsortable items into the hopper/double chest to the right, which feeds to the next copper golem's chest and so on. However, it is favoring items in a way that its sending any block into the discard chest before the corners. Is there any way I can reorient this, or is there a way I should fill my chests before I start sorting items. Thanks!
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
I’m still learning the copper golem sorting thing myself, but that’s what I’ve gathered
Push the golem/minecart up against the 9 main chests and put the 10th empty chest at one of the corners of the top row instead of the middle row.
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
**Details:**
They will go through the chests by distance first.
In case of a tie (e.g. middle left vs middle right in the 3x3), which one comes first depends on how the chests are stored in the code.
This order is based on a hash function of its coordinate, so in some locations, the middle left always come first, in other locations, the middle right always come first, etc. So we don't want to be relying on this tie-breaking order.
I.e. we want to make it so that the 9 main chests in the 3x3 are all individually closer compared to the 10th chest.
With the golem positioned exactly in the middle on top of the stair, the order is something like this:
+---+---+---+
| 6 | 5 | 6 |
+---+---+---+
| 3 | 1 | 3 |
+---+---+---+
| 4 | 2 | 4 |
+---+---+---+
The 3's, 4's and 6's are tied and can come in any order based on their location, but that doesn't matter much.
We just need to make sure that the 10th empty chest is further than the 6's (top left and top right).
In the setup in the image, if the 10th chest is above the hopper, it will be tied with the 3's, so the 4's, 5's, and 6's are further and won't get a chance to be checked before it pass the item to the next module.
Typically, this setup is done by positioning them jusssst slightly closer to the 9 main chests (e.g. push the minecart up against the chests), then put the 10th empty chest on one of the 2 opposite corners in the top row.
By being in the corner of the top row, it would be tied with the 6's, so it'll still fail in some locations where that corner just happens to come first before the other 2 corners. So positioning them *closer* to the 9 main chests is also necessary to not rely on that tie-break.
The top corners will still be tied, but either way, both must be closer than the 10th.