mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-22 06:02:07 +02:00
fixed door placement
This commit is contained in:
parent
7e71f12026
commit
fb587d759a
1 changed files with 1 additions and 1 deletions
|
@ -532,7 +532,7 @@ export async function placeBlock(bot, blockType, x, y, z, placeOn='bottom', dont
|
||||||
let msg = '/setblock ' + Math.floor(x) + ' ' + Math.floor(y) + ' ' + Math.floor(z) + ' ' + blockType;
|
let msg = '/setblock ' + Math.floor(x) + ' ' + Math.floor(y) + ' ' + Math.floor(z) + ' ' + blockType;
|
||||||
bot.chat(msg);
|
bot.chat(msg);
|
||||||
if (blockType.includes('door'))
|
if (blockType.includes('door'))
|
||||||
bot.chat('/setblock ' + Math.floor(x) + ' ' + Math.floor(y+1) + ' ' + Math.floor(z) + ' ' + blockType + '[half=top]');
|
bot.chat('/setblock ' + Math.floor(x) + ' ' + Math.floor(y+1) + ' ' + Math.floor(z) + ' ' + blockType + '[half=upper]');
|
||||||
if (blockType.includes('bed'))
|
if (blockType.includes('bed'))
|
||||||
bot.chat('/setblock ' + Math.floor(x) + ' ' + Math.floor(y) + ' ' + Math.floor(z-1) + ' ' + blockType + '[part=head]');
|
bot.chat('/setblock ' + Math.floor(x) + ' ' + Math.floor(y) + ' ' + Math.floor(z-1) + ' ' + blockType + '[part=head]');
|
||||||
log(bot, `Used /setblock to place ${blockType} at ${target_dest}.`);
|
log(bot, `Used /setblock to place ${blockType} at ${target_dest}.`);
|
||||||
|
|
Loading…
Add table
Reference in a new issue