feat: 添加纸箱方块
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user