2
0
Эх сурвалжийг харах

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.
paramat 7 жил өмнө
parent
commit
0f0dd0f6e8

+ 1 - 0
mods/default/mapgen.lua

@@ -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({

+ 1 - 1
mods/default/nodes.lua

@@ -2198,5 +2198,5 @@ default.register_leafdecay({
 default.register_leafdecay({
 	trunks = {"default:aspen_tree"},
 	leaves = {"default:aspen_leaves"},
-	radius = 3,
+	radius = 2,
 })

BIN
mods/default/schematics/apple_tree.mts


BIN
mods/default/schematics/apple_tree_from_sapling.mts


BIN
mods/default/schematics/aspen_tree.mts


BIN
mods/default/schematics/aspen_tree_from_sapling.mts


BIN
mods/default/schematics/jungle_tree.mts


BIN
mods/default/schematics/jungle_tree_from_sapling.mts


BIN
mods/default/schematics/pine_tree.mts


BIN
mods/default/schematics/pine_tree_from_sapling.mts


+ 1 - 1
mods/default/trees.lua

@@ -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