summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra.lua8
-rw-r--r--water.lua10
2 files changed, 9 insertions, 9 deletions
diff --git a/extra.lua b/extra.lua
index c176864..9f118a5 100644
--- a/extra.lua
+++ b/extra.lua
@@ -283,7 +283,7 @@ minetest.register_tool("ethereal:light_staff", {
if node then node = node.name else return end
if node == "default:stone" then
- minetest.add_node(pos, {name="ethereal:glostone"})
+ minetest.set_node(pos, {name="ethereal:glostone"})
if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535 / 149) -- 150 uses
end
@@ -312,11 +312,11 @@ minetest.register_on_generated(function(minp, maxp)
bpos = {x = pos.x, y = pos.y + 1, z = pos.z }
if minetest.get_node(bpos).name == "air" then
if bpos.y > -3000 and bpos.y < -2000 then
- minetest.add_node(bpos, {name = "ethereal:illumishroom3"})
+ minetest.set_node(bpos, {name = "ethereal:illumishroom3"})
elseif bpos.y > -2000 and bpos.y < -1000 then
- minetest.add_node(bpos, {name = "ethereal:illumishroom2"})
+ minetest.set_node(bpos, {name = "ethereal:illumishroom2"})
elseif bpos.y > -1000 and bpos.y < -30 then
- minetest.add_node(bpos, {name = "ethereal:illumishroom"})
+ minetest.set_node(bpos, {name = "ethereal:illumishroom"})
end
end
end
diff --git a/water.lua b/water.lua
index 10312e7..aff3a56 100644
--- a/water.lua
+++ b/water.lua
@@ -46,7 +46,7 @@ minetest.register_abm({
interval = 30,
chance = 10,
action = function(pos, node)
- minetest.add_node(pos, {name = "default:mossycobble"})
+ minetest.set_node(pos, {name = "default:mossycobble"})
end
})
@@ -87,11 +87,11 @@ minetest.register_abm({
or node.name == "default:snowblock"
or node.name == "ethereal:icebrick"
or node.name == "ethereal:snowbrick" then
- minetest.add_node(pos, {name = "default:water_source"})
+ minetest.set_node(pos, {name = "default:water_source"})
elseif node.name == "default:snow" then
- minetest.add_node(pos, {name = "default:water_flowing"})
+ minetest.set_node(pos, {name = "default:water_flowing"})
elseif node.name == "default:dirt_with_snow" then
- minetest.add_node(pos, {name = "default:dirt_with_grass"})
+ minetest.set_node(pos, {name = "default:dirt_with_grass"})
end
nodeupdate(pos)
end,
@@ -104,7 +104,7 @@ minetest.register_abm({
interval = 15,
chance = 2,
action = function(pos, node, active_object_count, active_object_count_wider)
- minetest.add_node(pos, {name = "default:dirt"})
+ minetest.set_node(pos, {name = "default:dirt"})
end,
})