function addABlock(id,name,tex,model,tm,m){
Block.defineBlock(id,name,
[[tex, m[1]], //下
[tex, m[2]], //上
[tex, m[3]], //后
[tex, m[4]], //前
[tex, m[5]], //左
[tex, m[6]], //右
[tex, m[1]], //下
[tex, m[2]], //上
[tex, m[3]], //后
[tex, m[4]], //前
[tex, m[5]], //左
[tex, m[6]]
], model,tm,0);
Block.setDestroyTime(id,1);
Player.addItemCreativeInv(id,64,0);
}
addABlock(36,"屠宰机","tzj",54,false,1,[0,1,0,0,0,0]);
求大神帮看看哪里错了
Block.defineBlock(id,name,
[[tex, m[1]], //下
[tex, m[2]], //上
[tex, m[3]], //后
[tex, m[4]], //前
[tex, m[5]], //左
[tex, m[6]], //右
[tex, m[1]], //下
[tex, m[2]], //上
[tex, m[3]], //后
[tex, m[4]], //前
[tex, m[5]], //左
[tex, m[6]]
], model,tm,0);
Block.setDestroyTime(id,1);
Player.addItemCreativeInv(id,64,0);
}
addABlock(36,"屠宰机","tzj",54,false,1,[0,1,0,0,0,0]);
求大神帮看看哪里错了