mojira.dev
MC-256052

Hoppers behave different depending on sequence of placement

Hoppers behave in a different way depending on the build sequence in this very specific case:

[media]

Here I am partly clipping a hopper minecart to the bottom rail while half of it is still in the cauldron filled with lava destroying it and thus dropping both the content of the minecart as well as the minecart itself. The content of the hopper minecart always drops on the hopper with the rail on top, the hopper minecart itself however gets picked up by one of the 2 hoppers depending on which one is placed first.

Steps to Reproduce:
Build a contraption as shown above and take note of what hopper was placed first then place a hopper minecart on the track. (Redstone lamp and comparator are not of importance)

Observed Results:

Minecart gets dropped and picked up by the hopper that was placed first. It should be of note that upon reloading the world or the chuncks this always works as if the hopper with a rail on top was placed first. 
Sidenotes: This works in every direction.

Expected Results:

Either upon reloading the world the behavior doesn't change to the second hopper taking the minecart or the behavior shouldn't be dependent on what hopper is placed first.

Video:

[media]

Linked issues

Attachments

Comments 3

Can confirm this behavior in 1.19.3, though it does appear to be affected by the speed and/or position of the hopper minecart.

[media]

With the setup above, the end result changes depending on which rail the cart is initially placed. This is also the default behavior after reloading, with the right cart ending at the left hopper and vice versa. However, if the hopper order is reversed, the cart item will be picked up by the left hopper, regardless of the rail on which it's placed, until the world is reloaded.

[media]

However, replacing two of the powered rails with regular rails as shown in the second setup makes the item pickup behavior consistent for this specific design. It's also consistent even if the order of hopper placement is inverted. After reloading, the game defaults to the right hopper.

I'll add that I have only ever noticed this behavior when using empty hopper minecarts. In my testing, if the hopper minecart contains even one item, the left hopper always picks up that item and the right always picks up the minecart item, even if the left hopper is placed first.

After more testing, it's also worth noting that these results vary depending on the type of minecart used. Using the first setup with chest minecarts doesn't differ from any outcomes seen with hopper minecarts, but minecarts alone always respect the order of the hopper placement, e.g. if the left hopper is placed first, it will always pick up a regular minecart (defaults to right hopper after reload). This setup doesn't allow me to test furnace minecarts though, presumably because they travel the slowest of all minecart variants, so further testing may be required.

Looking at other reports on hoppers has led me to believe that this behavior is a duplicate of #MC-96709. Tile entities are ticked in the order you placed them until the world or chunk is reloaded, after which the game defaults to using a hash set to determine tick order. However, this system is locational, meaning that hoppers will behave differently depending on where they're placed (the most common symptom of this can be seen with a simple horizontal hopper line - send items through, lock the hoppers, and some will be empty). I imagine if you rebuilt any of these setups in separate locations, you'd eventually encounter pickup behavior inconsistent with the testing results.

I don't know if this bug fully explains why the results vary depending on the speed of the minecart, though it probably has more to do with where the item entity is placed within the world after the minecart is destroyed. In my testing, tile entities and item entities with a hitbox that extends over two hoppers will respect the placement order before a reload.

Thank you for your report!
We're tracking this issue in MC-96709, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

morisa00

(Unassigned)

Unconfirmed

(Unassigned)

1.19.2, 1.19.3

Retrieved