Copper Golem: aren't they supposed to look for the right chest?
Okay I have clearly misunderstood how the copper golems work.
I have set up a 3x3 array of chests. The golem is in a minecart in front of the central one, and as such can reach all nine chests. The copper chest is to its right (it can also reach that), and to the left, is a chest which is always empty (because its contents are cleared by a hopper).
My expectation is that the golem will retrieve items from the copper chest, look through the nine chests (which already contain at least one of the items to be stored in there), and upon failing to locate a suitable chest with contents, then place the item into the empty chest.
What actually happens is it takes some items from the copper chest, tries either one or zero of the chests with contents, and then instantly gives up and puts the items straight into the empty chest.
Whyyyy?
Is the empty chest not supposed to be a failsafe, rather than its first instinct??
Is there a way to actually make these wee dudes useful? I was so determined to put these cuties to work, but... they seem to just be passing everything down the line to be someone else's problem.
Hopefully I'm just missing some crucial piece of information to make this functional.
What am I missing??
I'm on Bedrock on PC, 1.21.124
https://preview.redd.it/ofe3z2531w4g1.png?width=2525&format=png&auto=webp&s=706b3a2e9f7acc5c3c22f853a732e01e554953c7
I have set up a 3x3 array of chests. The golem is in a minecart in front of the central one, and as such can reach all nine chests. The copper chest is to its right (it can also reach that), and to the left, is a chest which is always empty (because its contents are cleared by a hopper).
My expectation is that the golem will retrieve items from the copper chest, look through the nine chests (which already contain at least one of the items to be stored in there), and upon failing to locate a suitable chest with contents, then place the item into the empty chest.
What actually happens is it takes some items from the copper chest, tries either one or zero of the chests with contents, and then instantly gives up and puts the items straight into the empty chest.
Whyyyy?
Is the empty chest not supposed to be a failsafe, rather than its first instinct??
Is there a way to actually make these wee dudes useful? I was so determined to put these cuties to work, but... they seem to just be passing everything down the line to be someone else's problem.
Hopefully I'm just missing some crucial piece of information to make this functional.
What am I missing??
I'm on Bedrock on PC, 1.21.124
https://preview.redd.it/ofe3z2531w4g1.png?width=2525&format=png&auto=webp&s=706b3a2e9f7acc5c3c22f853a732e01e554953c7
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*)
They can reach the copper chest to their direct right, and the empty chest to their direct left. Which suggests they should also be able to reach the others?
I'll give them a push and see what happens, thanks for the suggestion.
Your reply does suggest that my initial understanding isn't flawed, though - only my implementation of it. Is that right?
SHOULD it work??
He's still taking from the copper, checking the central chest of the nine, and then instantly giving up and putting the item into the "overflow" empty chest.
Even when removed from the minecart, and standing unobstructed on the slab, the same behaviour persists.
Either I'm missing something, or this batch of golems is!
I'll try that, thank you...
If I scrap the overflow chest, they do indeed start searching through all nine chests. This confirms they can reach them.
If, however, the item ISN'T in one of those chests, they eventually stall.
Giving them an overflow chest back, they then start defaulting to that one again.
Maybe the overflow chest is too close. Maybe it needs to be in one of the more distant corners - e.g. behind, and above.
But in that case, I'm not sure how I can get them to pass the items on to where I want them to, without interfering with what I'd hoped would be the row behind them. (but that's a different flavour of problem so not relevant to this question)
Apparently, their search order is based on:
a) proximity, and
b) cardinal direction.
So they will first look in the "closest" chest, and if more than one competes for that attribute, it will first check North, then South, then East, then West.
In my example, North is "behind" the golem, where there are no chests. South (priority 2) is facing the 3x3 array - they check the chest on the same y-level (i.e. the one straight in front of them, in the centre of the array). Next priority, East, is to their left - the overflow chest. Which is permanently empty and therefore available. Deposit item, goto 10.
I've effectively forced the whole system to be broken by default.
I'm not even sure how I can make this work. I can have all the golems facing East, so that they check in front, left, and right first - before checking behind them, where the overflow would be (although I don't want the overflow there, but never mind...) But I'm not sure when they would check NE, SE, up, or down...
I can't find any explanation of their logic online, beyond proximity and NSEW direction, so I've no idea how would prioritise each of the 24 possible chest locations around their minecart site past the first four.
It looks like I need to experiment more.
I'm still confused, and it still doesn't work how I'd hoped, but at least I understand why now.
I would very much like this to be the answer.
Meanwhile it's almost 3am and I have work in the morning, so I'm going to tell myself that this solves the problem, stop thinking about it, and go to bed.
I'll try this tomorrow.
Probably when I'm supposed to be working...
I just spent hours setting up the same system and went to bed before testing it. Now I didn't know if it's having the right direction.
Edit: Omg I'm so lucky, I did it correctly on accident
Copper golems always check chests in a very specific order that Im pretty sure is also dependant on the direction that they are facing. You could check in which direction they check last and rotate your system accordingly or switch to the design that puts copper golems on the top of chests instead of to the side. (Showcased by raysworks and mumbo jumbo both providing world downloads)
Each 3x3 array with its golem needs to pass its overflow on to the next golem & array, and there's only one block of space between each set of nine chests. The overflow needs to empty into the copper chest of the next section, but must be inaccessible to the next (or any other) golem. Each copper chest must only be accessible to the correct golem. Not only does each golem have to negotiate space with the next in line to the left, any previous golem to the right, but there's also another row of golems behind them.
There would be much more sensible placements for the overflow to avoid all my problems, if it weren't for the proximity issues due to me trying to fit these 3x3 units into an existing space.
I've just made things unnecessarily complicated for myself.
I'm pretty sure I've solved it now though. It's messy. It's probably not the best solution. But it works.
I had to get rid of the minecarts and let them roam more. My solution to the problem of the overflow and input of two different sections column without interference in each others chests is not great. But. It works.
I think I'm only going to do maybe three or four categories of items for now (each one contains three 3x3 arrays) and leave the rest for later once I've decided whether or not I actually like this at all. (There are currently 14 categories, but likely to expand to 16).
I am very good at complicating things for myself :)
Thanks
I'll edit the OP and add a pic there.
BUT - it's quite hard to show because of all the trapdoors etc. to block the golem in!
The pic I'm going to add shows the interior of the golem's space, without the golem. You should be able to work out what each block is I think? The most unclear one is the one directly in front of the stairs (above the second copper chest) looks like planks from here, but is actually stairs but upside down. It prevents the golem in this section from being able to see the next copper chest, but allows the next golem access to it.
The steps in front is where the golem will access the area in the first instance. I'll then close all the trapdoors, and add an oak trapdoor to close that gap. He'll then say in there forever :)