Open AidenRaaphorst opened 2 years ago
The bot can still hit me when encased in blocks like this.
Even when adding another layer on the sides and on top and closing the hole, the bot still hits me through the blocks.
This is the code, it's the same as the example in the readme, but I added semicolons and changed bot to this.bot because it's in a class.
bot
this.bot
this.bot.on('chat', (username, message) => { if (message === 'fight me') { const player = this.bot.players[username]; if (!player) { this.bot.chat("I can't see you."); return; } this.bot.pvp.attack(player.entity); } if (message === 'stop') { this.bot.pvp.stop(); } });
The bot can still hit me when encased in blocks like this.
Even when adding another layer on the sides and on top and closing the hole, the bot still hits me through the blocks.
This is the code, it's the same as the example in the readme, but I added semicolons and changed
bot
tothis.bot
because it's in a class.