Minecraft 4

By Just Sparrow

Just Sparrow

0 subscribers

Based on the following code

Minecraft 3

Minecraft 3

Just Sparrow

16 views · 1d ago

13 views·3h ago

About

This project is a recreation of Minecraft 3 — built by clicking "+ Recreate" and giving Claude (by Anthropic) an additional prompt. The block-building experience from the previous project now has an inventory system with 4 different block types: Grass, Dirt, Stone, and Wood. Select your material and start building!

Prompt Used

Based on the previous code, add a bottom-center inventory bar UI showing 4 block types: Grass (green), Dirt (brown), Stone (gray), and Wood (tan). The user can click an inventory slot or press keys 1-4 to select a block type. The currently selected slot should have a visible highlight border. When placing blocks, use the selected block type's color.

How to Use

Block Selection

  • Click an inventory slot at the bottom of the screen to select a block type
  • Or press 1 (Grass), 2 (Dirt), 3 (Stone), 4 (Wood) on your keyboard

Building & Breaking

  • Left-click on a block face to place the selected block type 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 more block types, textures, or even a day/night cycle!

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