News for hackers. Stuff that matters.
Re:Mc.js: A Minecraft clone built entirely with JavaScript by SteveSmith16384 on Thursday August 15, 2019 @08:05AM (#20704411)
I suppose this is good, but Javascript can pretty much do anything these days, as I assume most people know. In fact, a guick Google reveals quite a few Javascript' Minecrafts. Not sure why this is special.
Re:Mc.js: A Minecraft clone built entirely with JavaScript by benjaminsuch on Thursday August 15, 2019 @08:16AM (#20704461)
I think projects like this show a lot of brainpower and determination the developer has. In case someone wants to prove his knowledge and connect different kind of technologies, a project like this is a wonderful way to do so.

Heads up to anyone doing such projects. It's amazing.

Re:Mc.js: A Minecraft clone built entirely with JavaScript by zachruss92 on Thursday August 15, 2019 @08:22AM (#20704493)
I second your comment. I'm sure the developer learned so much from building this and skills learned can definitely be applied to other aspects of their career.
Re:Mc.js: A Minecraft clone built entirely with JavaScript by ian13456 on Thursday August 15, 2019 @10:27AM (#20705506)
:)
Re:Mc.js: A Minecraft clone built entirely with JavaScript by satoshinm on Thursday August 15, 2019 @10:20AM (#20705429)
I for one find this project very worthwhile, there are/were plenty of web-based clones of Minecraft but many abandoned or haven't caught on. ian13456's mc.js, which I just learned about from this post, has 1717 stars on GitHub, quite impressive.

I'm aware of a couple other attempts. voxel.js (the furthest along fork seems to be http://voxelmetaverse.com - code https://github.com/deathcap/voxelmetaverse hasn't changed since 2016, and the domain expires 2020), originally named minecraft.js, written in pure Javascript originally with three.js, then stackgl using npm and browserify.

My attempt is https://satoshinm.github.io/NetCraft/ (source code: https://github.com/satoshinm/NetCraft), but it is implemented slightly differently, in that it is actually written in C (based on fogleman's "Craft") and compiled to WebAssembly to run on the web. This avoids some of the performance pitfalls with Javascript and garbage collection. It even lets you play on a Bukkit-compatible server using a plugin.

Unfortunately I have abandoned my project as well, but C/C++/Rust compiled to WASM may be the future, although it will be interesting to see how far this pure Javascript-based client can go. I wish mc.js developers the best of luck, we had similar goals of wanting to play Minecraft on the web.

Re:Mc.js: A Minecraft clone built entirely with JavaScript by shortercode on Thursday August 15, 2019 @10:11AM (#20705346)
As someone who has tried to do make a Minecraft clone in JavaScript perhaps I can shine a light on why I tried it. I guess first and foremost I'm fond of Minecraft and I'm primarily a JS developer. So when I wanted to improve my game development and webGL/openGL capabilities it was quite a natural choice. Jumping into the actual project there's a few attempts around on the web, probably by people with similar mindsets. This means there some references on roughly how the game works. There's some quite interesting little things I learnt from it: implementing perlin noise, procedural generation techniques, triangulation of voxels, various boilerplate stuff for webGL and webGL 2, voxel optimised ray casting, deferred rendering, shadow mapping and world chunking.

All in all it was quite profitable; several of those things have come in useful for my day job since then. Of course it didn't much improve your game design skills, as I was just copying another game.

I never finished it, and looking around most of these copies are in a similar state. I'm proud of what I achieved and each problem I overcame but I can't even claim mine competes with the original or even the best clones out there. It's fairly easy to reason why most of these clones were never finished. It's a huge amount of work and the goal has already been reached by someone else. So motivation after the initial "oh hey I built something a little like Minecraft" is hard to find.

These sorts of project serve 3 purposes: - inspire others to try something similar ( hopefully for the same reasons ) - improve your own abilities - show appreciation to the developers of Minecraft

As for why this project is "hacker news worthy" I expect it's just because it looks more polished than most. But as I said above, most of the value of the project is to the developer, not anyone else.

Re:Mc.js: A Minecraft clone built entirely with JavaScript by PopeDotNinja on Thursday August 15, 2019 @10:46AM (#20705663)
Starting something to copy something else is totes how I got started with serious programming. By forcing myself to understand how something works without having much of an ability to read someone else's code, I learned so much. My GitHub is littered with these unfinished clone of projects, and I apologize for none of them :)
Re:Mc.js: A Minecraft clone built entirely with JavaScript by segmondy on Thursday August 15, 2019 @09:31AM (#20705000)
This is Hacker News, that's why this is special.
Re:Mc.js: A Minecraft clone built entirely with JavaScript by _bxg1 on Thursday August 15, 2019 @10:07AM (#20705307)
It's just fun and interesting, not revolutionary, and that's okay
Re:Mc.js: A Minecraft clone built entirely with JavaScript by tdhz77 on Thursday August 15, 2019 @10:19AM (#20705422)
The value isn’t just with the dev themselves but to those who they shared it with. I benefit from inspiration, motivation and of course the code / discussion.
Re:Mc.js: A Minecraft clone built entirely with JavaScript by drhitchcock on Sunday August 25, 2019 @11:17PM (#20797211)
Has anyone noticed this has been taken down due to DCMA... ️
Re:Mc.js: A Minecraft clone built entirely with JavaScript by jsonx on Tuesday August 27, 2019 @12:00AM (#20806233)
Sadly yes.
Re:Mc.js: A Minecraft clone built entirely with JavaScript by Kiro on Thursday August 15, 2019 @08:49AM (#20704686)
Cool. Where is the code handling the world map/blocks? I want to see how the data structure looks.
Re:Mc.js: A Minecraft clone built entirely with JavaScript by ilaksh on Thursday August 15, 2019 @10:17AM (#20705406)
There are projects that load Minecraft data such as the one I made in 2012 under my GitHub runvnc mcchunkloader or the classic.minecraft or maybe the other Minecraft modules out there. But this isn't one of them as far as I know.
Re:Mc.js: A Minecraft clone built entirely with JavaScript by ian13456 on Thursday August 15, 2019 @10:26AM (#20705486)
Hi! just found this randomly, didn't know someone posted my repo. I did state that the game is currently a work in progress, and the goal is to have all the features in minecraft.
Re:Mc.js: A Minecraft clone built entirely with JavaScript by ilaksh on Thursday August 15, 2019 @10:16AM (#20705387)
He can't load a real Minecraft world map, or modify the terrain, or fight monsters, or craft anything, or generate biomes. In fact, it's not a Minecraft clone at all. It just has some of the core rendering etc. but missing more than half of the features.
Re:Mc.js: A Minecraft clone built entirely with JavaScript by daveoc64 on Thursday August 15, 2019 @08:25AM (#20704519)
I guess it's a bit like the official browser based Minecraft

https://classic.minecraft.net/

Doesn't seem massively newsworthy to me.

Re:Mc.js: A Minecraft clone built entirely with JavaScript by fenomas on Thursday August 15, 2019 @08:55AM (#20704723)
Dunno, the engine in the article looks pretty impressive to me. And I say that as the author of a fair chunk of the "official" version (I'm not affiliated with Mojang, but they built minecraft classic on my JS voxel engine).
Re:Mc.js: A Minecraft clone built entirely with JavaScript by ian13456 on Thursday August 15, 2019 @10:41AM (#20705624)
I'm a big fan of yours! I love the noa engine
Re:Mc.js: A Minecraft clone built entirely with JavaScript by fenomas on Thursday August 15, 2019 @11:29AM (#20706067)
Ah cool, thanks, I'll definitely watch your engine as well!
Re:Mc.js: A Minecraft clone built entirely with JavaScript by shifto on Thursday August 15, 2019 @09:00AM (#20704753)
Did you gain anything from them using your work?
Re:Mc.js: A Minecraft clone built entirely with JavaScript by fenomas on Thursday August 15, 2019 @09:06AM (#20704791)
Lots of HN upvotes ;)

But no, they didn't contact me or anything. There was a thread on it, let me dig it up...

Edit: https://news.ycombinator.com/item?id=19940349

Re:Mc.js: A Minecraft clone built entirely with JavaScript by nacs on Thursday August 15, 2019 @10:04AM (#20705279)
The official Classic version actually uses an open-source library like this one for the rendering and most of the legwork.
Re:Mc.js: A Minecraft clone built entirely with JavaScript by fsiefken on Thursday August 15, 2019 @10:14AM (#20705373)
If you support stereoscopic VR view with for example A-Frame it can run in Firefox Reality everywhere. Oh wait, someone did something like it https://drawvr.com/minecraft/
Re:Mc.js: A Minecraft clone built entirely with JavaScript by islon on Thursday August 15, 2019 @09:49AM (#20705154)
> Motivation

> Having to open an additional app to play a game is sometimes too tiring

Really? This is the motivation?

I can understand just the will to reimplement minecraft for the sake of it, as a challenge, to learn something, etc. but to not double click "another" application sounds really naive.

Re:Mc.js: A Minecraft clone built entirely with JavaScript by onion2k on Thursday August 15, 2019 @09:55AM (#20705203)
I think that's one of those "joke" things you read about.
Re:Mc.js: A Minecraft clone built entirely with JavaScript by ian13456 on Thursday August 15, 2019 @10:27AM (#20705497)
Sorry I'm planning on revamping the entire README once the project gets to a good level of completion (still missing a lot of features). The motivation part was just a joke, didn't think people would pay much attention to it :/
Re:Mc.js: A Minecraft clone built entirely with JavaScript by rpmisms on Thursday August 15, 2019 @10:55AM (#20705738)
Hey man, don't take the criticism here too hard. You did an amazing job, and it's one the better WIPs I've seen yet. Have some fun!