mojira.dev
MC-275577

Minecart rode by player on unpowered rail shows different behaviour than before

Description: Minecarts rode by players do not stop when entering powered rail. Minecarts rode by players are also possible to accelerate by pressing W (walk forward button) to accelerate when being on unpowered rail, showing the same behaviour as normal rail.

However, empty minecarts, minecarts rode by other entities such as a villager, hopper minecarts, chest minecarts, furnace minecarts and tnt minecarts are not affected.

Expected behaviour: Minecart rode by player stops promptly when passing through unpowered rail, and is not able to accelerate on unpowered rail without redstone power.

Actual behaviour: Minecart rode by player only slows down to a rather low speed when passing through unpowered rail. It is also possible to accelerate the minecart by pressing W (walk forward button) on unpowered rail as if being on normal rail.

Steps to reproduce (stopping test):

  1. On a world with "minecart improvements" experimental datapack enabled, set up normal/powered rail, then connect it to several blocks of unpowered rail.

  2. Place and ride on a minecart. Accelerate the minecart by pressing W (walk forward button).

  3. When the minecart reaches the unpowered rail section, notice that it only slows down and continues its movement very slowly.

Steps to reproduce (accelerating test):

  1. On a world with "minecart improvements" experimental datapack enabled, place a minecart on unpowered rail of several blocks long, and ride on it.

  2. Attempt to accelerate the minecart by pressing W (walk forward button).

  3. Notice that the minecart is possible to accelerate without the rail being powered by redstone.

Attachment (video of testing): https://youtu.be/Lultj2C0oH8

Linked issues

Comments 3

After some testing, the bug here seems to be that the minecart will continue accelerating indefinitely towards the cardinal direction of the user's most recent button press, even after the user has let go of all movement keys. If the user did not press any movement keys while in the minecart, the minecart will consistently come to a full stop at the unpowered rail. For example: if the player is sitting in a minecart and taps the W key while looking towards north, the minecart will continue accelerating towards north indefinitely, even stopping and reversing if required. The effects ceaces if the player leaves the minecart.

Can confirm 24w35a

Behaviour changed in 24w36a. Minecarts now appear to exhibit expected(correct) behaviour in the stopping test. Minecarts appear to consistently come to a full stop at unpowered power rails, regardless of inputs made by the player prior to entering the unpowered power rail. Players also do not continue accelerating the minecart indefinitely after movement keys are released (see previous comment on 18/Aug).

The acceleration test still shows that the player is able to accelerate the minecart with movement keys while on unpowered power rails, but I hold that this is intended behaviour, as it can be observed without the minecart experiment, and even in 1.21.1, and 1.19.3.

Cathay3520

(Unassigned)

Confirmed

Platform

Normal

Minecart

experimental_minecart

24w33a, 24w34a, 24w35a, 24w36a

Retrieved