Vibe-Coded Browser Game

CraftMine

A complete Minecraft clone in one HTML file. 46 blocks, 36 mobs, 19 weapons, 5 biomes, caves, day/night cycle. Zero build tools. AI-generated.

CraftMine — snowy biome with trees at sunrise
CraftMine — mountain landscape with snowy peaks CraftMine — flying over snowy mountains

By The Numbers

46

Block Types

Grass, stone, ores, glass, TNT — plus 21 DOOM-themed hell blocks.

36

Mobs

Chickens to dragons. Pack wolves, swarming bees, teleporting endermen, a 300 HP titan boss.

19

Weapons

Diamond sword, shotgun, railgun, BFG 9000, black hole gun, nuke launcher.

6,820

Lines of Code

One HTML file. One Three.js import. No build step. ~350KB total.

Features

Everything crammed into a single file.

Procedural World

6 simplex noise generators build terrain, caves, ores, and biomes. Mountains, oceans, deserts, forests, and snowy peaks.

Combat System

Hitscan lasers, projectile rockets with gravity, 8-pellet shotguns, chain lightning, and a nuke with a 15-block blast radius.

Mob AI

Passive animals by day, hostile mobs at night. Wolves hunt in packs. Bees swarm. Creepers explode. Endermen teleport.

Day/Night Cycle

Dynamic sky colors, sunrise/sunset, orbiting sun. Ambient and directional lighting shift through the full cycle.

Chunked Rendering

16x16x128 chunks with web worker mesh generation. Frustum culling. 6-chunk render distance, up to 169 active chunks.

DOOM Layer

21 hell-themed blocks — flesh walls, skull tiles, pentagrams, nuke barrels. It started as Minecraft and became something else.

Controls

Movement

  • Walk W A S D
  • Jump Space
  • Sneak Shift
  • Look Mouse

Actions

  • Break / Shoot Left Click
  • Place block Right Click
  • Switch weapon Scroll
  • Pause Esc

Ready?

No download. No install. Just click and play.