Add a job to find enchanted golden apples
This commit is contained in:
4
bot.py
4
bot.py
@@ -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.')
|
||||
|
||||
|
Reference in New Issue
Block a user