Skip to content

Commit 20b4338

Browse files
authored
New wider apple tree schematic
Precisely reduce trees and logs per mapchunk division to compensate.
1 parent 3d02145 commit 20b4338

File tree

6 files changed

+128
-97
lines changed

6 files changed

+128
-97
lines changed

mods/default/mapgen.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -1621,8 +1621,8 @@ function default.register_decorations()
16211621
place_on = {"default:dirt_with_grass"},
16221622
sidelen = 16,
16231623
noise_params = {
1624-
offset = 0.036,
1625-
scale = 0.022,
1624+
offset = 0.024,
1625+
scale = 0.015,
16261626
spread = {x = 250, y = 250, z = 250},
16271627
seed = 2,
16281628
octaves = 3,
@@ -1643,8 +1643,8 @@ function default.register_decorations()
16431643
place_offset_y = 1,
16441644
sidelen = 16,
16451645
noise_params = {
1646-
offset = 0.0018,
1647-
scale = 0.0011,
1646+
offset = 0.0012,
1647+
scale = 0.0007,
16481648
spread = {x = 250, y = 250, z = 250},
16491649
seed = 2,
16501650
octaves = 3,

mods/default/nodes.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,8 @@ minetest.register_node("default:sapling", {
684684
"default:sapling",
685685
-- minp, maxp to be checked, relative to sapling pos
686686
-- minp_relative.y = 1 because sapling pos has been checked
687-
{x = -2, y = 1, z = -2},
688-
{x = 2, y = 6, z = 2},
687+
{x = -3, y = 1, z = -3},
688+
{x = 3, y = 6, z = 3},
689689
-- maximum interval of interior volume check
690690
4)
691691

40 Bytes
Binary file not shown.
Binary file not shown.

mods/default/trees.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ end
387387
function default.grow_new_apple_tree(pos)
388388
local path = minetest.get_modpath("default") ..
389389
"/schematics/apple_tree_from_sapling.mts"
390-
minetest.place_schematic({x = pos.x - 2, y = pos.y - 1, z = pos.z - 2},
390+
minetest.place_schematic({x = pos.x - 3, y = pos.y - 1, z = pos.z - 3},
391391
path, "random", nil, false)
392392
end
393393

schematic_tables.txt

+121-90
Original file line numberDiff line numberDiff line change
@@ -30,123 +30,154 @@ local _ = {name = "air", prob = 0}
3030

3131
-- Mapgen Apple tree
3232

33-
local L = {name = "default:leaves", prob = 191}
34-
local N = {name = "default:leaves", prob = 223}
3533
local M = {name = "default:leaves", prob = 255}
34+
local N = {name = "default:leaves", prob = 223}
3635
local F = {name = "default:apple", prob = 63}
37-
local T = {name = "default:tree", prob = 255}
3836
local Y = {name = "default:tree", prob = 255, force_place = true}
39-
local U = {name = "default:tree", prob = 127}
40-
local I = {name = "default:tree", prob = 127, force_place = true}
37+
local T = {name = "default:tree", prob = 255}
4138

4239
mts_save("apple_tree", {
43-
size = {x = 5, y = 8, z = 5},
40+
size = {x = 7, y = 8, z = 7},
4441
data = {
45-
_, _, _, _, _,
46-
_, _, _, _, _,
47-
_, _, _, _, _,
48-
_, _, _, _, _,
49-
L, N, N, N, L,
50-
L, N, N, N, L,
51-
L, N, N, N, L,
52-
_, _, _, _, _,
42+
_, _, _, _, _, _, _,
43+
_, _, _, _, _, _, _,
44+
_, _, _, _, _, _, _,
45+
_, _, _, _, _, _, _,
46+
_, _, N, M, N, _, _,
47+
_, _, _, N, _, _, _,
48+
_, _, _, _, _, _, _,
49+
_, _, _, _, _, _, _,
5350

54-
_, _, _, _, _,
55-
_, _, _, _, _,
56-
_, _, _, _, _,
57-
_, _, _, _, _,
58-
N, Y, F, I, N,
59-
N, M, M, M, N,
60-
N, M, M, M, N,
61-
_, N, N, N, _,
62-
63-
_, _, Y, _, _,
64-
_, _, Y, _, _,
65-
_, _, Y, _, _,
66-
_, _, Y, _, _,
67-
N, F, M, F, N,
68-
N, M, M, M, N,
69-
N, M, M, M, N,
70-
_, N, M, N, _,
51+
_, _, _, _, _, _, _,
52+
_, _, _, _, _, _, _,
53+
_, _, _, _, _, _, _,
54+
_, _, _, _, _, _, _,
55+
_, M, M, F, M, M, _,
56+
_, N, M, M, M, N, _,
57+
_, _, N, M, N, _, _,
58+
_, _, _, _, _, _, _,
7159

72-
_, _, _, _, _,
73-
_, _, _, _, _,
74-
_, _, _, _, _,
75-
_, _, _, _, _,
76-
N, I, F, Y, N,
77-
N, M, M, M, N,
78-
N, M, M, M, N,
79-
_, N, N, N, _,
60+
_, _, _, _, _, _, _,
61+
_, _, _, _, _, _, _,
62+
_, _, _, _, _, _, _,
63+
_, _, _, _, _, _, _,
64+
N, M, Y, _, _, M, N,
65+
_, M, M, _, Y, M, _,
66+
_, N, M, M, M, N, _,
67+
_, _, _, N, _, _, _,
8068

81-
_, _, _, _, _,
82-
_, _, _, _, _,
83-
_, _, _, _, _,
84-
_, _, _, _, _,
85-
L, N, N, N, L,
86-
L, N, N, N, L,
87-
L, N, N, N, L,
88-
_, _, _, _, _,
69+
_, _, _, Y, _, _, _,
70+
_, _, _, Y, _, _, _,
71+
_, _, _, Y, _, _, _,
72+
_, _, _, Y, _, _, _,
73+
M, F, _, Y, _, F, M,
74+
N, M, _, _, _, M, N,
75+
_, M, M, M, M, M, _,
76+
_, _, N, M, N, _, _,
77+
78+
_, _, _, _, _, _, _,
79+
_, _, _, _, _, _, _,
80+
_, _, _, _, _, _, _,
81+
_, _, _, _, _, _, _,
82+
N, M, _, _, Y, M, N,
83+
_, M, Y, _, M, M, _,
84+
_, N, M, M, M, N, _,
85+
_, _, _, N, _, _, _,
86+
87+
_, _, _, _, _, _, _,
88+
_, _, _, _, _, _, _,
89+
_, _, _, _, _, _, _,
90+
_, _, _, _, _, _, _,
91+
_, M, M, F, M, M, _,
92+
_, N, M, M, M, N, _,
93+
_, _, N, M, N, _, _,
94+
_, _, _, _, _, _, _,
95+
96+
_, _, _, _, _, _, _,
97+
_, _, _, _, _, _, _,
98+
_, _, _, _, _, _, _,
99+
_, _, _, _, _, _, _,
100+
_, _, N, M, N, _, _,
101+
_, _, _, N, _, _, _,
102+
_, _, _, _, _, _, _,
103+
_, _, _, _, _, _, _,
89104
},
90105
yslice_prob = {
91106
{ypos = 2, prob = 127},
92-
{ypos = 6, prob = 127},
93107
},
94108
})
95109

96110

97111
-- Apple tree from sapling
98112

99113
mts_save("apple_tree_from_sapling", {
100-
size = {x = 5, y = 8, z = 5},
114+
size = {x = 7, y = 8, z = 7},
101115
data = {
102-
_, _, _, _, _,
103-
_, _, _, _, _,
104-
_, _, _, _, _,
105-
_, _, _, _, _,
106-
L, N, N, N, L,
107-
L, N, N, N, L,
108-
L, N, N, N, L,
109-
_, _, _, _, _,
116+
_, _, _, _, _, _, _,
117+
_, _, _, _, _, _, _,
118+
_, _, _, _, _, _, _,
119+
_, _, _, _, _, _, _,
120+
_, _, N, M, N, _, _,
121+
_, _, _, N, _, _, _,
122+
_, _, _, _, _, _, _,
123+
_, _, _, _, _, _, _,
110124

111-
_, _, _, _, _,
112-
_, _, _, _, _,
113-
_, _, _, _, _,
114-
_, _, _, _, _,
115-
N, T, F, U, N,
116-
N, M, M, M, N,
117-
N, M, M, M, N,
118-
_, N, N, N, _,
125+
_, _, _, _, _, _, _,
126+
_, _, _, _, _, _, _,
127+
_, _, _, _, _, _, _,
128+
_, _, _, _, _, _, _,
129+
_, M, M, F, M, M, _,
130+
_, N, M, M, M, N, _,
131+
_, _, N, M, N, _, _,
132+
_, _, _, _, _, _, _,
119133

120-
_, _, T, _, _,
121-
_, _, Y, _, _,
122-
_, _, T, _, _,
123-
_, _, T, _, _,
124-
N, F, M, F, N,
125-
N, M, M, M, N,
126-
N, M, M, M, N,
127-
_, N, M, N, _,
134+
_, _, _, _, _, _, _,
135+
_, _, _, _, _, _, _,
136+
_, _, _, _, _, _, _,
137+
_, _, _, _, _, _, _,
138+
N, M, T, _, _, M, N,
139+
_, M, M, _, T, M, _,
140+
_, N, M, M, M, N, _,
141+
_, _, _, N, _, _, _,
128142

129-
_, _, _, _, _,
130-
_, _, _, _, _,
131-
_, _, _, _, _,
132-
_, _, _, _, _,
133-
N, U, F, T, N,
134-
N, M, M, M, N,
135-
N, M, M, M, N,
136-
_, N, N, N, _,
143+
_, _, _, T, _, _, _,
144+
_, _, _, Y, _, _, _,
145+
_, _, _, T, _, _, _,
146+
_, _, _, T, _, _, _,
147+
M, F, _, T, _, F, M,
148+
N, M, _, _, _, M, N,
149+
_, M, M, M, M, M, _,
150+
_, _, N, M, N, _, _,
137151

138-
_, _, _, _, _,
139-
_, _, _, _, _,
140-
_, _, _, _, _,
141-
_, _, _, _, _,
142-
L, N, N, N, L,
143-
L, N, N, N, L,
144-
L, N, N, N, L,
145-
_, _, _, _, _,
152+
_, _, _, _, _, _, _,
153+
_, _, _, _, _, _, _,
154+
_, _, _, _, _, _, _,
155+
_, _, _, _, _, _, _,
156+
N, M, _, _, T, M, N,
157+
_, M, T, _, M, M, _,
158+
_, N, M, M, M, N, _,
159+
_, _, _, N, _, _, _,
160+
161+
_, _, _, _, _, _, _,
162+
_, _, _, _, _, _, _,
163+
_, _, _, _, _, _, _,
164+
_, _, _, _, _, _, _,
165+
_, M, M, F, M, M, _,
166+
_, N, M, M, M, N, _,
167+
_, _, N, M, N, _, _,
168+
_, _, _, _, _, _, _,
169+
170+
_, _, _, _, _, _, _,
171+
_, _, _, _, _, _, _,
172+
_, _, _, _, _, _, _,
173+
_, _, _, _, _, _, _,
174+
_, _, N, M, N, _, _,
175+
_, _, _, N, _, _, _,
176+
_, _, _, _, _, _, _,
177+
_, _, _, _, _, _, _,
146178
},
147179
yslice_prob = {
148180
{ypos = 2, prob = 127},
149-
{ypos = 6, prob = 127},
150181
},
151182
})
152183

0 commit comments

Comments
 (0)