News for hackers. Stuff that matters.
Re:Java Minecraft in the Browser by afavour on Monday March 31, 2025 @01:07PM (#43537264)
The longevity of Minecraft blows my mind. I was always aware of its existence but never looked into it. Now my kid is getting into it. So many generations of kids! It's incredible really.

That said, it has been a little sad digging into the current state of Java vs Bedrock, Bedrock iPad vs Bedrock Switch. The platform ubiquity is wonderful and the tradeoffs are what they are. But if folks were able to create a touch-capable web-powered Java Minecraft that would be a great fit for the iPad.

Re:Java Minecraft in the Browser by ClikeX on Monday March 31, 2025 @02:56PM (#43538456)
It's basically LEGO, it tickles the mind. Which is ironic, because LEGO Worlds isn't nearly as inspiring as Minecraft.
Re:Java Minecraft in the Browser by naikrovek on Monday March 31, 2025 @01:14PM (#43537342)
The children yearn for the mines, apparently.
Re:Java Minecraft in the Browser by eddd-ddde on Tuesday April 01, 2025 @09:28AM (#43546560)
Also, Minecraft is like a gateway drug into Factorio. Dangerous stuff!
Re:Java Minecraft in the Browser by immibis on Monday March 31, 2025 @02:53PM (#43538406)
An interesting fact about Minecraft is that when it came out, storing the block IDs for the loaded area used up a big chunk of your computer's RAM and had to be optimized as much as possible. So it was 8 bits per block space, and when they expanded to 12 bits, they added on another array with 8 bits per 2 spaces.

Now, it doesn't even use block IDs any more. It uses one whole object per block type, one pointer to one of those objects per block space, and has a lot more block types. The on-disk format stores the entire string name of the block, once per 16x16x16 region it occurs in.

Re:Java Minecraft in the Browser by momojo on Monday March 31, 2025 @04:06PM (#43539281)
Got any resources on this? As a kid I never thought about it but as a programmer, I always wondered how you scaled up these kind of problems.
Re:Java Minecraft in the Browser by immibis on Monday March 31, 2025 @04:12PM (#43539355)
It's fundamentally just a big array of one item per block space. When they moved to infinite worlds, they split up the world into chunks and used one array per chunk. When they doubled the world height from 128 to 256, they also split it into vertical chunks, but only for storage (logically it was still a 256 block tall array). It was never too big for an average computer to handle - otherwise Minecraft wouldn't have been able to exist yet (maybe that's why it didn't exist until 2009ish) but they've gotten a lot less efficient since then, in the name of flexibility. My source is the code itself, but you could also use the wiki's documentation about the on-disk data format.
Re:Java Minecraft in the Browser by 2mlWQbCK on Tuesday April 01, 2025 @07:48AM (#43545623)
I set up two old computers to play some Minecraft with my youngest kid. Unfortunately it turns out recent versions are much slower than old ones. I have not bothered to bisect it to figure out exactly what version(s) killed performance. My weakest old computer can run the latest version with 1-2 fps. It can run 1.12 with at least around 30-40 fps, which is more than enough for me to be able to enjoy the game (being old enough to have grown up in an era when we were happily playing flight sims at 5-10 fps). Anyway it is nice that the launcher makes it possible and easy to go back and play older versions. I much prefer drm-free games, but at least supporting old versions like this is better than 99% of games.
Re:Java Minecraft in the Browser by pidgeon_lover on Tuesday April 01, 2025 @08:31AM (#43545978)
Older versions of Minecraft are better; they've added too much junk to newer versions. I stick to 1.6.3, 1.7.10, 1.12.2. Heard they added a bunch of telemetry and ban capabilities in 1.18+, for which mods are needed.

DRM-free Minecraft launchers exist, mostly forks of MultiMC5. Now if only offline installers existed...