1
0

feat: 添加纸箱方块

This commit is contained in:
2025-05-01 22:48:39 +08:00
parent eae8f31702
commit 21a2354a86
5 changed files with 40 additions and 0 deletions
+16
View File
@@ -132,6 +132,8 @@ global.setBlockProps = function (block, opts) {
let soundType = defaults(opts.soundType, 'stone');
let textureAll = defaults(opts.textureAll, '');
let textureSide = defaults(opts.textureSide, '');
let textureSideNS = defaults(opts.textureSideNS, '');
let textureSideWE = defaults(opts.textureSideWE, '');
let textureUpDown = defaults(opts.textureUpDown, '');
if (boxType === 'custom') {
@@ -184,6 +186,20 @@ global.setBlockProps = function (block, opts) {
], textureSide);
}
if (textureSideNS) {
block.texture([
Direction.NORTH,
Direction.SOUTH,
], textureSideNS);
}
if (textureSideWE) {
block.texture([
Direction.WEST,
Direction.EAST,
], textureSideWE);
}
if (textureUpDown) {
block.texture([
Direction.UP,