Support harvesting and caching red sand
This commit is contained in:
1 parent
9918baefdc
commit
ebf325f48b
7 files changed
+48
-31
No files matched your search
@@ -38,6 +38,7 @@ BREAK_DISTANCE = 6
|
||||
AIR = MCD_BLOCKS['air']['minStateId']
|
||||
STONE = MCD_BLOCKS['stone']['minStateId']
|
||||
SAND = MCD_BLOCKS['sand']['minStateId']
|
||||
RED_SAND = MCD_BLOCKS['red_sand']['minStateId']
|
||||
SOUL_TORCH = MCD_BLOCKS['soul_torch']['minStateId']
|
||||
EMERALD_BLOCK = MCD_BLOCKS['emerald_block']['minStateId']
|
||||
SINGLE_SNOW = MCD_BLOCKS.get('snow', MCD_BLOCKS.get('snow_layer', {})).get(
|
||||
@@ -56,6 +57,9 @@ def get_set(names):
|
||||
return result
|
||||
|
||||
|
||||
SAND_IDS = get_set(['sand', 'red_sand'])
|
||||
|
||||
|
||||
# Collision geometry is safer for navigation than the old hard-coded 1.16 list.
|
||||
NON_SOLID_IDS = {
|
||||
state_id for state_id, boxes in COLLISION_BOXES.items() if not boxes
|
||||
|
||||
@@ -82,6 +82,8 @@ def get_name(idx):
|
||||
CHEST_ID = get_id('chest')
|
||||
GAPPLE_ID = get_id('enchanted_golden_apple')
|
||||
SAND_ID = get_id('sand')
|
||||
RED_SAND_ID = get_id('red_sand')
|
||||
SAND_IDS = {SAND_ID, RED_SAND_ID}
|
||||
NETHERWART_ID = get_id('nether_wart')
|
||||
CARROT_ID = get_id('carrot')
|
||||
POTATO_ID = get_id('potato')
|
||||
@@ -96,6 +98,8 @@ IRON_INGOT_ID = get_id('iron_ingot')
|
||||
|
||||
|
||||
_LABEL_ITEM_IDS = {
|
||||
'sand': {SAND_ID},
|
||||
'red sand': {RED_SAND_ID},
|
||||
'seeds': get_set({
|
||||
'beetroot_seeds', 'melon_seeds', 'pitcher_pod', 'pumpkin_seeds',
|
||||
'torchflower_seeds', 'wheat_seeds',
|
||||
|
||||
Reference in new issue
Block a user