Add a job to find enchanted golden apples

This commit is contained in:
2020-09-25 00:03:22 -06:00
parent b723143299
commit 25ce916b43
10 changed files with 163 additions and 11 deletions

4
bot.py
View File

@@ -156,6 +156,7 @@ def init(global_state):
g.dumping = None
g.item_lock = False
g.command_lock = False
g.window = None
@@ -193,8 +194,7 @@ def bot(global_state):
time.sleep(utils.TICK)
print('Player loaded.')
x, y, z = utils.pint(g.pos)
while (floor(x/16), floor(y/16), floor(z/16)) not in g.chunks.chunks:
while not g.chunks.check_loaded(g.pos):
time.sleep(utils.TICK)
print('Chunks loaded.')