1
0

feat: 添加 demo 方块

This commit is contained in:
2025-05-02 18:52:25 +08:00
parent d0875f9ddb
commit ed30b76f57
5 changed files with 128 additions and 0 deletions

View File

@@ -1362,6 +1362,42 @@ function regBlockCommon(event) {
textureUpDown: 'common/tree_willow_wood_ud',
type: '',
},
{
name: 'demo_block_a',
label: 'demo 方块',
blockstate: null,
box: [1, 1, 1, 15, 15, 15, true],
model: 'demo/demo_block_a',
texture: '',
type: 'cardinal',
},
{
name: 'demo_block_b',
label: 'demo 方块',
blockstate: null,
box: [1, 1, 1, 15, 15, 15, true],
model: 'demo/demo_block_b',
texture: '',
type: 'cardinal',
},
{
name: 'demo_block_c',
label: 'demo 方块',
blockstate: null,
box: [1, 1, 1, 15, 15, 15, true],
model: 'demo/demo_block_c',
texture: '',
type: 'cardinal',
},
{
name: 'demo_block_d',
label: 'demo 方块',
blockstate: null,
box: [1, 1, 1, 15, 15, 15, true],
model: 'demo/demo_block_d',
texture: '',
type: 'cardinal',
},
];
blockList.forEach((config) => {

View File

@@ -0,0 +1,23 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"textures": {
"particle": "block/stone",
"texture": "block/stone"
},
"elements": [
{
"from": [0, 0, 0],
"to": [16, 16, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"east": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"south": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"west": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"up": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"down": {"uv": [0, 0, 16, 16], "texture": "#texture"}
}
}
]
}

View File

@@ -0,0 +1,23 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"textures": {
"particle": "block/stone",
"texture": "block/stone"
},
"elements": [
{
"from": [0, 0, 0],
"to": [16, 16, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"east": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"south": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"west": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"up": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"down": {"uv": [0, 0, 16, 16], "texture": "#texture"}
}
}
]
}

View File

@@ -0,0 +1,23 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"textures": {
"particle": "block/stone",
"texture": "block/stone"
},
"elements": [
{
"from": [0, 0, 0],
"to": [16, 16, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"east": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"south": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"west": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"up": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"down": {"uv": [0, 0, 16, 16], "texture": "#texture"}
}
}
]
}

View File

@@ -0,0 +1,23 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"textures": {
"particle": "block/stone",
"texture": "block/stone"
},
"elements": [
{
"from": [0, 0, 0],
"to": [16, 16, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"east": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"south": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"west": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"up": {"uv": [0, 0, 16, 16], "texture": "#texture"},
"down": {"uv": [0, 0, 16, 16], "texture": "#texture"}
}
}
]
}