1
0

feat: 默认将非完整碰撞箱方块设置为含水方块

This commit is contained in:
2025-04-28 21:56:59 +08:00
parent 8013a73e79
commit 64371ef336

View File

@@ -133,11 +133,15 @@ global.setBlockProps = function (block, opts) {
const textureAll = defaults(opts.textureAll, '');
if (boxType === 'custom') {
boxConfig && block.box.apply(block, boxConfig);
if (boxConfig) {
block.box.apply(block, boxConfig);
}
block.waterlogged();
} else if (boxType === 'full') {
block.box(0, 0, 0, 16, 16, 16, true);
} else if (boxType === 'half') {
block.box(0, 0, 0, 16, 8, 16, true);
block.waterlogged();
}
if (displayName) {