1
0

fix: 优化方块模型显示效果

This commit is contained in:
2025-04-05 17:15:51 +08:00
parent 8fdbfbecd5
commit d2329ad50f
16 changed files with 306 additions and 87 deletions

View File

@@ -1,6 +1,7 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"ambientocclusion": false,
"textures": {
"0": "wheat_plus:block/brick/brick_d",
"particle": "wheat_plus:block/brick/brick_d"
@@ -32,5 +33,42 @@
"down": {"uv": [0, 0, 16, 4], "texture": "#0"}
}
}
]
],
"display": {
"thirdperson_righthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
},
"thirdperson_lefthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
},
"firstperson_righthand": {
"rotation": [0, 45, 0],
"scale": [0.4, 0.4, 0.4]
},
"firstperson_lefthand": {
"rotation": [0, 225, 0],
"scale": [0.4, 0.4, 0.4]
},
"ground": {
"translation": [0, 3, 0],
"scale": [0.25, 0.25, 0.25]
},
"gui": {
"rotation": [30, 225, 0],
"translation": [0, -3, 0],
"scale": [0.5, 0.5, 0.5]
},
"head": {
"rotation": [90, 0, 90],
"translation": [4, 14, 0]
},
"fixed": {
"translation": [0, -2, -3],
"scale": [0.5, 0.5, 0.5]
}
}
}

View File

@@ -1,6 +1,7 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"ambientocclusion": false,
"textures": {
"1": "block/gray_concrete",
"particle": "block/gray_concrete"
@@ -32,5 +33,42 @@
"down": {"uv": [0, 0, 16, 4], "texture": "#1"}
}
}
]
],
"display": {
"thirdperson_righthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
},
"thirdperson_lefthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
},
"firstperson_righthand": {
"rotation": [0, 45, 0],
"scale": [0.4, 0.4, 0.4]
},
"firstperson_lefthand": {
"rotation": [0, 225, 0],
"scale": [0.4, 0.4, 0.4]
},
"ground": {
"translation": [0, 3, 0],
"scale": [0.25, 0.25, 0.25]
},
"gui": {
"rotation": [30, 225, 0],
"translation": [0, -3, 0],
"scale": [0.5, 0.5, 0.5]
},
"head": {
"rotation": [90, 0, 90],
"translation": [4, 14, 0]
},
"fixed": {
"translation": [0, -2, -3],
"scale": [0.5, 0.5, 0.5]
}
}
}

View File

@@ -1,6 +1,7 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"ambientocclusion": false,
"textures": {
"1": "block/white_concrete",
"2": "block/black_concrete",
@@ -372,6 +373,43 @@
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
},
"thirdperson_lefthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
},
"firstperson_righthand": {
"rotation": [0, 45, 0],
"scale": [0.4, 0.4, 0.4]
},
"firstperson_lefthand": {
"rotation": [0, 225, 0],
"scale": [0.4, 0.4, 0.4]
},
"ground": {
"translation": [0, 3, 0],
"scale": [0.25, 0.25, 0.25]
},
"gui": {
"rotation": [30, 225, 0],
"translation": [0, -2.5, 0],
"scale": [0.4, 0.4, 0.4]
},
"head": {
"rotation": [90, 0, 90],
"translation": [4, 14, 0]
},
"fixed": {
"translation": [0, -4, 0],
"scale": [0.5, 0.5, 0.5]
}
},
"groups": [
{
"name": "group",

View File

@@ -1,6 +1,7 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"ambientocclusion": false,
"textures": {
"2": "block/black_concrete",
"particle": "block/white_concrete"
@@ -306,6 +307,43 @@
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
},
"thirdperson_lefthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
},
"firstperson_righthand": {
"rotation": [0, 45, 0],
"scale": [0.4, 0.4, 0.4]
},
"firstperson_lefthand": {
"rotation": [0, 225, 0],
"scale": [0.4, 0.4, 0.4]
},
"ground": {
"translation": [0, 3, 0],
"scale": [0.25, 0.25, 0.25]
},
"gui": {
"rotation": [30, 225, 0],
"translation": [0, -1.5, 0],
"scale": [0.5, 0.5, 0.5]
},
"head": {
"rotation": [90, 0, 90],
"translation": [3, 8, 0]
},
"fixed": {
"translation": [0, -1.5, 0],
"scale": [0.5, 0.5, 0.5]
}
},
"groups": [
{
"name": "group",

View File

@@ -227,5 +227,40 @@
"down": {"uv": [0, 12, 4, 16], "texture": "#0"}
}
}
]
],
"display": {
"thirdperson_righthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.2, 0.2, 0.2]
},
"thirdperson_lefthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.2, 0.2, 0.2]
},
"firstperson_righthand": {
"rotation": [0, 45, 0],
"scale": [0.2, 0.2, 0.2]
},
"firstperson_lefthand": {
"rotation": [0, 45, 0],
"scale": [0.2, 0.2, 0.2]
},
"ground": {
"translation": [0, 3, 0],
"scale": [0.25, 0.25, 0.25]
},
"gui": {
"rotation": [30, 225, 0],
"scale": [0.4, 0.4, 0.4]
},
"head": {
"translation": [0, 10, 0],
"scale": [0.5, 0.5, 0.5]
},
"fixed": {
"scale": [0.5, 0.5, 0.5]
}
}
}

