summaryrefslogtreecommitdiff
path: root/water.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-12-01 09:41:23 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2016-12-01 09:41:23 +0000
commit8309e6a777b15a5f9b324c93ff9d89045ebc0eb5 (patch)
tree97b84df63337c7e224ac351f5a097a4b616dc84e /water.lua
parent06495be4a079c780f2be6f5099475852913fb0ef (diff)
code tweaks and additions (thanks RQWorldblender)
Diffstat (limited to 'water.lua')
-rw-r--r--water.lua15
1 files changed, 10 insertions, 5 deletions
diff --git a/water.lua b/water.lua
index c62bfeb..f5a6e24 100644
--- a/water.lua
+++ b/water.lua
@@ -29,8 +29,9 @@ minetest.register_node("ethereal:snowbrick", {
is_ground_content = false,
groups = {crumbly = 3, melts = 1},
sounds = default.node_sound_dirt_defaults({
- footstep = {name="default_snow_footstep", gain = 0.25},
- dug = {name="default_snow_footstep", gain = 0.75},
+ footstep = {name = "default_snow_footstep", gain = 0.15},
+ dug = {name = "default_snow_footstep", gain = 0.2},
+ dig = {name = "default_snow_footstep", gain = 0.2},
}),
})
@@ -121,10 +122,12 @@ minetest.register_abm({
end,
})
--- If torch touching water then drop as item
+-- If torch touching water then drop as item (when enabled)
+if ethereal.torchdrop == true then
+
minetest.register_abm({
label = "Ethereal drop torch",
- nodenames = {"default:torch"},
+ nodenames = {"default:torch", "group:torch"}, -- group:torch for new 3d torches
neighbors = {"group:water"},
interval = 5,
chance = 1,
@@ -150,7 +153,9 @@ minetest.register_abm({
minetest.swap_node(pos, {name = "air"})
- minetest.add_item(pos, {name = node.name})
+ minetest.add_item(pos, {name = "default:torch"})
end
end,
})
+
+end