From f1d0796a33eed24cbcb952c5598d1e9382cba806 Mon Sep 17 00:00:00 2001 From: izharus Date: Thu, 26 Dec 2024 20:58:54 +0300 Subject: [PATCH] Improve pine generation --- resources/trees.py | 4 ++++ .../trees/dttfc/leaves_properties/pine.json | 4 +++- src/main/resources/trees/dttfc/species/pine.json | 13 ++++++++++++- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/resources/trees.py b/resources/trees.py index 6a6a4f1..f6dd269 100644 --- a/resources/trees.py +++ b/resources/trees.py @@ -46,6 +46,8 @@ def generate(rm: ResourceManager): species(rm, name, tapering=0.25, signal_energy=15, up_probability=8, lowest_branch_height=7, growth_rate=1) elif name == 'sycamore': species(rm, name, tapering=0.1, signal_energy=12, up_probability=12, lowest_branch_height=3, growth_rate=1.2) + elif name == 'pine': + species(rm, name, tapering=0.20, signal_energy=20, up_probability=9, lowest_branch_height=5, growth_rate=1.1, growth_logic_kit=MEGA_SPRUCE_LOGIC_KIT) else: species(rm, name) @@ -78,6 +80,8 @@ def generate(rm: ResourceManager): leaves_properties(rm, name, cell_kit='dynamictrees:acacia') elif name == 'sycamore': leaves_properties(rm, name, smother=2) + elif name == 'pine': + leaves_properties(rm, name, cell_kit='dynamictrees:conifer', smother=2) else: leaves_properties(rm, name) diff --git a/src/main/resources/trees/dttfc/leaves_properties/pine.json b/src/main/resources/trees/dttfc/leaves_properties/pine.json index ea307e6..4318421 100644 --- a/src/main/resources/trees/dttfc/leaves_properties/pine.json +++ b/src/main/resources/trees/dttfc/leaves_properties/pine.json @@ -1,4 +1,6 @@ { "__comment__": "This file was automatically created by mcresources", - "primitive_leaves": "tfc:wood/leaves/pine" + "primitive_leaves": "tfc:wood/leaves/pine", + "cell_kit": "dynamictrees:conifer", + "smother": 2 } \ No newline at end of file diff --git a/src/main/resources/trees/dttfc/species/pine.json b/src/main/resources/trees/dttfc/species/pine.json index 91aa1f5..eadc2cc 100644 --- a/src/main/resources/trees/dttfc/species/pine.json +++ b/src/main/resources/trees/dttfc/species/pine.json @@ -1,5 +1,16 @@ { "__comment__": "This file was automatically created by mcresources", "family": "dttfc:pine", - "can_bone_meal_tree": false + "can_bone_meal_tree": false, + "tapering": 0.2, + "signal_energy": 20, + "up_probability": 9, + "lowest_branch_height": 5, + "growth_rate": 1.1, + "growth_logic_kit": { + "name": "conifer", + "properties": { + "energy_divisor": 5 + } + } } \ No newline at end of file