Cache items into trapped chests

This commit is contained in:
2020-12-01 00:48:02 +00:00
parent efcefc8192
commit eabb0a04d1
5 changed files with 93 additions and 16 deletions

3
bot.py
View File

@@ -128,7 +128,8 @@ def tick(global_state):
g.y_v += g.y_a * utils.TICK
block_below = g.chunks.get_block_at(floor(p.x), ceil(p.y-1), floor(p.z))
in_air = block_below in blocks.NON_SOLID_IDS
in_void = p.y < 0
in_air = block_below in blocks.NON_SOLID_IDS or in_void
if in_air:
g.y_a = -36.0