Detect monsters and flee to safety

This commit is contained in:
2020-12-04 02:49:22 +00:00
parent 5a7a2f0113
commit b8952db742
7 changed files with 475 additions and 196 deletions
+3 -1
View File
@@ -16,12 +16,13 @@ for name, data in JSON_BLOCKS.items():
for state in data['states']:
BLOCKS[state['id']] = name.replace('minecraft:', '')
BREAK_DISTANCE = 5
BREAK_DISTANCE = 6
AIR = 0
SAND = 66
SINGLE_SNOW = 3921
SOUL_TORCH = 4008
EMERALD_BLOCK = 5407
TEST_BLOCK = (616, 78, 496)
@@ -246,6 +247,7 @@ TRAPPED_CHESTS = [
INDEXED = [
'chest',
'trapped_chest',
'emerald_block',
]