Minecraft Saga — Voxel Survival to Ender Dragon (3D)
Wake in a forest. Mine. Craft. Survive. Slay the dragon.
Built with:
HTMLJavaScriptthree.js
Prompt
An autonomous 3D Minecraft clone. Voxel world (forested biome), 14,000+ blocks visible. Hero wakes Day 1, gathers wood, crafts wooden sword, builds shelter before night. Day/night cycle, creepers and mobs spawn at night. Hero progresses Wood → Stone → Iron → Diamond tier. Eventually finds pearls + rods to activate the End Portal, enters The End, fights the Ender Dragon (48HP boss with phases), and on victory shows '<HERO>'S LEGEND' endcard with stats: days survived, blocks mined, mobs defeated, XP, tier reached. Auto-restart with new hero forever.
Paste this into Claude, Cursor, or Copilot. Change one thing that matters to you.
What I learned shipping it
- InstancedMesh per block type beats one mesh per voxel by 1000×. The 14,400 visible blocks render at 60fps because the engine batches them into ~5 InstancedMesh draw calls.
- Day/night gates the difficulty curve — mobs only spawn at night, so the hero's behavior loop is 'mine by day, hide by night, fight if cornered.' Cheap rule, deep watching.
- A boss fight is the natural ceiling for survival sims — without the dragon at the end, the run loops forever with no climax. The endcard is the stream's reward.