summaryrefslogtreecommitdiff
path: root/init.lua~
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-07-12 17:52:35 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-07-12 17:52:35 -0400
commit104bbf67dd0cf73df45d9be9b773c6446fdcc8a5 (patch)
treed923917f385967e6c46deb935b7d044d4d2bfc56 /init.lua~
downloadpipeworks-104bbf67dd0cf73df45d9be9b773c6446fdcc8a5.tar
pipeworks-104bbf67dd0cf73df45d9be9b773c6446fdcc8a5.tar.gz
pipeworks-104bbf67dd0cf73df45d9be9b773c6446fdcc8a5.tar.bz2
pipeworks-104bbf67dd0cf73df45d9be9b773c6446fdcc8a5.tar.xz
pipeworks-104bbf67dd0cf73df45d9be9b773c6446fdcc8a5.zip
first commit
Diffstat (limited to 'init.lua~')
-rw-r--r--init.lua~69
1 files changed, 69 insertions, 0 deletions
diff --git a/init.lua~ b/init.lua~
new file mode 100644
index 0000000..a101686
--- /dev/null
+++ b/init.lua~
@@ -0,0 +1,69 @@
+-- Pipes mod by VanessaE
+-- 2012-06-12
+--
+
+-- Entirely my own code. This mod merely supplies enough nodes to build
+-- a bunch of pipes in all directions and with all types of junctions.
+--
+-- License: WTFPL
+--
+
+local DEBUG = 1
+
+-- Local Functions
+
+local dbg = function(s)
+ if DEBUG == 1 then
+ print('[PIPES] ' .. s)
+ end
+end
+
+-- Nodes
+
+minetest.register_node("pipes:vertical", {
+ description = "Pipe (vertical)",
+ drawtype = "nodebox",
+ tile_images = {"pipes_pipe_side_empty.png"},
+ paramtype = "light",
+-- paramtype2 = "facedir",
+ selection_box = {
+ type = "fixed",
+ fixed = { -0.15, -0.5, -0.15, 0.15, 0.5, 0.15 },
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {
+ { -0.15, -0.5 , -0.15, 0.15, -0.45, 0.15 },
+ { -0.1 , -0.45, -0.1 , 0.1 , 0.45, 0.1 },
+ { -0.15, 0.45, -0.15, 0.15, 0.5 , 0.15 },
+ }
+ },
+ groups = {snappy=3},
+ sounds = default.node_sound_wood_defaults(),
+ walkable = true,
+})
+
+minetest.register_node("pipes:horizontal", {
+ description = "Pipe (horizontal)",
+ drawtype = "nodebox",
+ tile_images = {"pipes_pipe_side_empty.png"},
+ paramtype = "light",
+ paramtype2 = "facedir",
+ selection_box = {
+ type = "fixed",
+ fixed = { -0.5, -0.15, -0.15, 0.5, 0.15, 0.15 },
+ },
+ node_box = {
+ type = "fixed",
+ fixed = {
+ { -0.5 , -0.15, -0.15, -0.45, 0.15, 0.15 },
+ { -0.45, -0.1 , -0.1 , 0.45, 0.1 , 0.1 },
+ { 0.45, -0.15, -0.15, 0.5 , 0.15, 0.15 },
+ }
+ },
+ groups = {snappy=3},
+ sounds = default.node_sound_wood_defaults(),
+ walkable = true,
+})
+
+print("[Pipes] Loaded!")