Skip to content

Commit

Permalink
Default: Allow papyrus growing on default:sand
Browse files Browse the repository at this point in the history
Mgv5/mgv7 papyrus schematic now has sand nodes as a base
Add sand beach to mgv5/mgv7 deserts
  • Loading branch information
paramat committed Aug 31, 2015
1 parent 908d8e5 commit 4d9b595
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions mods/default/functions.lua
Expand Up @@ -152,7 +152,8 @@ end
function default.grow_papyrus(pos, node)
pos.y = pos.y - 1
local name = minetest.get_node(pos).name
if name ~= "default:dirt_with_grass" and name ~= "default:dirt" then
if name ~= "default:dirt_with_grass" and name ~= "default:dirt" and
name ~= "default:sand" then
return
end
if not minetest.find_node_near(pos, 3, {"group:water"}) then
Expand Down Expand Up @@ -184,7 +185,7 @@ minetest.register_abm({

minetest.register_abm({
nodenames = {"default:papyrus"},
neighbors = {"default:dirt", "default:dirt_with_grass"},
neighbors = {"default:dirt", "default:dirt_with_grass", "default:sand"},

This comment has been minimized.

Copy link
@HybridDog

HybridDog Sep 2, 2015

Contributor

papyrus can grow on clay and sandy soil, l doubt that it is able to grow on pure sand
http://homeguides.sfgate.com/egyptian-papyrus-planting-tips-25849.html
How about using minetest.get_item_group(name, "soil")?

This comment has been minimized.

Copy link
@paramat

paramat Oct 27, 2015

Author Contributor

Yes agreed, this has now been changed back to how it was before.

interval = 50,
chance = 20,
action = function(...)
Expand Down
10 changes: 5 additions & 5 deletions mods/default/mapgen.lua
Expand Up @@ -578,7 +578,7 @@ function default.register_biomes()
--node_water_top = "",
--depth_water_top = ,
--node_water = "",
y_min = 1,
y_min = 5,
y_max = 31000,
heat_point = 95,
humidity_point = 10,
Expand All @@ -596,7 +596,7 @@ function default.register_biomes()
--depth_water_top = ,
--node_water = "",
y_min = -112,
y_max = 0,
y_max = 4,
heat_point = 95,
humidity_point = 10,
})
Expand Down Expand Up @@ -944,7 +944,7 @@ function default.register_decorations()
persist = 0.6
},
biomes = {"desert"},
y_min = 2,
y_min = 5,
y_max = 31000,
schematic = minetest.get_modpath("default").."/schematics/large_cactus.mts",
flags = "place_center_x",
Expand All @@ -966,11 +966,11 @@ function default.register_decorations()
persist = 0.6
},
biomes = {"desert"},
y_min = 2,
y_min = 5,
y_max = 31000,
decoration = "default:cactus",
height = 2,
height_max = 5,
height_max = 5,
})

-- Papyrus
Expand Down
Binary file modified mods/default/schematics/papyrus.mts
Binary file not shown.

0 comments on commit 4d9b595

Please sign in to comment.