more trade?
This commit is contained in:
@ -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.`);
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user