Create an index of interesting blocks
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user