Skip to content

Commit 0f0dd0f

Browse files
committedMar 10, 2017
Tree schematics: Alter jungletree, aspen, pine, appletree
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.
1 parent 1f6d633 commit 0f0dd0f

11 files changed

+3
-2
lines changed
 

‎mods/default/mapgen.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,7 @@ function default.register_decorations()
12961296
y_max = 31000,
12971297
schematic = minetest.get_modpath("default") .. "/schematics/apple_tree.mts",
12981298
flags = "place_center_x, place_center_z",
1299+
rotation = "random",
12991300
})
13001301

13011302
minetest.register_decoration({

‎mods/default/nodes.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -2198,5 +2198,5 @@ default.register_leafdecay({
21982198
default.register_leafdecay({
21992199
trunks = {"default:aspen_tree"},
22002200
leaves = {"default:aspen_leaves"},
2201-
radius = 3,
2201+
radius = 2,
22022202
})
6 Bytes
Binary file not shown.
Binary file not shown.
-2 Bytes
Binary file not shown.
Binary file not shown.
4 Bytes
Binary file not shown.
Binary file not shown.

‎mods/default/schematics/pine_tree.mts

1 Byte
Binary file not shown.
Binary file not shown.

‎mods/default/trees.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ function default.grow_new_apple_tree(pos)
372372
local path = minetest.get_modpath("default") ..
373373
"/schematics/apple_tree_from_sapling.mts"
374374
minetest.place_schematic({x = pos.x - 2, y = pos.y - 1, z = pos.z - 2},
375-
path, "0", nil, false)
375+
path, "random", nil, false)
376376
end
377377

378378

0 commit comments

Comments
 (0)
Please sign in to comment.