Tree schematics: Alter jungletree, aspen, pine, appletree
authorparamat <mat.gregory@virginmedia.com>
Tue, 7 Mar 2017 12:00:14 +0000 (12:00 +0000)
committerparamat <mat.gregory@virginmedia.com>
Fri, 10 Mar 2017 19:28:38 +0000 (19:28 +0000)
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.

mods/default/mapgen.lua
mods/default/nodes.lua
mods/default/schematics/apple_tree.mts
mods/default/schematics/apple_tree_from_sapling.mts
mods/default/schematics/aspen_tree.mts
mods/default/schematics/aspen_tree_from_sapling.mts
mods/default/schematics/jungle_tree.mts
mods/default/schematics/jungle_tree_from_sapling.mts
mods/default/schematics/pine_tree.mts
mods/default/schematics/pine_tree_from_sapling.mts
mods/default/trees.lua

index f8a84efca72774ea6cf25670541b0eea5aff411b..d526b767a165b2038b0002956a3074cf7e7a8632 100644 (file)
@@ -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({
index 34136cb3325169180ec78a988824246ce16da0a4..67790dd6ad06c2f9bea0452067f2b7ab6139a15c 100644 (file)
@@ -2198,5 +2198,5 @@ default.register_leafdecay({
 default.register_leafdecay({
        trunks = {"default:aspen_tree"},
        leaves = {"default:aspen_leaves"},
-       radius = 3,
+       radius = 2,
 })
index ac09b46694037b0824dd4c0e3762d66d0fff1a76..2bd57c1fc4aa36e2f03c6ac2989c86b575e2784e 100644 (file)
Binary files a/mods/default/schematics/apple_tree.mts and b/mods/default/schematics/apple_tree.mts differ
index 5d35a1545f38836395782ea132c4fc582725b11f..d258ab1a80a20520986cd0d37f560aeebac359f8 100644 (file)
Binary files a/mods/default/schematics/apple_tree_from_sapling.mts and b/mods/default/schematics/apple_tree_from_sapling.mts differ
index 724aae08d67834daea27dcfdcc9c2def13b435bd..429a831c775320ace3f86c566380abea4dafb162 100644 (file)
Binary files a/mods/default/schematics/aspen_tree.mts and b/mods/default/schematics/aspen_tree.mts differ
index b7ca161903056454f78f4672000947d2ebf60035..b7ab3ee6b71ff54ed06229486b50a9dd4f918479 100644 (file)
Binary files a/mods/default/schematics/aspen_tree_from_sapling.mts and b/mods/default/schematics/aspen_tree_from_sapling.mts differ
index 329364a87ed26d90edad83c4f88e029ef1d742c0..01a1b11a05f8bc1032b1188ae803281349871fa4 100644 (file)
Binary files a/mods/default/schematics/jungle_tree.mts and b/mods/default/schematics/jungle_tree.mts differ
index babaa45f7a11de1fc017b341cea0751974ce2ab4..f93f01419c5dc002519f603b5620dcaa58ecd819 100644 (file)
Binary files a/mods/default/schematics/jungle_tree_from_sapling.mts and b/mods/default/schematics/jungle_tree_from_sapling.mts differ
index 3a3fa7ad0e7f7c3bbd3282856d1985734b62d702..6f27d83921216011779cb297d1a771de9fdd0f85 100644 (file)
Binary files a/mods/default/schematics/pine_tree.mts and b/mods/default/schematics/pine_tree.mts differ
index 629c5da027a0c3d1532a867b611a27357499c0df..e42a9965cda4e177a5acac0b2c6753684085b5cf 100644 (file)
Binary files a/mods/default/schematics/pine_tree_from_sapling.mts and b/mods/default/schematics/pine_tree_from_sapling.mts differ
index 2b676e7535a377d231383777283007550d9abf9d..5f4d3f1ea21ae5dd06527129a537c7826a13fdae 100644 (file)
@@ -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