mojira.dev
MC-267682

Hopper doesn't observe 1tick delay after being unlocked

Based on the minecraft wiki, a hopper that was locked does not push/pull items in the same redstone tick of when it was unlocked. It is expected to have a 1 redstone tick delay.

But it seems that it is processed in the same tick, instead of observing the 1tick delay.

 

Reproduction : 

[media]

In this setup, when the torch on the target block turns on, it will power the block below the dropper, and trigger it. It will also unpower the redstone torch that is locking the hopper.

When processing the events tick by tick, we can see that the tick in which the redstone torch turns off, the hopper already has moved the item in the dropper.
Since the dropper has a 2redstone tick delay, it will not have time to eject it's item before the hopper pushes into it, because the hopper is ignoring the "unlocked" delay. (the expected behavior is: 1 tick for torch to turn off + 1 tick for hopper to be unlocked == dropper delay).

You can also easily see it by placing a full stack in the dropper, and the same item in the hopper. The behavior makes the items in the dropper always be 2 stacks, 1 of 63 and 1 of 1, instead of staying a full stack of 64 (if the dropper was fireing before the hopper inserts).

Linked issues

Attachments

Comments 2

Duplicate of MC-96709, won't fix.

I don't believe this is a duplicate of an order-dependent issue. While there is location issues with hoppers, this is a hopper Ignoring a cooldown it was subjected to.
The hopper is supposed to be in cooldown after being unpowered, so no matter the order of execution, it should wait for the next redstone tick before activating.

I agree my exemple might suffer from locality and order dependent since both the hopper and the dropper would activate in the same tick.  The issue here is that the setup is not even execution order dependent because the hopper ignores the cooldown.

Furthermore, the following setup should not have the issue of the hopper and dropper triggering in the same tick because of the added repeater. The delay should be : 1 tick from redstone torch + 1 tick from repeater + 1 tick from hopper cooldown after unlocking > 2 tick for dropper. That is not the case and using /tick freeze commands you can see the droper fires at the same time as the hopper fills it up.

[media]

Azyrod_

(Unassigned)

Unconfirmed

(Unassigned)

1.20.4

Retrieved