Add signed general cache destinations
This commit is contained in:
1 parent
11c1bad0c4
commit
86fbf911a5
7 files changed
+305
-114
No files matched your search
@@ -47,6 +47,17 @@ AXE_IDS = get_set(AXES)
|
||||
FOOD_IDS = get_set(FOOD)
|
||||
SAPLING_IDS = get_set(SAPLINGS)
|
||||
LOG_IDS = get_set(LOGS)
|
||||
_LOG_FAMILY_ITEM_IDS = {}
|
||||
for _name in LOGS:
|
||||
_unstripped_name = _name.removeprefix('stripped_')
|
||||
for _suffix in ('_log', '_wood', '_stem', '_hyphae'):
|
||||
if _unstripped_name.endswith(_suffix):
|
||||
_family_name = _unstripped_name[:-len(_suffix)] + ' log'
|
||||
_family_items = get_set({_name})
|
||||
if _family_items:
|
||||
_LOG_FAMILY_ITEM_IDS.setdefault(
|
||||
_family_name, set()).update(_family_items)
|
||||
break
|
||||
ITEM_NAMES = {item['protocol_id']: name.removeprefix('minecraft:')
|
||||
for name, item in ITEMS.items()}
|
||||
|
||||
@@ -92,6 +103,7 @@ _LABEL_ITEM_IDS = {
|
||||
'wheat': {WHEAT_ID},
|
||||
'log': LOG_IDS,
|
||||
'sapling': SAPLING_IDS,
|
||||
**_LOG_FAMILY_ITEM_IDS,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user