mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-05-14 22:50:23 +02:00
make it boot in non mtg
This commit is contained in:
parent
5618003be3
commit
70d478934d
@ -14,7 +14,7 @@ minetest.register_node("pipeworks:steel_block_embedded_tube", {
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, oddly_breakable_by_hand = 1, tubedevice = 1},
|
groups = {cracky=1, oddly_breakable_by_hand = 1, tubedevice = 1},
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
sounds = default.node_sound_stone_defaults(),
|
--sounds = default.node_sound_stone_defaults(),
|
||||||
tube = {
|
tube = {
|
||||||
connect_sides = {front = 1, back = 1,},
|
connect_sides = {front = 1, back = 1,},
|
||||||
priority = 50,
|
priority = 50,
|
||||||
@ -68,7 +68,7 @@ minetest.register_node("pipeworks:steel_pane_embedded_tube", {
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, oddly_breakable_by_hand = 1, tubedevice = 1},
|
groups = {cracky=1, oddly_breakable_by_hand = 1, tubedevice = 1},
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
sounds = default.node_sound_stone_defaults(),
|
--sounds = default.node_sound_stone_defaults(),
|
||||||
tube = {
|
tube = {
|
||||||
connect_sides = {front = 1, back = 1,},
|
connect_sides = {front = 1, back = 1,},
|
||||||
priority = 50,
|
priority = 50,
|
||||||
|
34
devices.lua
34
devices.lua
@ -148,7 +148,7 @@ for s in ipairs(states) do
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = dgroups,
|
groups = dgroups,
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
pipe_connections = { top = 1 },
|
pipe_connections = { top = 1 },
|
||||||
after_place_node = function(pos)
|
after_place_node = function(pos)
|
||||||
@ -170,7 +170,7 @@ for s in ipairs(states) do
|
|||||||
local fdir = node.param2
|
local fdir = node.param2
|
||||||
minetest.swap_node(pos, { name = "pipeworks:pump_"..states[3-s], param2 = fdir })
|
minetest.swap_node(pos, { name = "pipeworks:pump_"..states[3-s], param2 = fdir })
|
||||||
end,
|
end,
|
||||||
on_rotate = screwdriver.rotate_simple
|
on_rotate = screwdriver and screwdriver.rotate_simple or nil
|
||||||
})
|
})
|
||||||
|
|
||||||
-- FIXME: this currently assumes that pumps can only rotate around the fixed axis pointing Y+.
|
-- FIXME: this currently assumes that pumps can only rotate around the fixed axis pointing Y+.
|
||||||
@ -200,7 +200,7 @@ for s in ipairs(states) do
|
|||||||
fixed = { -5/16, -4/16, -8/16, 5/16, 5/16, 8/16 }
|
fixed = { -5/16, -4/16, -8/16, 5/16, 5/16, 8/16 }
|
||||||
},
|
},
|
||||||
groups = dgroups,
|
groups = dgroups,
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
on_place = pipeworks.rotate_on_place,
|
on_place = pipeworks.rotate_on_place,
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
@ -248,7 +248,7 @@ minetest.register_node(nodename_valve_loaded, {
|
|||||||
fixed = { -5/16, -4/16, -8/16, 5/16, 5/16, 8/16 }
|
fixed = { -5/16, -4/16, -8/16, 5/16, 5/16, 8/16 }
|
||||||
},
|
},
|
||||||
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
|
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
on_place = pipeworks.rotate_on_place,
|
on_place = pipeworks.rotate_on_place,
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
@ -298,7 +298,7 @@ minetest.register_node("pipeworks:grating", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=3, pipe=1},
|
groups = {snappy=3, pipe=1},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
pipe_connections = { top = 1 },
|
pipe_connections = { top = 1 },
|
||||||
after_place_node = function(pos)
|
after_place_node = function(pos)
|
||||||
@ -323,7 +323,7 @@ minetest.register_node(nodename_spigot_empty, {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1},
|
groups = {snappy=3, pipe=1},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
pipe_connections = { left=1, right=1, front=1, back=1,
|
pipe_connections = { left=1, right=1, front=1, back=1,
|
||||||
left_param2 = 3, right_param2 = 1, front_param2 = 2, back_param2 = 0 },
|
left_param2 = 3, right_param2 = 1, front_param2 = 2, back_param2 = 0 },
|
||||||
@ -366,7 +366,7 @@ minetest.register_node(nodename_spigot_loaded, {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
|
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
pipe_connections = { left=1, right=1, front=1, back=1,
|
pipe_connections = { left=1, right=1, front=1, back=1,
|
||||||
left_param2 = 3, right_param2 = 1, front_param2 = 2, back_param2 = 0 },
|
left_param2 = 3, right_param2 = 1, front_param2 = 2, back_param2 = 0 },
|
||||||
@ -422,7 +422,7 @@ minetest.register_node(nodename_panel_empty, {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1},
|
groups = {snappy=3, pipe=1},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
on_place = pipeworks.rotate_on_place,
|
on_place = pipeworks.rotate_on_place,
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
@ -442,7 +442,7 @@ minetest.register_node(nodename_panel_loaded, {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
|
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
on_place = pipeworks.rotate_on_place,
|
on_place = pipeworks.rotate_on_place,
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
@ -472,7 +472,7 @@ minetest.register_node(nodename_sensor_empty, {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1},
|
groups = {snappy=3, pipe=1},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
on_place = pipeworks.rotate_on_place,
|
on_place = pipeworks.rotate_on_place,
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
@ -511,7 +511,7 @@ minetest.register_node(nodename_sensor_loaded, {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
|
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
on_place = pipeworks.rotate_on_place,
|
on_place = pipeworks.rotate_on_place,
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
@ -578,7 +578,7 @@ for fill = 0, 10 do
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, tankfill=fill+1, not_in_creative_inventory=1},
|
groups = {snappy=3, pipe=1, tankfill=fill+1, not_in_creative_inventory=1},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
drop = "pipeworks:storage_tank_0",
|
drop = "pipeworks:storage_tank_0",
|
||||||
pipe_connections = { top = 1, bottom = 1},
|
pipe_connections = { top = 1, bottom = 1},
|
||||||
@ -606,7 +606,7 @@ for fill = 0, 10 do
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = sgroups,
|
groups = sgroups,
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
drop = "pipeworks:storage_tank_0",
|
drop = "pipeworks:storage_tank_0",
|
||||||
pipe_connections = { top = 1, bottom = 1},
|
pipe_connections = { top = 1, bottom = 1},
|
||||||
@ -633,7 +633,7 @@ minetest.register_node(nodename_fountain_empty, {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=3, pipe=1},
|
groups = {snappy=3, pipe=1},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
pipe_connections = { bottom = 1 },
|
pipe_connections = { bottom = 1 },
|
||||||
after_place_node = function(pos)
|
after_place_node = function(pos)
|
||||||
@ -668,7 +668,7 @@ minetest.register_node(nodename_fountain_loaded, {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
|
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
pipe_connections = { bottom = 1 },
|
pipe_connections = { bottom = 1 },
|
||||||
after_place_node = function(pos)
|
after_place_node = function(pos)
|
||||||
@ -718,7 +718,7 @@ minetest.register_node(nodename_sp_empty, {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1},
|
groups = {snappy=3, pipe=1},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
on_place = pipeworks.rotate_on_place,
|
on_place = pipeworks.rotate_on_place,
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
@ -740,7 +740,7 @@ minetest.register_node(nodename_sp_loaded, {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
|
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
on_place = pipeworks.rotate_on_place,
|
on_place = pipeworks.rotate_on_place,
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
|
@ -377,7 +377,7 @@ for _, data in ipairs({
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, mesecon = 2},
|
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, mesecon = 2},
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
--sounds = default.node_sound_wood_defaults(),
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
set_filter_formspec(data, meta)
|
set_filter_formspec(data, meta)
|
||||||
|
2
init.lua
2
init.lua
@ -137,7 +137,7 @@ dofile(pipeworks.modpath..logicdir.."flowable_node_registry_install.lua")
|
|||||||
if pipeworks.enable_pipes then dofile(pipeworks.modpath.."/pipes.lua") end
|
if pipeworks.enable_pipes then dofile(pipeworks.modpath.."/pipes.lua") end
|
||||||
if pipeworks.enable_teleport_tube then dofile(pipeworks.modpath.."/teleport_tube.lua") end
|
if pipeworks.enable_teleport_tube then dofile(pipeworks.modpath.."/teleport_tube.lua") end
|
||||||
if pipeworks.enable_pipe_devices then dofile(pipeworks.modpath.."/devices.lua") end
|
if pipeworks.enable_pipe_devices then dofile(pipeworks.modpath.."/devices.lua") end
|
||||||
if pipeworks.enable_redefines then
|
if pipeworks.enable_redefines and minetest.get_modpath("default") then
|
||||||
dofile(pipeworks.modpath.."/compat-chests.lua")
|
dofile(pipeworks.modpath.."/compat-chests.lua")
|
||||||
dofile(pipeworks.modpath.."/compat-furnaces.lua")
|
dofile(pipeworks.modpath.."/compat-furnaces.lua")
|
||||||
end
|
end
|
||||||
|
5
mod.conf
5
mod.conf
@ -1,5 +1,6 @@
|
|||||||
name = pipeworks
|
name = pipeworks
|
||||||
description = This mod uses mesh nodes and nodeboxes to supply a complete set of 3D pipes and tubes, along with devices that work with them.
|
description = This mod uses mesh nodes and nodeboxes to supply a complete set of 3D pipes and tubes, along with devices that work with them.
|
||||||
depends = default, basic_materials, screwdriver
|
#depends = default, basic_materials, screwdriver
|
||||||
optional_depends = mesecons, mesecons_mvps, digilines, signs_lib, unified_inventory
|
depends = basic_materials
|
||||||
|
optional_depends = mesecons, mesecons_mvps, digilines, signs_lib, unified_inventory, default, screwdriver
|
||||||
min_minetest_version = 5.2.0
|
min_minetest_version = 5.2.0
|
||||||
|
@ -76,7 +76,7 @@ for index, connects in ipairs(cconnects) do
|
|||||||
fixed = outsel
|
fixed = outsel
|
||||||
},
|
},
|
||||||
groups = pgroups,
|
groups = pgroups,
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
drop = "pipeworks:pipe_1_empty",
|
drop = "pipeworks:pipe_1_empty",
|
||||||
after_place_node = function(pos)
|
after_place_node = function(pos)
|
||||||
@ -110,7 +110,7 @@ for index, connects in ipairs(cconnects) do
|
|||||||
fixed = outsel
|
fixed = outsel
|
||||||
},
|
},
|
||||||
groups = pgroups,
|
groups = pgroups,
|
||||||
sounds = default.node_sound_metal_defaults(),
|
--sounds = default.node_sound_metal_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
drop = "pipeworks:pipe_1_empty",
|
drop = "pipeworks:pipe_1_empty",
|
||||||
after_place_node = function(pos)
|
after_place_node = function(pos)
|
||||||
|
@ -178,7 +178,7 @@ if pipeworks.enable_one_way_tube then
|
|||||||
node_box = {type = "fixed",
|
node_box = {type = "fixed",
|
||||||
fixed = {{-1/2, -9/64, -9/64, 1/2, 9/64, 9/64}}},
|
fixed = {{-1/2, -9/64, -9/64, 1/2, 9/64, 9/64}}},
|
||||||
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, tubedevice = 1},
|
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, tubedevice = 1},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
--sounds = default.node_sound_wood_defaults(),
|
||||||
tube = {
|
tube = {
|
||||||
connect_sides = {left = 1, right = 1},
|
connect_sides = {left = 1, right = 1},
|
||||||
can_go = function(pos, node, velocity, stack)
|
can_go = function(pos, node, velocity, stack)
|
||||||
|
@ -102,7 +102,7 @@ local register_one_tube = function(name, tname, dropname, desc, plain, noctrs, e
|
|||||||
fixed = outboxes
|
fixed = outboxes
|
||||||
},
|
},
|
||||||
groups = tgroups,
|
groups = tgroups,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
--sounds = default.node_sound_wood_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
stack_max = 99,
|
stack_max = 99,
|
||||||
basename = name,
|
basename = name,
|
||||||
|
@ -184,7 +184,7 @@ local function register_wielder(data)
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
tubelike = 1,
|
tubelike = 1,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
sounds = default.node_sound_stone_defaults(),
|
--sounds = default.node_sound_stone_defaults(),
|
||||||
drop = data.name_base.."_off",
|
drop = data.name_base.."_off",
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user