Create an index of interesting blocks

This commit is contained in:
2020-09-24 17:46:00 -06:00
parent 6b2df0c27e
commit b723143299
4 changed files with 37 additions and 1 deletions
+9
View File
@@ -214,6 +214,10 @@ LEAVES = [
'dark_oak_leaves',
]
INDEXED = [
'chest',
]
NON_SOLID_IDS = set([SINGLE_SNOW])
for block_name in NON_SOLID:
@@ -235,6 +239,11 @@ for block_name in LEAVES:
for state in JSON_BLOCKS['minecraft:' + block_name]['states']:
LEAF_IDS.add(state['id'])
INDEXED_IDS = set()
for block_name in INDEXED:
for state in JSON_BLOCKS['minecraft:' + block_name]['states']:
INDEXED_IDS.add(state['id'])
def get(bid):
name = BLOCKS[bid]