How do i make my node-minecraft-protocol bot replace a block with a command block
current code:
JavaScript: selfcare.js
setInterval(() => {
if(Date.now() - currentTimeEEE < 2000) return
try{
bot._client.write('set_creative_slot', {
slot: 36,
item: {
present: !0,
itemId: 323,
itemCount: 60,
nbtData: void 0
}
})
bot._client.write('block_place', {
hand: 0,
location: {x: bot.pos.x, y: bot.pos.y, z: bot.pos.z},
direction: 1,
cursorX: 0,
cursorY: 0,
cursorZ: 0
})
} catch (e) {}
},100)
Display More