Mojira Archive
MC-276078

Minecarts are going faster than max speed on powered rails

Description: Powered Rails always add a flat +0.06 above the possible expected max speed which is set by the /gamerule command.

Example: maxSpeed 20 Bps --> max 1 block/tick possible expected, but ingame it is actually 1.06. This is a big problem for timing based cart tech! It is always a flat +0.06 regardless of the set maxSpeed. Switching to normal rails instantly removes the incorrect offset. Therefore it can be assumed that there is a problem somewhere within or near the powered rail speed calculation. Affects all minecart types. Tested for multiple max speeds.

Reproduction Steps:

  • Set minecartMaxSpeed to 20
  • Build a straight line with powered rails, ~20-30ish blocks
  • /tick freeze place minecart on starting block and power the rails
  • /tick step 25 /data get entity <x>
  • Check motion value (1 number should be 1.06)
  • replace the powered rails with normal rails near and infront of the minecart
  • /tick step /data get entity <x> Check motion value again (the number should be 1.00 now)

Observed results: The max speed on powered rails is always +0.06 higher than it should be. (minecartMaxSpeed 20 = 1 block/tick, but is 1.06 blocks/tick ingame).

Expected results: Max motion value on powered rails is always minecartMaxSpeed/20 (and may only be exceeded by going down sloped rails, if this is a desired mechanic).

Unresolved

jobe_1110

2024-08-27, 03:05 PM

2024-09-05, 03:45 PM

1

2

Confirmed

Normal

Platform

Minecart

experimental_minecart

24w34a, 24w35a, 24w36a

-