Add state machine for caching items into chests
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user