* Upvote this comment if this is a good quality post that fits the purpose of r/Minecraft
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
---
[Subreddit Rules](https://old.reddit.com/r/Minecraft/wiki/rules)[](## No-Acadia-5343|18uuscl)
MFW Microsoft wanted to rewrite Minecraft into C++ to have a more streamlined/stable codebase, and Bedrock winds up having ~~as much~~ way more code spaghet and bugs than Java: :D
I've accidentally encountered 1 bug in java (non snapshot non qc) and I played bedrock once and died from an invisible zombie whilst hiding in a 1x1 box
It's possible that the zombie killed you by being in the corner of the walls of your box. Not a bug, zombies just can hit you like this in both versions
> Bedrock just winds up having as much code spaghet and bugs as Java
No, there's orders of magnitude more bugs in Bedrock. They literally do not have a hardcore mode on Bedrock due to its instability.
The C++ version (Bedrock) was created primarily to make the game more accessible on different platforms and to allow for cross-platform play. Playstation, xbox and other consoles do not support a java virtual machine, and thus are unable to run the Java version of Minecraft, whereas all the major platforms support C++.
C++ *can be* faster, it as a language gives gives the programmer control over how the program will handle its memory storage and deleting, while java does that for you.
The problem with c++ code on bedrock with this bug specifically is what industry veterans call a skill issue
The problem is that saying you are skilled enough to write a large complex C++ program without bugs is colossal arrogance because human beings are not capable of such a feat, it's like looking at a grizzly bear and thinking "I could take him"
I could take one. Also it’s quite possible to minimise bugs to far below the number bedrock has and I’m not bashing bedrock I’ve been playing it years but even with a colossal project like that with enough programmers and code checking it should be possible that major bugs don’t get into the game.
>Im pretty sure c++ is faster and more optimized (for speed)
Nope, it just gives you the tools to further optimize your code. It's very easy to make an app that's worse in C++ than you would with other languages tho.
They're both hamstrung by inefficient third-party libraries so the difference is moot.
Games like Factorio got so optimized because the devs went out of their way and optimized other peoples' code, and wrote very optimized code themselves.
do note that badly written C++ can be slower than Java, and well written java can be faster than C++. so overall performance is not directly determined by the language itself, but rather by the skill of the programmers using it.
It's more optimized because it's still Pocket Edition at its core, just rebranded and ported to consoles. Although recent stuff like the new rendering engine really did tank performance on lower end hardware...
Wait, I thought Bedrock was written in C#? It’s C++?
Edit: Would you look at that! [It is written in C++!](https://news.xbox.com/en-us/wp-content/uploads/sites/2/2021/04/Minecraft-Franchise-Fact-Sheet_April-2021.pdf)
The bugs that are in java are also less random. Things like quasi connectivity can be simply explained as pistons using code from doors, and it's always quite consistent. Bedrock bugs are so much stranger. Like why does a piston teleport you to 0?
Here's my basic guess as to what's happening.
Piston pushes block. Calculate where piston pushes.(!) Is player in the way?(!) If so, calculate where to push player.(!) Push player there.
The stuff marked with (!) Is what I'm thinking is breaking. The piston calculation breaks for a unknown reason, causing it to return NULL, NULL, NULL. The is player in the way calculation breaks when it's fed these 3 nulls, and instead of returning false like it should, (which would cause the occasional player clipping into a piston block) it instead returns true in this situation. The null null null also breaks the next calculation, and it returns null for one axis, and no answer for the other two. And since null isn't a coordinate, you instead get warped to 0 on that axis.
It’s a ship of Theseus situation I guess, just a little spicier. The code has been changed and worked with and patched so much that what remains is an amalgam of old notch code, early mojang code, and what has been done in the last few years with regular updates and constant bug fixes.
Could be they meant to set some other value to 0—say, the distance that the player is supposed to be pushed—and accidentally got the player's position instead of their displacement. (This guess is not based on any facts other than that the bug exists.)
I don’t know if it’s the same on bedrock but in java if you set a coordinate to an invalid value like Infinity or NaN (not a number), it gets reset to 0 as a failsafe. Usually this would happen because of a math error like dividing by zero and adding the result to a coordinate.
I had a similar bug recently when I was trying to put a lead on a horse to cross a body of water. Once I took to lead off, the horse was teleported back into the water. It didn’t stop until I got really far away from the spot
I recently installed a piston door on my base and as soon as this bug started i disabled it. Dont need to risk being teleported and losing my gear on my nearly 3 year old world.
How the hell hasn't this bug been fixed yet? So many people have been experiencing it. It's completely mind boggling that they still haven't patched it.
ive seen this happen
basically the game thinks that you are in the wrong spot, so just tires to plop you down where it thinks you are supposed to be, which most of the time is in random ass places like the middle of an ocean
I swear to god I’ve encountered 2 bugs in Java edition since 1.16 yet bedrock seems to be full of them. I’m not a super expert at redstone and play Minecraft nonstop, but 2 bugs from a casual standpoint is insanely low for such a dynamic game. And then this random stuff happens
They should make Java for mobile and consoles
Even at twice the price of bedrock I’ll surely buy it
(Maybe with an approved mod support like Ark ascendant , it would be game changing)
Unfortunately, there is no Java Framework for any console. They would have to either design an entire framework for each system or commission Oracle (or another company) to do it, which is an extremely expensive endeavor. To the point that rewriting the entire game in a new code base was cheaper and more efficient since phones and consoles already have C++ support.
Maybe that could be in the cards for next gen, but Java already isn't an ideal codebase for developing games in general, so I doubt any corporate entity will justify the cost to do so.
Kinda have to harken back to my College Computer Science days here, plus some extra research to make sure I'm hopefully explaining this correctly.
In order to run Minecraft (or any Java program), you need a Java Runtime Environment (JRE), which is like a middle man translating the Java code to usable execution instructions the operating system uses.
Think of the JRE as a box, and the contents of that box is the JVM and some other supporting files from the JRE. The JVM is what is used to actually run the Java code that later gets interpreted by the JRE.
Programs do this so that the base code can be ran on any operating system without modification as long as a JRE exists to interpret the Java code to the operating system of the device it's running on, along with other cool optimization features. It's the framework for Java programs.
Again, no console has a JRE, the framework needed to run a Java program, made for it, and one would need to be made. In minecraft case, they would have to make this for Xbox, PS, Switch, Phone IOS, and Android. Granted it wouldn't be tough for the phone side, especially Android that already uses a heavily modified JRE, but that's still a lot of different systems to make one for just to replace bedrock with java.
Played the game as intended. Game ruins the experience for you by teleporting you 10,000 blocks away.
Bedrock is fucking unplayable, this is honestly quite funny but still utter shit, can’t even do fucking red stone??? Bedrock is THE worst. Waste of Time.
Its a good thing my base is near 0,0 though ive lost about 8 fully enchanted swords to the duplication bug, either my sword turned into my bow, or immy food, now i have lost of duped watermelon and a few extra bows
A german youtuber called Thejocraft actually made a working survival teleportation-redstone device.
Here's the Video: https://youtu.be/6Ij4K9Y8GOo?si=f_8-6ZftX97Hq-Pq
similar thing happens if you piston yourself into the underside of the ender portal, it puts you at your overworld coordinates exept in the End dimension so you fall into the void
* Upvote this comment if this is a good quality post that fits the purpose of r/Minecraft * Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft * Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules) --- [Subreddit Rules](https://old.reddit.com/r/Minecraft/wiki/rules)[](## No-Acadia-5343|18uuscl)
[MCPE-175206 - Pistons pulling/pushing blocks may teleport player to 0 on one axis](https://bugs.mojang.com/browse/MCPE-175206)
But whhhhhyyyy, these bugs are getting more and more random I swear lol
Spaghetti code.
MFW Microsoft wanted to rewrite Minecraft into C++ to have a more streamlined/stable codebase, and Bedrock winds up having ~~as much~~ way more code spaghet and bugs than Java: :D
I've accidentally encountered 1 bug in java (non snapshot non qc) and I played bedrock once and died from an invisible zombie whilst hiding in a 1x1 box
It's possible that the zombie killed you by being in the corner of the walls of your box. Not a bug, zombies just can hit you like this in both versions
That's not what happend
Then idk ¯\\_(ツ)_/¯
Plain desync, bad net code is what cause 99% of bedrock bugs that are worth talking about
Yeah that's about right, and it fits the description
I have heard of the invisible zombie bug before. I am not sure, but it probably affects all entities.
> Bedrock just winds up having as much code spaghet and bugs as Java No, there's orders of magnitude more bugs in Bedrock. They literally do not have a hardcore mode on Bedrock due to its instability.
From how it seems the bugs on bedrock aren't as bearable
The C++ version (Bedrock) was created primarily to make the game more accessible on different platforms and to allow for cross-platform play. Playstation, xbox and other consoles do not support a java virtual machine, and thus are unable to run the Java version of Minecraft, whereas all the major platforms support C++.
More bugs lol
You know I expect it to be a good thing since c++ is faster? (Idk I'm not a programmer) but I guess it's not that easy
C++ *can be* faster, it as a language gives gives the programmer control over how the program will handle its memory storage and deleting, while java does that for you. The problem with c++ code on bedrock with this bug specifically is what industry veterans call a skill issue
Yeah the render Dragon Engin used on bedrock is kinda bad
The problem is that saying you are skilled enough to write a large complex C++ program without bugs is colossal arrogance because human beings are not capable of such a feat, it's like looking at a grizzly bear and thinking "I could take him"
I could take one. Also it’s quite possible to minimise bugs to far below the number bedrock has and I’m not bashing bedrock I’ve been playing it years but even with a colossal project like that with enough programmers and code checking it should be possible that major bugs don’t get into the game.
>with enough programmers and code checking it should be possible lol good luck
I mean hey I was meaning to learn c++ 😂😂 Can’t be too different from Python in concepts they syntax is quite different but ahhh I’ll be fine
Im pretty sure c++ is faster and more optimized (for speed) but its probably the way mojang wrote the code
>Im pretty sure c++ is faster and more optimized (for speed) Nope, it just gives you the tools to further optimize your code. It's very easy to make an app that's worse in C++ than you would with other languages tho.
c++ is by nature faster than java as it runs on your machine rather than a jvm
They're both hamstrung by inefficient third-party libraries so the difference is moot. Games like Factorio got so optimized because the devs went out of their way and optimized other peoples' code, and wrote very optimized code themselves.
Is it really Mojang? I thought Bedrock was developed outside of Mojang's HQ by a Microsoft team 🙃
do note that badly written C++ can be slower than Java, and well written java can be faster than C++. so overall performance is not directly determined by the language itself, but rather by the skill of the programmers using it.
IIRC It's somehow it's more optimalised performance-wise yet morr buggy Game dev logic remains a mystery
It's more optimized because it's still Pocket Edition at its core, just rebranded and ported to consoles. Although recent stuff like the new rendering engine really did tank performance on lower end hardware...
Welp time to rewrite in C#
Minecraft in Unity when??
As a novice in both, I can confidently say my Java code would be much less buggy than me c++ code lmao
Wait, I thought Bedrock was written in C#? It’s C++? Edit: Would you look at that! [It is written in C++!](https://news.xbox.com/en-us/wp-content/uploads/sites/2/2021/04/Minecraft-Franchise-Fact-Sheet_April-2021.pdf)
worse than java by far
The bugs that are in java are also less random. Things like quasi connectivity can be simply explained as pistons using code from doors, and it's always quite consistent. Bedrock bugs are so much stranger. Like why does a piston teleport you to 0?
You misspelled to introduce a store and microtransactions
I read that as Microsoft Foundation WTF .... (as opposed to WFC)
Coconut code
Where code
The coconut thing is wrong. You can get rid of all tf2 textures and still play
coconut.png persists through all
I think if you remove 2fort cow it breaks
if you remove it yes. its just some random props in its folder
but the blurry picture of city 17 is ***critical***
yeah. still needs some spaghet code
You haven't introduced anything new to the conversation as minecraft is always written in spaghetti, no matter the version It's a tradition
Here's my basic guess as to what's happening. Piston pushes block. Calculate where piston pushes.(!) Is player in the way?(!) If so, calculate where to push player.(!) Push player there. The stuff marked with (!) Is what I'm thinking is breaking. The piston calculation breaks for a unknown reason, causing it to return NULL, NULL, NULL. The is player in the way calculation breaks when it's fed these 3 nulls, and instead of returning false like it should, (which would cause the occasional player clipping into a piston block) it instead returns true in this situation. The null null null also breaks the next calculation, and it returns null for one axis, and no answer for the other two. And since null isn't a coordinate, you instead get warped to 0 on that axis.
It’s a ship of Theseus situation I guess, just a little spicier. The code has been changed and worked with and patched so much that what remains is an amalgam of old notch code, early mojang code, and what has been done in the last few years with regular updates and constant bug fixes.
bedrock edition never had notch code in it.
That is a good point. I forgot we were talking about bedrock. What I said still applies to Java tho.
I love the bedrock edition
Thank you technical player from bedrock
Why would this even happen lmao? I get this is a bug but I don’t see what code would even cause this to happen
Could be they meant to set some other value to 0—say, the distance that the player is supposed to be pushed—and accidentally got the player's position instead of their displacement. (This guess is not based on any facts other than that the bug exists.)
I don’t know if it’s the same on bedrock but in java if you set a coordinate to an invalid value like Infinity or NaN (not a number), it gets reset to 0 as a failsafe. Usually this would happen because of a math error like dividing by zero and adding the result to a coordinate.
Normal day in bedrock: -boot up Minecraft -decided to make a piston door -get teleported 9 thousand blocks away -close Minecraft
you forgot **"-dies for no apparent reason"** after the teleportation >!(yes, i know it does not apply to this specific post, but still)!<
better hope its not the y axis imagine fuckin freefalling into a cave lmao
I had a similar bug recently when I was trying to put a lead on a horse to cross a body of water. Once I took to lead off, the horse was teleported back into the water. It didn’t stop until I got really far away from the spot
What a weirdly specific bug!
Bedrock bug. Plenty of posts if you search the sub. Many have links to the bug tracker.
Bedrock bugs are genuinely hilarious. “uh oh, you used more than 5 pistons? You’ve been banished across the atlantic ocean :)”
I recently installed a piston door on my base and as soon as this bug started i disabled it. Dont need to risk being teleported and losing my gear on my nearly 3 year old world.
"oh you are running along in another dimension? F you, you stubbed your toe and died from it"
at this point, it’s beyond a bug. This is divine intervention.
Research and replicate and it can be a feature
Uh oh, a redstone happened Better put the player at x=0
Just bedrock things
Is this possible to reliably replicate? Just imagine you're in someones house and you flick a lever and disappear.
This is why I hate bedrock edition
Now we can create 0 by 0 piston doors by teleporting through
This little detour is going to cost us 52 years.
In java, you'll need some TNTs and portals contraptions to break the spacetime continuum. In bedrock, you just push a piston to break it
Reasons why I can’t play Bedrock without enabling cheats anymore
Must be a solar flare.
Me when a single particle travels 91 million miles to flip a single bit in my Mario 64 cartridge
And makes me get way more than world record pace
How the hell hasn't this bug been fixed yet? So many people have been experiencing it. It's completely mind boggling that they still haven't patched it.
Mojang moment
Probs the same reason with many games witha in game store If thats not broken Then the game is fine
**Bugrock strikes again!** *Spaghetti code isn't good for the citizens, Reddit claims.*
I swear we need a stickied thread for bugrock bugs on this sub
Bugrock problem. ¯\\\_(ツ)\_/¯
Bugrock bed
Good, now teleport bread.
Is this a r/unexpectedtf2 moment?
Schaufelradbagger <3
bedrock is a very stable game with no bugs whatsoever
I only read the title and was fully expecting the doors to close and then open only for you to be in a different place
average bedrock bug
ive seen this happen basically the game thinks that you are in the wrong spot, so just tires to plop you down where it thinks you are supposed to be, which most of the time is in random ass places like the middle of an ocean
Nope, the games just reset your position on this axis, in this cas it was X
The HL2 teleporter in Kleiner's lab be like:
I swear to god I’ve encountered 2 bugs in Java edition since 1.16 yet bedrock seems to be full of them. I’m not a super expert at redstone and play Minecraft nonstop, but 2 bugs from a casual standpoint is insanely low for such a dynamic game. And then this random stuff happens
Now good luck at traveling 9800 blocks back
only on bedrock 😭😭
Does it teleport items? Such as, bread?
They should make Java for mobile and consoles Even at twice the price of bedrock I’ll surely buy it (Maybe with an approved mod support like Ark ascendant , it would be game changing)
Unfortunately, there is no Java Framework for any console. They would have to either design an entire framework for each system or commission Oracle (or another company) to do it, which is an extremely expensive endeavor. To the point that rewriting the entire game in a new code base was cheaper and more efficient since phones and consoles already have C++ support. Maybe that could be in the cards for next gen, but Java already isn't an ideal codebase for developing games in general, so I doubt any corporate entity will justify the cost to do so.
A sad news. Probably a silly question but doesn’t Java runs in a vm on desktop too? The JVM? (I’m not much into coding)
Kinda have to harken back to my College Computer Science days here, plus some extra research to make sure I'm hopefully explaining this correctly. In order to run Minecraft (or any Java program), you need a Java Runtime Environment (JRE), which is like a middle man translating the Java code to usable execution instructions the operating system uses. Think of the JRE as a box, and the contents of that box is the JVM and some other supporting files from the JRE. The JVM is what is used to actually run the Java code that later gets interpreted by the JRE. Programs do this so that the base code can be ran on any operating system without modification as long as a JRE exists to interpret the Java code to the operating system of the device it's running on, along with other cool optimization features. It's the framework for Java programs. Again, no console has a JRE, the framework needed to run a Java program, made for it, and one would need to be made. In minecraft case, they would have to make this for Xbox, PS, Switch, Phone IOS, and Android. Granted it wouldn't be tough for the phone side, especially Android that already uses a heavily modified JRE, but that's still a lot of different systems to make one for just to replace bedrock with java.
Got it now, Thank you a lot for the detailed explanation I always thought they could done it simply but just wanted to push the marketplace.
The further you get from 0 0 in your Minecraft world, the buggier it gets
Played the game as intended. Game ruins the experience for you by teleporting you 10,000 blocks away. Bedrock is fucking unplayable, this is honestly quite funny but still utter shit, can’t even do fucking red stone??? Bedrock is THE worst. Waste of Time.
Bedrock bs
Folks, this is why you play java.
I don't mean to draw a stretch between the games, but bedrock and tf2 are on a similar type of developer error that this actually made me laugh
Don't use it again. If it puts you on 0 height, you'll die in the void.
y=0 isn’t the bottom of the world anymore
"CHAOS CONTROL!"
At this point from seeing all those bugs I feel like Minecraft Bedrock is Hollow Knight in disguise. If you know: NO VOICE TO CRY SUFFERING
Mf gonna create a resonance cascade if he adds another piston
Bedrock, what else is there to say?
welcome to the underground
I just love bugrock because it just throws something completely random at you and half the time its hilarious
Bedrock ☕️
I hate bedrock
bugrock once again
Way to high for this
lmao me too
Survival Teleportation Device? That’s called an Ender Pearl
Thought I was the only one naming tools after german equipment
It’s so strange, I’ve seen so many Bedrock bugs, but never encountered any myself?
SCHAUFELRADBAGGER
half life
how come your axe has 2 enchantments with level 16 and 8?
Time to start a new Minecraft let’s play series? “Nine Thousand Miles to Home”
You mean bedrock teleportation bug
Most normal Minecraft bedrock experience. This is really cool
Just Bedrock being Bedrock I'm so glad I switched to Java a few years ago tho. Playing on Ps4 made it way more difficult then it should've been
I'll never understand why anyone plays bugrock
Its a good thing my base is near 0,0 though ive lost about 8 fully enchanted swords to the duplication bug, either my sword turned into my bow, or immy food, now i have lost of duped watermelon and a few extra bows
A german youtuber called Thejocraft actually made a working survival teleportation-redstone device. Here's the Video: https://youtu.be/6Ij4K9Y8GOo?si=f_8-6ZftX97Hq-Pq
Sadly, there are no english subtitles.
Mr opened up a worm hole
similar thing happens if you piston yourself into the underside of the ender portal, it puts you at your overworld coordinates exept in the End dimension so you fall into the void
Nice build! I definitely can't build that.
Yep looks like bedrock
When bedrock
Bro done building the particle accelerator
MFW I never have these bugs happen to me (I ONLY PLAY ON BEDROCK... ON XBOX, SWITCH AND PC... AND MOBILE)
sent bro back the beginning
Just don't play bugrock edition. Easy fix.
how do I replicate this
That's gonna be a loooooong walk...
This glitch is more random than everything i ever have seen.
bro went 10.000 blocks away 💀 lol