feat: 添加 demo 方块
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user