Port and tune 26.3 wood farming
This commit is contained in:
@@ -55,6 +55,15 @@ def get_id(name):
|
||||
return ITEMS['minecraft:' + name]['protocol_id']
|
||||
|
||||
|
||||
def get_sapling_id(tree_type):
|
||||
"""Return the plantable sapling/propagule item for a tree species."""
|
||||
for suffix in ('_sapling', '_propagule'):
|
||||
item = ITEMS.get('minecraft:' + tree_type + suffix)
|
||||
if item is not None:
|
||||
return item['protocol_id']
|
||||
return None
|
||||
|
||||
|
||||
def get_name(idx):
|
||||
return ITEM_NAMES[idx]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user