Furnace minecarts lose power after navigating corners
Resolved
Fixed
120
The bug
Furnace Minecarts lose power after navigating corners.
How to reproduce
In creative mode, create a long straight section of track, with a shorter section at one end creating an L-shape
Place a furnace minecart on the shorter section just before the corner
Right click on the powered minecart with charcoal, while looking forwards but against the curve → After rounding the corner, the furnace minecart will roll to a stop 10 blocks along the track as though it was unpowered
If the minecart is right-clicked again after it has stopped while you are facing in the correct direction, it will start moving again. Additional fuel doesn't need to be provided – just clicking it fixes the direction and will cause the old fuel to be used properly.
I can confirm that this is also happening on 14w25b, and not just corners. It seems to loose power almost anywhere and disconnects with the carts its pulling right when it hits a curve.
There are still problems with how powered minecarts go around corners. If there are two corners, the powered minecart will go about 8-10 blocks then stop. Sometimes they keep going, and rarely they bounce back an go the wrong way before stopping.
Also, powered minecarts no longer push minecarts with chests when both are adjacent and started from a dead stop.
I'll attach some screenshots of the experiments I made. At first I thought the distance between corners made a difference, but after looking at the results I'm not sure.
When a player right-clicks the furnace cart, it is given a push vector based on where the player is stood relative to the cart. In versions prior to 1.8, this vector would be updated every gametick to face in the direction that the minecart is moving - however in 1.8, the push vector is stuck in the direction that the player initially set it to.
If the angle between the push and motion vectors is over 90 degrees (i.e. scalar product is negative), the push vector is set to 0 and the cart will come to a halt.
For example, if you are facing South-West when you right-click the cart, it won't lose power on tracks which take it South or West, and there can be many corners alternating between those two directions.
There are thousands of unresolved bugs, Mojang will get to this one eventually. If they go ahead and add in the new minecart mechanics that they had in 14w11a, I'm sure this will be fixed then.
Issac, those "minecart mechanics" (a.k.a Jeb's Minecart Law) were removed by popular demand by the community, so as long as those mechanics stay removed, this is most likely unfixable.
Oh, they were? I didn't realise. That doesn't make this unfixable though, I was just saying that if they ever did something with minecarts, they would probably get to this too, as it also affects minecarts.
@Sonic: this bug is currently making powered minecarts unusable, i would say that this should be high priority... As for being unfixable, they said that they would "revert" minicarft mechanics, and they did so but they forgot to "revert" ( aka. fix) powered minecarts too
Is no one trying to use Furnace powered mine carts anymore? I have an entire world going back to using horses 'cause the rail system that connects everything won't run anymore.
I've made an observation, which thus far has been consistent.
When the Furnace Minecart takes the turn, the orientation of the cart and/or furnace reverses.
1st example: Cart is rolling with fire to the rear. Cart transitions turn and fire remains to the rear, the cart continues rolling unabated.
2nd example (converse): Cart is rolling with fire to the rear. Cart transitions turn and the fire side flips to the frontward end, the cart stops rolling.
This holds true regardless to directional orientation of the cart (fire to the front side or to the trailing end of forward motion). So long as the cart/furnace facing remains consistent through and after the turn, the cart continues rolling. If it reverses, it stops. There seems to be no rhyme or reason to when it happens. I've witnessed several consecutive turns where the flip did not occur.
I hope this helps. I look forward to the resolve.
Standing at the station waiting for a train that never comes.
Thinkofdeath, how does one apply the script you have posted, and does it address the issue as I have it described?
Should do, don't have it applied to test. The patch itself was applied against Spigot (Minecraft server mod) on the partially de-obfuscated source. Wouldn't recommend trying to apply it yourself unless you understand how to work with the mod, I just included it to show roughly to mojang were I fixed it.
Confirmed 1.8.7/Mac. Definitely looks like the push vector is stuck as described by @unknown. Observations with a 12x12 loop of track:
furnace cart started at southwest corner while facing northeast comes to rest at northwest corner (about 10 blocks from northeast corner where its motion vector presumably gets set to 0)
furnace cart started at southwest corner while facing southeast comes to rest at northeast corner (about 10 blocks from southeast corner where its motion vector presumably gets set to 0)
15w36c The problem seems to be with PushX and PushZ. These are the as you called them vectors that determine the Motion of a MinecartFurnace (see comment on MC-88038). However these values are most of the time set to 0 when a MinecartFurnace navigates through a corner. This normally only happens when Fuel is 0, however for corners it does not matter.
The solution has already been fixed by ThinkofDeath just Mojang still has refused to implement it.. I mean unless we trying to get quasi-real physics working, the velocity should never go to zero on a turn regardless it should change the thrust vector to the new direction of travel. It is a powered minecart with a fixed force of thrust. This isnt a simulator so dont see why implementing code that fixes the problem still has not been implemented.
I'm currently trying to fix up the furnace minecart for my mod Vintagecraft - I can confirm from simple tests that Thinkofdeaths solution fixes the problem of coal powered carts slowing down after going through a curve.
it is not a suggested fix unless you know what you doing because obfuscation changes in every version release.. best bet is use the 3rd party server or get alot of people to start upvoting this issue so they might finally implement it. if MCP was kept up to date then this would be possible but since it hasnt been updated since 1.8 it would not be recommended.
or they could just have implemented the code that fixed the problem provided by one of 3rd party server devs which in fact was implemented and been fixed in said 3rd party server for over half a year now. 😞
In my Opinion it would be really useful if powered minecarts were given a menue with a coal slot and buttons to define the direction of driving. And its currently still being an issue in Minecraft 1.8.8
Please can this be fixed soon, it's been an issue since 1.8 which puts me off using the newer versions since furnace carts were one of my favorite items in the game.
If Dinnerbone or Mojang indeed plans to remove furnace minecarts, I suggest just marking this issue as "wontfix" instead of letting a ton of people waiting for this issue be fixed one day.
Nobody at Mojang ever confirmed that furnace minecarts will be removed for sure, they only thought about it, but no decision has been taken as far as I know. Nevertheless, even if the furnace minecart was to be removed from the game, it still is part of the game until it is actually removed.
Still an issue on 19w42a, I'm practically begging you at this point to fix this since it has been an issue for nearly five years and I literally stopped playing vanilla minecraft versions because of this as furnace carts were my favourite item.
Please, if you have no intention on fixing this just do what liach said and save me, plus others, the pain by marking it as wontfix because at the moment I still have my hopes up that this will one day be fixed.
May or may not be intentional, this certainly seems strange however.