Skip to content

Commit 4d9b595

Browse files
committedAug 31, 2015
Default: Allow papyrus growing on default:sand
Mgv5/mgv7 papyrus schematic now has sand nodes as a base Add sand beach to mgv5/mgv7 deserts
1 parent 908d8e5 commit 4d9b595

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed
 

Diff for: ‎mods/default/functions.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ end
152152
function default.grow_papyrus(pos, node)
153153
pos.y = pos.y - 1
154154
local name = minetest.get_node(pos).name
155-
if name ~= "default:dirt_with_grass" and name ~= "default:dirt" then
155+
if name ~= "default:dirt_with_grass" and name ~= "default:dirt" and
156+
name ~= "default:sand" then
156157
return
157158
end
158159
if not minetest.find_node_near(pos, 3, {"group:water"}) then
@@ -184,7 +185,7 @@ minetest.register_abm({
184185

185186
minetest.register_abm({
186187
nodenames = {"default:papyrus"},
187-
neighbors = {"default:dirt", "default:dirt_with_grass"},
188+
neighbors = {"default:dirt", "default:dirt_with_grass", "default:sand"},
Has conversations. Original line has conversations.
188189
interval = 50,
189190
chance = 20,
190191
action = function(...)

Diff for: ‎mods/default/mapgen.lua

+5-5
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ function default.register_biomes()
578578
--node_water_top = "",
579579
--depth_water_top = ,
580580
--node_water = "",
581-
y_min = 1,
581+
y_min = 5,
582582
y_max = 31000,
583583
heat_point = 95,
584584
humidity_point = 10,
@@ -596,7 +596,7 @@ function default.register_biomes()
596596
--depth_water_top = ,
597597
--node_water = "",
598598
y_min = -112,
599-
y_max = 0,
599+
y_max = 4,
600600
heat_point = 95,
601601
humidity_point = 10,
602602
})
@@ -944,7 +944,7 @@ function default.register_decorations()
944944
persist = 0.6
945945
},
946946
biomes = {"desert"},
947-
y_min = 2,
947+
y_min = 5,
948948
y_max = 31000,
949949
schematic = minetest.get_modpath("default").."/schematics/large_cactus.mts",
950950
flags = "place_center_x",
@@ -966,11 +966,11 @@ function default.register_decorations()
966966
persist = 0.6
967967
},
968968
biomes = {"desert"},
969-
y_min = 2,
969+
y_min = 5,
970970
y_max = 31000,
971971
decoration = "default:cactus",
972972
height = 2,
973-
height_max = 5,
973+
height_max = 5,
974974
})
975975

976976
-- Papyrus

Diff for: ‎mods/default/schematics/papyrus.mts

-26 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.