mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
The item system now supports an ItemKind and property, allowing item JSON to declare a type instead of assuming every item is a block. BlockManager was moved to its own header, redesigned around concurrent hash maps, and exposes id_from_name(). Texture and UI code now key items by ItemID, while block placement resolves the block type from the item registry.
7 lines
125 B
JSON
7 lines
125 B
JSON
{
|
|
"id": 4,
|
|
"name": "sand",
|
|
"description": "",
|
|
"texture": "texture/item/block/sand.png",
|
|
"type": "block"
|
|
} |