View File

@@ -449,6 +449,43 @@
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.2, 0.2, 0.2]
},
"thirdperson_lefthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.2, 0.2, 0.2]
},
"firstperson_righthand": {
"rotation": [0, 45, 0],
"scale": [0.2, 0.2, 0.2]
},
"firstperson_lefthand": {
"rotation": [0, 45, 0],
"scale": [0.2, 0.2, 0.2]
},
"ground": {
"translation": [0, 3, 0],
"scale": [0.25, 0.25, 0.25]
},
"gui": {
"rotation": [30, 225, 0],
"translation": [0, -1.5, 0],
"scale": [0.4, 0.4, 0.4]
},
"head": {
"translation": [0, 10, 0],
"scale": [0.5, 0.5, 0.5]
},
"fixed": {
"translation": [0, -2, 0],
"scale": [0.5, 0.5, 0.5]
}
},
"groups": [
{
"name": "group",

View File

@@ -1,6 +1,7 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"ambientocclusion": false,
"textures": {
"0": "block/iron_block",
"particle": "block/iron_block"

View File

@@ -1,6 +1,7 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"ambientocclusion": false,
"textures": {
"0": "block/iron_block",
"particle": "block/iron_block"

View File

@@ -1,6 +1,7 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"ambientocclusion": false,
"textures": {
"0": "block/iron_block",
"particle": "block/iron_block"

View File

@@ -1,6 +1,7 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"ambientocclusion": false,
"textures": {
"0": "block/iron_block",
"particle": "block/iron_block"

View File

@@ -1,6 +1,7 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"ambientocclusion": false,
"textures": {
"0": "block/iron_block",
"particle": "block/iron_block"

View File

@@ -1,6 +1,7 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"ambientocclusion": false,
"textures": {
"0": "block/iron_block",
"particle": "block/iron_block"
@@ -19,16 +20,29 @@
"down": {"uv": [3, 7, 15, 9], "texture": "#0"}
}
},
{
"from": [0, 14, 7],
"to": [9, 16, 9],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [7, 0, 16, 2], "texture": "#0"},
"east": {"uv": [7, 0, 9, 2], "texture": "#0"},
"south": {"uv": [0, 0, 9, 2], "texture": "#0"},
"west": {"uv": [7, 0, 9, 2], "texture": "#0", "cullface": "west"},
"up": {"uv": [0, 7, 9, 9], "texture": "#0", "cullface": "up"},
"down": {"uv": [0, 7, 9, 9], "texture": "#0"}
}
},
{
"from": [7, 0, 7],
"to": [9, 15, 9],
"to": [9, 16, 9],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [7, 1, 9, 16], "texture": "#0"},
"east": {"uv": [7, 1, 9, 16], "texture": "#0"},
"south": {"uv": [7, 1, 9, 16], "texture": "#0"},
"west": {"uv": [7, 1, 9, 16], "texture": "#0"},
"up": {"uv": [7, 7, 9, 9], "texture": "#0"},
"north": {"uv": [7, 0, 9, 16], "texture": "#0"},
"east": {"uv": [7, 0, 9, 16], "texture": "#0"},
"south": {"uv": [7, 0, 9, 16], "texture": "#0"},
"west": {"uv": [7, 0, 9, 16], "texture": "#0"},
"up": {"uv": [7, 7, 9, 9], "texture": "#0", "cullface": "up"},
"down": {"uv": [7, 7, 9, 9], "texture": "#0", "cullface": "down"}
}
},

View File

@@ -1,6 +1,7 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"ambientocclusion": false,
"textures": {
"0": "block/iron_block",
"particle": "block/iron_block"
@@ -20,28 +21,28 @@
}
},
{
"from": [0, 14, 7],
"to": [9, 16, 9],
"rotation": {"angle": 0, "axis": "z", "origin": [8, 8, 8]},
"from": [-8, 12, 7],
"to": [4, 14, 9],
"rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [7, 0, 16, 2], "texture": "#0"},
"east": {"uv": [7, 0, 9, 2], "texture": "#0"},
"south": {"uv": [0, 0, 9, 2], "texture": "#0"},
"west": {"uv": [7, 0, 9, 2], "texture": "#0", "cullface": "west"},
"up": {"uv": [0, 7, 9, 9], "texture": "#0", "cullface": "up"},
"down": {"uv": [0, 7, 9, 9], "texture": "#0"}
"north": {"uv": [1, 2, 13, 4], "texture": "#0"},
"east": {"uv": [7, 2, 9, 4], "texture": "#0"},
"south": {"uv": [3, 2, 15, 4], "texture": "#0"},
"west": {"uv": [7, 2, 9, 4], "texture": "#0"},
"up": {"uv": [3, 7, 15, 9], "texture": "#0"},
"down": {"uv": [3, 7, 15, 9], "texture": "#0"}
}
},
{
"from": [7, 0, 7],
"to": [9, 16, 9],
"to": [9, 15, 9],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [7, 0, 9, 16], "texture": "#0"},
"east": {"uv": [7, 0, 9, 16], "texture": "#0"},
"south": {"uv": [7, 0, 9, 16], "texture": "#0"},
"west": {"uv": [7, 0, 9, 16], "texture": "#0"},
"up": {"uv": [7, 7, 9, 9], "texture": "#0", "cullface": "up"},
"north": {"uv": [7, 1, 9, 16], "texture": "#0"},
"east": {"uv": [7, 1, 9, 16], "texture": "#0"},
"south": {"uv": [7, 1, 9, 16], "texture": "#0"},
"west": {"uv": [7, 1, 9, 16], "texture": "#0"},
"up": {"uv": [7, 7, 9, 9], "texture": "#0"},
"down": {"uv": [7, 7, 9, 9], "texture": "#0", "cullface": "down"}
}
},

