1
0

feat: 支持创建旋转方块

This commit is contained in:
2022-11-13 19:23:39 +08:00
parent 3759b2df37
commit ecec8570af
4 changed files with 78 additions and 1 deletions
+12
View File
@@ -62,6 +62,18 @@ declare const global: {
*/
setBlockProps(block: B_Builder, opts: SetBlockPropsOpts): boolean;
/**
* @desc 设置方块水平旋转属性
* @param block 方块
* @param type 旋转类型
* @param model 模型路径
*/
setHorizontalFacing(
block: B_Builder,
type: 'revert' | 'same',
model: string
): boolean;
/**
* @desc 写入 JSON 文件
* @param path 文件路径,相对于 `.minecraft`