Port and tune 26.3 wood farming

This commit is contained in:
Tanner
2026-11-05 16:36:10 +00:00
parent b89f0f6ed2
commit 4c27f5058e
15 changed files with 412 additions and 40 deletions
+9
View File
@@ -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]