Sandhucraft is a Minecraft-inspired voxel-based sandbox game built with Python and Pyglet. Explore a procedurally generated world, mine resources, craft items, and build structures in this engaging 3D environment.
- Procedurally generated 3D world
- Day/night cycle
- Weather system (rain, snow)
- Basic crafting system
- Resource gathering (mining)
- Block placement and destruction
- Simple mob AI (sheep and zombies)
- Inventory management
- Terrain features:
- Trees
- Caves
- Ore deposits
- Water bodies
- Save/load game functionality
- Python 3.7+
- Pyglet
- noise
-
Clone the repository:
git clone https://github.com/hsandhu01/Sandhucraft.git cd Sandhucraft
-
Install the required packages:
pip install pyglet noise
To start Sandhucraft, run the following command in the project directory:
python main.py
- WASD: Move
- Space: Jump
- Left mouse button: Break blocks
- Right mouse button: Place blocks
- E: Toggle inventory
- 1-5: Select hotbar items
- ESC: Toggle mouse capture
- F5: Save game
- F9: Load game
main.py
: Main game loop and initializationgame_world.py
: World generation and managementplayer.py
: Player controls and physicsinventory.py
: Inventory systemcrafting.py
: Crafting mechanicsmobs.py
: Mob AI and behaviorgui.py
: In-game user interfaceweather.py
: Weather systemsound.py
: Sound effects and musicsave_load.py
: Save/load game functionality
Contributions to Sandhucraft are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Implement multiplayer functionality
- Add more complex structures (villages, dungeons)
- Expand crafting system
- Introduce more diverse biomes
- Implement a combat system
- Add more mob types