fixed water abm for dry dirt, added 5.1 dry dirt node checks

This commit is contained in:
TenPlus1 2019-10-09 14:40:29 +01:00
parent a9b496f081
commit 65df8bbd7b
2 changed files with 7 additions and 2 deletions

View File

@ -17,6 +17,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6)
- Bamboo grows in higher elevation while sakura grows in lower
- Added sakura wood, stairs, fence, gate and door
- Added 5.0 checks to add new biomes and decorations
- Fixed water abm for dry dirt and added check for minetest 5.1 dry dirt also
### 1.25

View File

@ -108,14 +108,18 @@ minetest.register_abm({
-- If Water Source near Dry Dirt, change to normal Dirt
minetest.register_abm({
label = "Ethereal wet dry dirt",
nodenames = {"ethereal:dry_dirt", "default:dirt_with_dry_grass"},
nodenames = {
"ethereal:dry_dirt", "default:dirt_with_dry_grass",
"default:dry_dirt", "default:dry_dirt_with_dry_grass"
},
neighbors = {"group:water"},
interval = 15,
chance = 2,
catch_up = false,
action = function(pos, node)
if node == "ethereal:dry_dirt" then
if node.name == "ethereal:dry_dirt"
or node.name == "default:dry_dirt" then
minetest.swap_node(pos, {name = "default:dirt"})
else
minetest.swap_node(pos, {name = "default:dirt_with_grass"})