more trade?

This commit is contained in:
2023-06-02 12:41:43 -04:00
parent ee5e93e0cd
commit d6c003850d
3 changed files with 40 additions and 14 deletions

View File

@ -69,7 +69,7 @@ module.exports = {
// Give MC a moment
await sleep(1000);
let isPutAway = await this.putInChest(chestBlock)
let isPutAway = await this.dumpToChest(chestBlock)
await this.whisper(from, `I put ${isPutAway ? 'all' : 'some'} items in your chest.`);
}
}

View File

@ -4,7 +4,7 @@
const {sleep} = require('../utils');
const conf = require('../conf');
const {CJbot} = require('../model/minecraft');
// const inventoryViewer = require('mineflayer-web-inventory');
const inventoryViewer = require('mineflayer-web-inventory');
const commands = require('./commands');
@ -21,6 +21,7 @@ for(let name in conf.mc.bots){
}
bot.on('onReady', async function(argument) {
inventoryViewer(bot.bot);
await sleep(1000);
bot.bot.setControlState('jump', true);
setTimeout(()=> bot.bot.setControlState('jump', false), 5000)