View File

@@ -1,62 +0,0 @@
{
"credit": "Created by Frost-ZX using Blockbench.",
"parent": "block/block",
"textures": {
"0": "block/iron_block",
"particle": "block/iron_block"
},
"elements": [
{
"from": [3, 12, 7],
"to": [15, 14, 9],
"rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [1, 2, 13, 4], "texture": "#0"},
"east": {"uv": [7, 2, 9, 4], "texture": "#0"},
"south": {"uv": [3, 2, 15, 4], "texture": "#0"},
"west": {"uv": [7, 2, 9, 4], "texture": "#0"},
"up": {"uv": [3, 7, 15, 9], "texture": "#0"},
"down": {"uv": [3, 7, 15, 9], "texture": "#0"}
}
},
{
"from": [-8, 12, 7],
"to": [4, 14, 9],
"rotation": {"angle": -45, "axis": "z", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [1, 2, 13, 4], "texture": "#0"},
"east": {"uv": [7, 2, 9, 4], "texture": "#0"},
"south": {"uv": [3, 2, 15, 4], "texture": "#0"},
"west": {"uv": [7, 2, 9, 4], "texture": "#0"},
"up": {"uv": [3, 7, 15, 9], "texture": "#0"},
"down": {"uv": [3, 7, 15, 9], "texture": "#0"}
}
},
{
"from": [7, 0, 7],
"to": [9, 15, 9],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [7, 1, 9, 16], "texture": "#0"},
"east": {"uv": [7, 1, 9, 16], "texture": "#0"},
"south": {"uv": [7, 1, 9, 16], "texture": "#0"},
"west": {"uv": [7, 1, 9, 16], "texture": "#0"},
"up": {"uv": [7, 7, 9, 9], "texture": "#0"},
"down": {"uv": [7, 7, 9, 9], "texture": "#0", "cullface": "down"}
}
},
{
"from": [7, -8, 7],
"to": [9, 0, 9],
"rotation": {"angle": 0, "axis": "y", "origin": [8, -8, 8]},
"faces": {
"north": {"uv": [7, 0, 9, 8], "texture": "#0"},
"east": {"uv": [7, 0, 9, 8], "texture": "#0"},
"south": {"uv": [7, 0, 9, 8], "texture": "#0"},
"west": {"uv": [7, 0, 9, 8], "texture": "#0"},
"up": {"uv": [7, 7, 9, 9], "texture": "#0"},
"down": {"uv": [7, 7, 9, 9], "texture": "#0", "cullface": "down"}
}
}
]
}

View File

@@ -96,5 +96,42 @@
"down": {"uv": [8, 0, 12, 4], "texture": "#texture"}
}
}
]
],
"display": {
"thirdperson_righthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
},
"thirdperson_lefthand": {
"rotation": [75, 45, 0],
"translation": [0, 2.5, 0],
"scale": [0.375, 0.375, 0.375]
},
"firstperson_righthand": {
"rotation": [0, 90, 0],
"scale": [0.4, 0.4, 0.4]
},
"firstperson_lefthand": {
"rotation": [0, 90, 0],
"scale": [0.4, 0.4, 0.4]
},
"ground": {
"translation": [0, 3, 0],
"scale": [0.25, 0.25, 0.25]
},
"gui": {
"rotation": [30, 225, 0],
"translation": [0, -3, 0],
"scale": [0.4, 0.4, 0.4]
},
"head": {
"rotation": [90, 0, -90],
"translation": [-5, 15, 0]
},
"fixed": {
"translation": [0, -3, -3],
"scale": [0.5, 0.5, 0.5]
}
}
}