JavaScript: Minecraft 3D Demo

By Xah Lee. Date: . Last updated: .

About the Code

It is written in by Markus Persson (aka Notch), the creator of the popular game Minecraft.

It is a simplified port of Minecraft4k. It is announced by Markus on Twitter at The license is “You may use the code in here for any purpose in any way you want, at your own risk.”


some improvements for understanding. black and white, no camera movement,, by Salvatore Sanfilippo

another version for understanding. by alexhaefner. “I spent a moment and changed the arrays to Float32Arrays which have set sizes and sit in memory without being fucked with by the VM and sped the demo up dramatically.”

How Notch's JS Experiment Generates Its Textures in Code
JavaScript in Depth