Comparing version 0.0.1 to 0.0.2
@@ -150,3 +150,3 @@ var mineflayer = require('mineflayer') | ||
bot.navigate.to(dest, { | ||
endRadius: 2, | ||
endRadius: 10, | ||
timeout: 2000, | ||
@@ -162,5 +162,6 @@ }); | ||
function haveEquipment() { | ||
var haveBow = bot.inventory.count(261) > 0; | ||
var bowItem = bot.inventory.findInventoryItem(261); | ||
if (bowItem) bot.equip(bowItem, 'hand'); | ||
var arrowCount = bot.inventory.count(262); | ||
return haveBow && arrowCount >= 30; | ||
return bowItem != null && arrowCount >= 30; | ||
} | ||
@@ -167,0 +168,0 @@ |
{ | ||
"name": "archerbot", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "mineflayer bot that engages you in a gentlemanly duel", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5765
159