I will check the files in the project to see the setup and installed packages.
I will check package.json to inspect installed libraries and dependencies.
I will install @react-three/fiber, @react-three/drei, three, @types/three, lucide-react, and simplex-noise for 3D voxel rendering, camera controls, icons, and procedural terrain generation.
I will inspect src/index.css to see the CSS styling setup.
I will read index.html to inspect the page title and meta tags.
I will update index.html with a Minecraft-inspired title, custom favicon icon, and font import for pixel/game UI styling.
I will update src/index.css to add helper utilities for pixel fonts, custom scrollbars, and hotbar styling.
I will create src/types/game.ts to define types for voxel blocks, coordinates, maps, structure landmarks, and player modes.
I will create src/textures/blockTextures.ts to procedurally generate 16x16 crisp voxel textures and icons using HTML5 Canvas for all 20+ block types.
I will create src/audio/soundManager.ts to implement Web Audio API sound effects for block breaking, placing, footsteps, jumping, map teleportation, and UI clicks.
I will update playBlockPlace in src/audio/soundManager.ts to adjust place sound frequencies based on the block type.
I will create src/maps/mapDefinitions.ts with definitions, lore, structure landmarks, and spawn points for the three ready-made maps plus the procedural sandbox map.
I will create src/maps/structureBuilders.ts containing the structural algorithms and voxel data that build the Medieval Castle, Aztec Step Pyramid, Sky Floating Fortress, and procedural terrain.
I will create src/game/useKeyboard.ts to manage keyboard controls for player movement, flying, sprint, hotbar selection, inventory, view toggling, and structure teleportation.
I will remove the unused wheel event parameter in src/game/useKeyboard.ts.
I will create src/game/PlayerAvatar.tsx to render a 3D Minecraft voxel character avatar with head, torso, swinging arms, and legs for third-person view.
I will create src/game/Player.tsx to handle first/third-person camera physics, pointer-lock mouse look, creative flying, survival gravity, voxel collision, and footstep audio.
I will create src/game/VoxelWorld.tsx to render instanced voxel blocks, raycast targeted block highlighting, break/place block interactions, and dynamic torch/lava lighting.
I will create src/game/SkyAndSun.tsx to render the Minecraft day-night cycle, sun, moon, stars, ambient lighting, and drifting clouds.
I will create src/components/Hotbar.tsx to render the 9-slot Minecraft hotbar with custom block textures, active slot border, and keyboard slot indicators.
I will create src/components/InventoryModal.tsx to display the Minecraft creative inventory with filtering, search, block lore, and hotbar slot assignment.
I will create src/components/MapSelectorModal.tsx to let users switch between the three ready-made structural maps and procedural sandbox, with lore cards, difficulty indicators, and structure landmark teleporters.
I will create src/components/Minimap.tsx to render a live top-down radar canvas displaying player orientation, nearby voxels, and structure landmark markers.
I will create src/components/StructureTeleportPanel.tsx to provide a structure navigation bar with instant teleport buttons for all landmarks in the active map.
I will create src/components/GameHUD.tsx to display the center crosshair, player coordinate badge, time-of-day slider, flight/view indicators, sound toggle, and controls guide.
I will create src/App.tsx as the main application coordinating the 3D Canvas, Voxel World, Player physics, UI overlays, Map Selection, Inventory, and Hotbar.
I will now build the project to verify that there are no type errors or build failures.
I have created a Minecraft Clone (VoxelCraft 3D) in React and Three.js featuring three ready-made structural maps (plus a procedural sandbox world), an instanced voxel engine, custom procedural pixel-art textures, dynamic lighting, and synthesized Web Audio sound effects.
What Was Created:
-
Three Ready-Made Structural Maps + Procedural World (src/maps/mapDefinitions.ts & src/maps/structureBuilders.ts)
- 1. Medieval Kingsguard Castle & Village (
medieval)
- Castle Keep & Throne Room: A stone-brick keep with crenelated towers, stained glass windows, courtyards, torches, and a throne room with royal bookshelves and gold/diamond throne.
- Blacksmith Forge & Cottages: Timbered cottages with a glowing forge hearth (
lava + brick chimney) and bookshelf study.
- Stone Arch Guard Bridge & Moat: Defensive arch bridge crossing the water moat around the castle entrance.
- 2. Aztec Jungle Step Pyramid & Sun Temple (
aztec)
- Great 5-Tier Step Pyramid: Massive stepped pyramid adorned with carved Aztec Gold Relief blocks, a grand south stairway, and the Altar of the Sun at the summit.
- Sacred Cenote Lagoon: Natural jungle pond encircled by emerald leaves and sand banks.
- Gold Treasure Sanctuary: Hidden obsidian chamber with lava basins and a treasure hoard of diamond and gold blocks.
- 3. Floating Sky Aether Fortress & Sky Portal (
sky_fortress)
- Obsidian Portal Cathedral: A white-trimmed sanctuary housing a towering
5x5 activated obsidian sky gateway.
- Archmage Floating Library: Cloud island packed with ancient oak bookshelves and diamond pillars.
- Aether Cloud Bridge: Graceful bridge connecting the floating islands over the void.
- 4. Procedural Wild Frontier (
procedural)
- Freeform sandbox terrain generated with Simplex Noise featuring rolling grass hills, oak forests, sandy beaches, and water basins.
-
20+ Minecraft Block Types & Procedural Textures (src/textures/blockTextures.ts)
- Procedurally generated 16x16 pixel-art Canvas2D textures with
THREE.NearestFilter for sharp retro pixel aesthetics (Grass, Dirt, Stone, Cobblestone, Oak Logs, Planks, Leaves, Stone Bricks, Clay Bricks, Sand, Water, Lava, Gold Block, Diamond Block, Obsidian, Glass, Bookshelf, Aztec Relief Gold, Torch, Cloud).
- Emissive point lights dynamically illuminate any Torch or Lava block in the world.
Files built: index.html, src/index.css, src/types/game.ts, src/textures/blockTextures.ts, src/audio/soundManager.ts, src/maps/mapDefinitions.ts, src/maps/structureBuilders.ts, src/game/useKeyboard.ts, src/game/PlayerAvatar.tsx, src/game/Player.tsx, src/game/VoxelWorld.tsx, src/game/SkyAndSun.tsx, src/components/Hotbar.tsx, src/components/InventoryModal.tsx, src/components/MapSelectorModal.tsx, src/components/Minimap.tsx, src/components/StructureTeleportPanel.tsx, src/components/GameHUD.tsx, src/App.tsx