diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-01-18 09:39:55 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-01-18 09:39:55 +0000 |
commit | cfd05614600967dd4bc6a75d0ea1520f97790348 (patch) | |
tree | 67d727b1122de86a21cae18e7b86c7ebc6700b3b | |
parent | 066cad6e251dd4deeabd41b1791520b61f43ba70 (diff) |
added sand deco
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | init.lua | 10 |
2 files changed, 8 insertions, 4 deletions
@@ -11,7 +11,7 @@ The api.txt document shows how to add your own saplings, crops and grasses to the list by using one of the 3 commands included and the mod.lua file gives you many examples by using some of the popular mods available. -https://forum.minetest.net/viewtopic.php?f=9&t=13284 +https://forum.minetest.net/viewtopic.php?f=9&t=16446 Changelog: @@ -196,7 +196,10 @@ local flowers = { -- default biomes deco
local deco = {
- {"default:dirt_with_dry_grass", dry_grass, flowers}
+ {"default:dirt_with_dry_grass", dry_grass, flowers},
+ {"default:sand", {}, {"default:dry_shrub", "air", "air"} },
+ {"default:desert_sand", {}, {"default:dry_shrub", "air", "air"} },
+ {"default:silver_sand", {}, {"default:dry_shrub", "air", "air"} },
}
-- add grass and flower/plant decoration for specific dirt types
@@ -215,7 +218,7 @@ local function check_soil(pos, nodename) local dirt = minetest.find_nodes_in_area_under_air(
{x = pos.x - 2, y = pos.y - 1, z = pos.z - 2},
{x = pos.x + 2, y = pos.y + 1, z = pos.z + 2},
- {"group:soil"})
+ {"group:soil", "group:sand"})
-- set default grass and decoration
local grass = green_grass
@@ -297,7 +300,8 @@ minetest.register_craftitem("bonemeal:bonemeal", { check_crops(pos, node.name)
-- grow grass and flowers
- if minetest.get_item_group(node.name, "soil") > 0 then
+ if minetest.get_item_group(node.name, "soil") > 0
+ or minetest.get_item_group(node.name, "sand") > 0 then
check_soil(pos, node.name)
end
|