mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-17 15:58:29 +01:00
added .gitignore for temp Kate files, added depends.txt for "default"
This commit is contained in:
parent
104bbf67dd
commit
274d4b78b0
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*~
|
2
depends.txt
Normal file
2
depends.txt
Normal file
@ -0,0 +1,2 @@
|
||||
default
|
||||
|
69
init.lua~
69
init.lua~
@ -1,69 +0,0 @@
|
||||
-- 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!")
|
Loading…
Reference in New Issue
Block a user