summaryrefslogtreecommitdiff
path: root/no_drowning.lua
diff options
context:
space:
mode:
authorBlockMen <nmuelll@web.de>2013-06-28 22:58:06 +0200
committerBlockMen <nmuelll@web.de>2013-06-28 22:58:06 +0200
commitd3e8f7134aacacca5c5980ff108f576f7b1f4bd0 (patch)
tree81e3bfb267201624e583323ec25844debb33b55b /no_drowning.lua
Initial commit
Diffstat (limited to 'no_drowning.lua')
-rw-r--r--no_drowning.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/no_drowning.lua b/no_drowning.lua
new file mode 100644
index 0000000..f7b3149
--- /dev/null
+++ b/no_drowning.lua
@@ -0,0 +1,15 @@
+local function drwn_overwrite(name)
+ local table = minetest.registered_nodes[name]
+ local table2 = {}
+ for i,v in pairs(table) do
+ table2[i] = v
+ end
+ table2.drowning = false
+ table2.hud_drowning = true
+ minetest.register_node(":"..name, table2)
+end
+
+drwn_overwrite("default:water_source")
+drwn_overwrite("default:water_flowing")
+drwn_overwrite("default:lava_source")
+drwn_overwrite("default:lava_flowing")