Default/functions: ABM for mossycobble replacing cobble next to water

This commit is contained in:
paramat 2015-10-22 18:54:18 +01:00
parent f3dc78204c
commit 2729777b94
1 changed files with 21 additions and 1 deletions

View File

@ -306,7 +306,7 @@ minetest.register_abm({
--
-- Grass growing
-- Grass growing on well-lit dirt
--
minetest.register_abm({
@ -329,6 +329,11 @@ minetest.register_abm({
end
})
--
-- Grass and dry grass removed in darkness
--
minetest.register_abm({
nodenames = {"default:dirt_with_grass", "default:dirt_with_dry_grass"},
interval = 2,
@ -345,3 +350,18 @@ minetest.register_abm({
end
})
--
-- Moss growth on cobble near water
--
minetest.register_abm({
nodenames = {"default:cobble"},
neighbors = {"group:water"},
interval = 17,
chance = 200,
catch_up = false,
action = function(pos, node)
minetest.set_node(pos, {name = "default:mossycobble"})
end
})