Skip to content

Commit

Permalink
Tree schematics: Alter jungletree, aspen, pine, appletree
Browse files Browse the repository at this point in the history
Denser jungletree for darker rainforest:
Highest 'jungletree' nodes now prob 255.
Add a 5th lower branch layer.
Increase lower branch layer y-slice prob to 191.

Aspen:
Extend trunk upwards by 1 node to reduce leafdecay radius to 2.

Pine:
Make lower trunk 1 node longer so that lowest branches are more often
higher off the ground, also to make pines taller.

Appletree:
Make 2 opposite branches prob 255, the other 2 prob 127, to avoid
trees with 1 or 0 branches. Therefore also add random rotation.
  • Loading branch information
paramat committed Mar 10, 2017
1 parent 1f6d633 commit 0f0dd0f
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions mods/default/mapgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,7 @@ function default.register_decorations()
y_max = 31000,
schematic = minetest.get_modpath("default") .. "/schematics/apple_tree.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})

minetest.register_decoration({
Expand Down
2 changes: 1 addition & 1 deletion mods/default/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2198,5 +2198,5 @@ default.register_leafdecay({
default.register_leafdecay({
trunks = {"default:aspen_tree"},
leaves = {"default:aspen_leaves"},
radius = 3,
radius = 2,
})
Binary file modified mods/default/schematics/apple_tree.mts
Binary file not shown.
Binary file modified mods/default/schematics/apple_tree_from_sapling.mts
Binary file not shown.
Binary file modified mods/default/schematics/aspen_tree.mts
Binary file not shown.
Binary file modified mods/default/schematics/aspen_tree_from_sapling.mts
Binary file not shown.
Binary file modified mods/default/schematics/jungle_tree.mts
Binary file not shown.
Binary file modified mods/default/schematics/jungle_tree_from_sapling.mts
Binary file not shown.
Binary file modified mods/default/schematics/pine_tree.mts
Binary file not shown.
Binary file modified mods/default/schematics/pine_tree_from_sapling.mts
Binary file not shown.
2 changes: 1 addition & 1 deletion mods/default/trees.lua
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ function default.grow_new_apple_tree(pos)
local path = minetest.get_modpath("default") ..
"/schematics/apple_tree_from_sapling.mts"
minetest.place_schematic({x = pos.x - 2, y = pos.y - 1, z = pos.z - 2},
path, "0", nil, false)
path, "random", nil, false)
end


Expand Down

0 comments on commit 0f0dd0f

Please sign in to comment.