You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
this.bot.on('chat',(username,message)=>{if(message==='fight me'){constplayer=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 text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: