summaryrefslogtreecommitdiff
path: root/dirt.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-03-01 09:58:46 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2017-03-01 09:58:46 +0000
commit66525a91a29b798c7ac707b3cf9c8d82a7b238b0 (patch)
tree70b3b30d0f01f0213c7d46b969ea6cd02da68c00 /dirt.lua
parenteca5b6e13c6b08bed05919425ed5a435f462b5f1 (diff)
Added support for "default:dirt_with_rainforest_litter"
Diffstat (limited to 'dirt.lua')
-rw-r--r--dirt.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/dirt.lua b/dirt.lua
index e99f13a..08d9c4b 100644
--- a/dirt.lua
+++ b/dirt.lua
@@ -80,7 +80,8 @@ dirts = {
"ethereal:prairie_dirt", "ethereal:cold_dirt", "ethereal:crystal_dirt",
"ethereal:mushroom_dirt", "ethereal:fiery_dirt", "ethereal:gray_dirt",
"default:dirt_with_grass", "default:dirt_with_dry_grass", "ethereal:green_dirt",
- "default:dirt_with_snow", "default:dirt_with_dry_grass"
+ "default:dirt_with_snow", "default:dirt_with_dry_grass",
+ "default:dirt_with_rainforest_litter"
}
-- check surrounding grass and change dirt to same colour
@@ -107,8 +108,9 @@ local grass_spread = function(pos, node)
local positions, grasses = minetest.find_nodes_in_area(
{x = pos.x - 1, y = pos.y - 2, z = pos.z - 1},
{x = pos.x + 1, y = pos.y + 2, z = pos.z + 1},
- {"group:ethereal_grass", "default:dirt_with_grass",
- "default:dirt_with_dry_grass", "default:dirt_with_snow"})
+-- {"group:ethereal_grass", "default:dirt_with_grass",
+-- "default:dirt_with_dry_grass", "default:dirt_with_snow"})
+ dirts)
-- count new grass nodes
for n = 1, #dirts do
@@ -159,7 +161,7 @@ local flower_spread = function(pos, node)
local pos0 = {x = pos.x - 4, y = pos.y - 2, z = pos.z - 4}
local pos1 = {x = pos.x + 4, y = pos.y + 2, z = pos.z + 4}
- local num = #minetest.find_nodes_in_area_under_air(pos0, pos1, "group:flora")
+ local num = #minetest.find_nodes_in_area(pos0, pos1, "group:flora")
-- stop flowers spreading too much just below top of map block
if minetest.find_node_near(pos, 2, "ignore") then