Files
Cubed/assets/item/water.json
zhenyan121 0259ca71ce refactor(item): decouple items from block types
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.
2026-08-04 16:14:00 +08:00

7 lines
127 B
JSON

{
"id": 7,
"name": "water",
"description": "",
"texture": "texture/item/block/water.png",
"type": "block"
}