Creates a 3d minecraft like game
Prompt
Build a WebGL 2.0 Minecraft clone that runs in the browser. Requirements Infinite 3-D voxel world generated with simplex noise in 16×16×128 chunks. Eight block types: grass, dirt, stone, cobblestone, wood log, leaves, sand, water. First-person camera (WASD + mouse look, collision, gravity). Left-click to break a block (timed by hardness). Right-click to place the selected block type. Hotbar 1-8 to choose block type. Greedy meshing and frustum culling for 60 fps. Save and load chunk data in localStorage. Single HTML file, no external 3-D engines.
A system prompt was added to support web rendering