Add state machine for caching items into chests

This commit is contained in:
2020-09-20 19:08:23 -06:00
parent b8cbd9a5f0
commit f8d44e7e38
12 changed files with 326 additions and 59 deletions
+9 -6
View File
@@ -1,11 +1,12 @@
import minecraft_data
import json
import importlib
mcd = minecraft_data('1.16.2')
import data
importlib.reload(data)
MCD_BLOCKS = {}
for data in mcd.blocks.values():
MCD_BLOCKS[data['name']] = data
for d in data.mcd.blocks.values():
MCD_BLOCKS[d['name']] = d
with open('mcdata/blocks.json') as f:
JSON_BLOCKS = json.load(f)
@@ -18,9 +19,11 @@ for name, data in JSON_BLOCKS.items():
AIR = 0
SAND = 66
SINGLE_SNOW = 3921
SOUL_TORCH = 4008
#SOUL_TORCH = 4008
SOUL_TORCH = 1435
TEST_BLOCK = (616, 78, 496)
#TEST_BLOCK = (616, 78, 496)
TEST_BLOCK = (-100, 64, -167)
AVOID = [