diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-12-10 15:25:28 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-12-10 15:25:28 +0000 |
commit | 5d7ec17e63bb34eb9717fb2146be39301b0af523 (patch) | |
tree | f93b005f748ea30cc6726d3c7a2fc1f18b128930 | |
parent | 31f2fd185e999aa017f17986edc4611294a7cf02 (diff) |
tweak torch water drop
-rw-r--r-- | crystal.lua | 2 | ||||
-rw-r--r-- | water.lua | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/crystal.lua b/crystal.lua index 56afe08..e90ae40 100644 --- a/crystal.lua +++ b/crystal.lua @@ -206,7 +206,7 @@ minetest.register_tool("ethereal:shovel_crystal", { itemstack:add_wear(65535 / 100) -- 111 uses end - minetest.sound_play("default_dig_crumbly", {pos = pos, gain = 0.35}) + minetest.sound_play("default_dig_crumbly", {pos = pos, gain = 0.4}) return itemstack end @@ -127,7 +127,7 @@ if ethereal.torchdrop == true then minetest.register_abm({ label = "Ethereal drop torch", - nodenames = {"default:torch", "group:torch"}, -- group:torch for new 3d torches + nodenames = {"default:torch", "default:torch_wall", "default:torch_ceiling"}, neighbors = {"group:water"}, interval = 5, chance = 1, @@ -138,20 +138,21 @@ minetest.register_abm({ {x = pos.x - 1, y = pos.y, z = pos.z}, {x = pos.x + 1, y = pos.y, z = pos.z}, {"group:water"}) - +if num == 0 then num = num + #minetest.find_nodes_in_area( {x = pos.x, y = pos.y, z = pos.z - 1}, {x = pos.x, y = pos.y, z = pos.z + 1}, {"group:water"}) - +end +if num == 0 then num = num + #minetest.find_nodes_in_area( {x = pos.x, y = pos.y + 1, z = pos.z}, {x = pos.x, y = pos.y + 1, z = pos.z}, {"group:water"}) - +end if num > 0 then - minetest.swap_node(pos, {name = "air"}) + minetest.set_node(pos, {name = "air"}) minetest.add_item(pos, {name = "default:torch"}) end |