Minecraft 3
By Just Sparrow
Based on the following code

Minecraft 2
Just Sparrow
25 views · 1d ago
About
This project is a remix of Minecraft 2 — built by clicking "+ Create with this code" and giving Claude (by Anthropic) an additional prompt. The flat ground plane from the previous project now has full block interaction: you can place and remove blocks with your mouse. Three.js Raycaster detects which block face you're pointing at, with a subtle highlight showing exactly where your next block will go.
Prompt Used
Based on the previous code, add the ability to place and remove blocks with the mouse. Left-click on an existing block face to place a new block adjacent to that face. Right-click on a block to remove it. Use Three.js Raycaster to detect which block and face the mouse is pointing at. Show a subtle highlight on the block face the cursor is hovering over.
How to Use
Building & Breaking
- Left-click on a block face to place a new block next to it
- Right-click on a block to remove it
- Hover over blocks to see a highlight on the targeted face
Camera Controls (Desktop)
- Left-click + drag on empty space to rotate the camera
- Scroll wheel to zoom in/out
- Right-click + drag on empty space to pan the view
Camera Controls (Mobile)
- One finger drag to rotate
- Pinch to zoom in/out
- Two finger drag to pan
Want to take it further? Click "+ Create with this code" to remix — try adding different block types, colors, or even gravity!
More
If you enjoyed this, please hit the like button and subscribe! Your support helps us create more cool stuff on Coddie.
Loading comments...
Other Codes
No other codes yet