Add a job for farming crops
This commit is contained in:
@@ -284,6 +284,26 @@ for block_name in ['nether_wart']:
|
||||
for state in JSON_BLOCKS['minecraft:' + block_name]['states']:
|
||||
NETHERWART_IDS.add(state['id'])
|
||||
|
||||
WHEAT_IDS = set()
|
||||
for block_name in ['wheat']:
|
||||
for state in JSON_BLOCKS['minecraft:' + block_name]['states']:
|
||||
WHEAT_IDS.add(state['id'])
|
||||
|
||||
POTATO_IDS = set()
|
||||
for block_name in ['potatoes']:
|
||||
for state in JSON_BLOCKS['minecraft:' + block_name]['states']:
|
||||
POTATO_IDS.add(state['id'])
|
||||
|
||||
CARROT_IDS = set()
|
||||
for block_name in ['carrots']:
|
||||
for state in JSON_BLOCKS['minecraft:' + block_name]['states']:
|
||||
CARROT_IDS.add(state['id'])
|
||||
|
||||
BEETROOT_IDS = set()
|
||||
for block_name in ['beetroots']:
|
||||
for state in JSON_BLOCKS['minecraft:' + block_name]['states']:
|
||||
BEETROOT_IDS.add(state['id'])
|
||||
|
||||
INDEXED_IDS = set()
|
||||
for block_name in INDEXED:
|
||||
for state in JSON_BLOCKS['minecraft:' + block_name]['states']:
|
||||
@@ -294,6 +314,10 @@ for block_name in SAPLINGS:
|
||||
for state in JSON_BLOCKS['minecraft:' + block_name]['states']:
|
||||
SAPLING_IDS.add(state['id'])
|
||||
|
||||
MATURE_WHEAT_ID = max(WHEAT_IDS)
|
||||
MATURE_POTATO_ID = max(POTATO_IDS)
|
||||
MATURE_CARROT_ID = max(CARROT_IDS)
|
||||
MATURE_BEETROOT_ID = max(BEETROOT_IDS)
|
||||
|
||||
def get(bid):
|
||||
name = BLOCKS[bid]
|
||||
|
||||
Reference in New Issue
Block a user