Skip to content

Commit

Permalink
Improve pine generation
Browse files Browse the repository at this point in the history
  • Loading branch information
izharus committed Dec 27, 2024
1 parent 46fda6a commit f1d0796
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions resources/trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/trees/dttfc/leaves_properties/pine.json
Original file line number Diff line number Diff line change
@@ -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
}
13 changes: 12 additions & 1 deletion src/main/resources/trees/dttfc/species/pine.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}

0 comments on commit f1d0796

Please sign in to comment.