Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
3 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
paramat
Author
Contributor
|
||
interval = 50, | ||
chance = 20, | ||
action = function(...) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
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")?