summaryrefslogtreecommitdiff
path: root/oldpipes.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-18 21:24:30 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-18 21:24:30 -0400
commit9e6f469cde39ea042a81598760cb4b14e725667f (patch)
treee36adea16d9b37a0f430ede4465033dd8c24c889 /oldpipes.lua
parent01e02574e4f3a571869ed655da3c3012a8647f6f (diff)
downloadpipeworks-9e6f469cde39ea042a81598760cb4b14e725667f.tar
pipeworks-9e6f469cde39ea042a81598760cb4b14e725667f.tar.gz
pipeworks-9e6f469cde39ea042a81598760cb4b14e725667f.tar.bz2
pipeworks-9e6f469cde39ea042a81598760cb4b14e725667f.tar.xz
pipeworks-9e6f469cde39ea042a81598760cb4b14e725667f.zip
Re-enabled old pipes by default. Only horizontal pipe appears in creative
inventory now (for both old and new), as well as "off" valve and "off" pump.
Diffstat (limited to 'oldpipes.lua')
-rw-r--r--oldpipes.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/oldpipes.lua b/oldpipes.lua
index 876fc24..585dc3d 100644
--- a/oldpipes.lua
+++ b/oldpipes.lua
@@ -308,6 +308,13 @@ end
-- Now define the actual nodes
for node in ipairs(nodenames) do
+
+ if node ~= 2 then
+ pgroups = {snappy=3, pipe=1, not_in_creative_inventory=1}
+ else
+ pgroups = {snappy=3, pipe=1}
+ end
+
minetest.register_node("pipeworks:"..nodenames[node], {
description = "Empty Pipe ("..descriptions[node]..")",
drawtype = "nodebox",
@@ -322,7 +329,7 @@ for node in ipairs(nodenames) do
type = "fixed",
fixed = nodeboxes[node]
},
- groups = {snappy=3, pipe=1},
+ groups = pgroups,
sounds = default.node_sound_wood_defaults(),
walkable = true,
stack_max = 99,
@@ -343,7 +350,7 @@ for node in ipairs(nodenames) do
type = "fixed",
fixed = nodeboxes[node]
},
- groups = {snappy=3, pipe=1},
+ groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
sounds = default.node_sound_wood_defaults(),
walkable = true,
stack_max = 99,