Pixit Cube World is a lightweight Minecraft-style block world starter kit for Unity.
It focuses on clean, readable systems you can actually extend instead of fighting:
- Chunk-based procedural world generation
- ScriptableObject-driven block & tool data
- Mining, block breaking & drops
- Inventory + hotbar with drag & drop
- Held tools / blocks in first person view
- 9 animated animals + 9 animated creature/monster models (idle, walk, attack)
You get a ready-to-play demo scene where you can move, mine, pick up items, manage your hotbar and place blocks in a simple cubic world.
Key Features
Chunk-based world generation
- Configurable chunk size (X, Y, Z)
- World size defined in chunks (X, Z)
- Min / max ground height and simple mountain noise
- Seed-based generation for reproducible worlds
- Grass, dirt and stone layers with optional ore placement by depth and rarity
Blocks & ores via ScriptableObjects
- BlockData assets for each block type
- Byte-based block IDs (0 = Air, 1+ = solid blocks)
- Per-block:
Display name & icon
World prefab (1×1×1 cube recommended)
Drop prefab for pickups
Base break time
Optional ore settings (minY, maxY, rarity)
Mining, breaking & drops
- Raycast from the camera to target blocks
- Per-block break time and progress
- Blocks turn into Air and the chunk mesh is rebuilt when broken
- Drops are spawned from dropPrefab and picked up into the inventory
- Optional tool support to speed up or require tools for certain blocks
Inventory & hotbar
- Inventory component on the player
- Configurable hotbar size (e.g. 8 slots) and main inventory size (e.g. 32 slots)
- Each slot can contain a block (BlockData) or a tool (ToolData) plus a stack count
- Number keys (1–8) select hotbar slots
- Drag & drop to rearrange items between slots
- Stack count text and selected slot highlight
- Full inventory panel toggle (e.g. “I” key) with mouse lock / unlock
Tools & held item visuals
- ToolData assets with:
Display name and icon
In-hand prefab for first person
Optional flags such as “acts as pickaxe” - HeldItemRenderer:
Reads the current hotbar slot
Spawns either the tool prefab or block prefab in the player’s hand
Controls local position, rotation and scale
Disables physics on the held instance
Pickups
- BlockPickup and ToolPickup components
- Trigger-based pick up:
Detect player
Add items to Inventory
Destroy the pickup object
Animated animals & creatures
- 9 low-poly animal models (stylized, block-world friendly)
- 9 low-poly creature / monster models in the same style
- Each model includes:
Idle animation
Walk / run-style animation
Basic attack animation - Perfect as ambient wildlife or simple enemies in your cube world
- Easy to connect to your own AI / state machines / behavior trees
Included Content
- World generator and chunk scripts
- WorldSettings, BlockData, ToolData ScriptableObjects
- Chunk mesh building and block storage (byte IDs)
- Mining & breaking logic with drops
- Inventory + hotbar system and UI
- First person controller + held item renderer
- 9 animated animals (idle / walk / attack)
- 9 animated creatures / monsters (idle / walk / attack)
- Demo scene with everything wired together
Requirements
- Unity 2022.3 LTS or newer
- Built-in Render Pipeline by default (URP/HDRP compatible with your own materials)
You are free to expand this into your own full game: crafting, enemies, saving, biomes, multiplayer, etc. The kit stays intentionally simple so you can plug your own systems on top.
Online Documentation
Setup steps, component explanations and scripting notes:
https://pixitgames.com/docs/cubeworld/