mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +08:00
refactor(cubed): migrate block definitions to JSON
Move block data from TOML to JSON under assets/cubed/blocks, add registry.json for block and item IDs, and relocate textures and sounds to the cubed namespace.
This commit is contained in:
23
assets/cubed/blocks/leaf.json
Normal file
23
assets/cubed/blocks/leaf.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "leaf",
|
||||
"properties": {
|
||||
"is_liquid": false,
|
||||
"is_cross_plane": false,
|
||||
"is_transparent": true,
|
||||
"is_passable": false,
|
||||
"is_discard": true,
|
||||
"is_blend": false,
|
||||
"is_transitional": false,
|
||||
"is_gas": false,
|
||||
"roughness": 0.7
|
||||
},
|
||||
"texture": {
|
||||
"type": "cuboid",
|
||||
"path": "cubed:textures/blocks/leaf"
|
||||
},
|
||||
"sounds": {
|
||||
"break": "cubed:sounds/blocks/leaf/break.ogg",
|
||||
"place": "cubed:sounds/blocks/leaf/place.ogg",
|
||||
"walk": "cubed:sounds/blocks/leaf/walk.ogg"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user