fixed water abm for dry dirt, added 5.1 dry dirt node checks
This commit is contained in:
parent
a9b496f081
commit
65df8bbd7b
@ -17,6 +17,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6)
|
|||||||
- Bamboo grows in higher elevation while sakura grows in lower
|
- Bamboo grows in higher elevation while sakura grows in lower
|
||||||
- Added sakura wood, stairs, fence, gate and door
|
- Added sakura wood, stairs, fence, gate and door
|
||||||
- Added 5.0 checks to add new biomes and decorations
|
- 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
|
### 1.25
|
||||||
|
|
||||||
|
@ -108,14 +108,18 @@ minetest.register_abm({
|
|||||||
-- If Water Source near Dry Dirt, change to normal Dirt
|
-- If Water Source near Dry Dirt, change to normal Dirt
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
label = "Ethereal wet dry dirt",
|
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"},
|
neighbors = {"group:water"},
|
||||||
interval = 15,
|
interval = 15,
|
||||||
chance = 2,
|
chance = 2,
|
||||||
catch_up = false,
|
catch_up = false,
|
||||||
action = function(pos, node)
|
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"})
|
minetest.swap_node(pos, {name = "default:dirt"})
|
||||||
else
|
else
|
||||||
minetest.swap_node(pos, {name = "default:dirt_with_grass"})
|
minetest.swap_node(pos, {name = "default:dirt_with_grass"})
|
||||||
|
Loading…
Reference in New Issue
Block a user