parent
58458a561f
commit
f2e0b162f9
4 changed files with 85 additions and 19 deletions
@ -0,0 +1,31 @@ |
||||
import json |
||||
|
||||
with open('mcdata/registries.json') as f: |
||||
ITEMS = json.load(f)['minecraft:item']['entries'] |
||||
|
||||
BEDS = [ |
||||
'white_bed', |
||||
'orange_bed', |
||||
'magenta_bed', |
||||
'light_blue_bed', |
||||
'yellow_bed', |
||||
'lime_bed', |
||||
'pink_bed', |
||||
'gray_bed', |
||||
'light_gray_bed', |
||||
'cyan_bed', |
||||
'purple_bed', |
||||
'blue_bed', |
||||
'brown_bed', |
||||
'green_bed', |
||||
'red_bed', |
||||
'black_bed', |
||||
] |
||||
|
||||
BED_IDS = set() |
||||
for item_name in BEDS: |
||||
BED_IDS.add(ITEMS['minecraft:'+item_name]['protocol_id']) |
||||
|
||||
ITEM_NAMES = {} |
||||
for item_name, item in ITEMS.items(): |
||||
ITEM_NAMES[ITEMS[item_name]['protocol_id']] = item_name.replace('minecraft:', '') |
Loading…
Reference in new issue