mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-29 00:57:29 +01:00
Mineclone dig times balanced (#84)
* mineclone dig times balanced * fix pickaxey dupe
This commit is contained in:
parent
7f93e8aa0a
commit
cb3e7757fc
@ -289,8 +289,8 @@ minetest.register_node("pipeworks:autocrafter", {
|
|||||||
description = S("Autocrafter"),
|
description = S("Autocrafter"),
|
||||||
drawtype = "normal",
|
drawtype = "normal",
|
||||||
tiles = {"pipeworks_autocrafter.png"},
|
tiles = {"pipeworks_autocrafter.png"},
|
||||||
groups = {snappy = 3, tubedevice = 1, tubedevice_receiver = 1, dig_generic = 1, axey=5},
|
groups = {snappy = 3, tubedevice = 1, tubedevice_receiver = 1, dig_generic = 1, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
tube = {insert_object = function(pos, node, stack, direction)
|
tube = {insert_object = function(pos, node, stack, direction)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
|
@ -14,8 +14,8 @@ minetest.register_node("pipeworks:steel_block_embedded_tube", {
|
|||||||
},
|
},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, oddly_breakable_by_hand = 1, tubedevice = 1, dig_glass = 2, pickaxey=5},
|
groups = {cracky=1, oddly_breakable_by_hand = 1, tubedevice = 1, dig_glass = 2, pickaxey=1, handy=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_stone_defaults",
|
key = "node_sound_stone_defaults",
|
||||||
@ -63,8 +63,8 @@ minetest.register_node("pipeworks:steel_pane_embedded_tube", {
|
|||||||
collision_box = pane_box,
|
collision_box = pane_box,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=1, oddly_breakable_by_hand = 1, tubedevice = 1, dig_glass = 2, pickaxey=5},
|
groups = {cracky=1, oddly_breakable_by_hand = 1, tubedevice = 1, dig_glass = 2, pickaxey=1, handy=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_stone_defaults",
|
key = "node_sound_stone_defaults",
|
||||||
|
66
devices.lua
66
devices.lua
@ -133,9 +133,9 @@ for s in ipairs(states) do
|
|||||||
|
|
||||||
local dgroups
|
local dgroups
|
||||||
if states[s] == "off" then
|
if states[s] == "off" then
|
||||||
dgroups = {snappy=3, pipe=1, dig_generic = 4, axey=5}
|
dgroups = {snappy=3, pipe=1, dig_generic = 4, axey=1, handy=1, pickaxey=1}
|
||||||
else
|
else
|
||||||
dgroups = {snappy=3, pipe=1, not_in_creative_inventory=1, dig_generic = 4, axey=5}
|
dgroups = {snappy=3, pipe=1, not_in_creative_inventory=1, dig_generic = 4, axey=1, handy=1, pickaxey=1}
|
||||||
end
|
end
|
||||||
|
|
||||||
local pumpname = "pipeworks:pump_"..states[s]
|
local pumpname = "pipeworks:pump_"..states[s]
|
||||||
@ -148,7 +148,7 @@ for s in ipairs(states) do
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = dgroups,
|
groups = dgroups,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -203,7 +203,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,
|
||||||
_mcl_hardness = 1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -253,8 +253,8 @@ minetest.register_node(nodename_valve_loaded, {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
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, dig_generic = 4, axey=5},
|
groups = {snappy=3, pipe=1, not_in_creative_inventory=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -306,8 +306,8 @@ minetest.register_node("pipeworks:grating", {
|
|||||||
},
|
},
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=3, pipe=1, dig_generic = 4, axey=5},
|
groups = {snappy=3, pipe=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -334,8 +334,8 @@ minetest.register_node(nodename_spigot_empty, {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, dig_generic = 4, axey=5},
|
groups = {snappy=3, pipe=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -372,8 +372,8 @@ minetest.register_node(nodename_spigot_loaded, {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, not_in_creative_inventory=1, dig_generic = 4, axey=5},
|
groups = {snappy=3, pipe=1, not_in_creative_inventory=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -431,8 +431,8 @@ minetest.register_node(nodename_panel_empty, {
|
|||||||
tiles = { "pipeworks_entry_panel.png" },
|
tiles = { "pipeworks_entry_panel.png" },
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, dig_generic = 4, axey=5},
|
groups = {snappy=3, pipe=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -454,8 +454,8 @@ minetest.register_node(nodename_panel_loaded, {
|
|||||||
tiles = { "pipeworks_entry_panel.png" },
|
tiles = { "pipeworks_entry_panel.png" },
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, not_in_creative_inventory=1, dig_generic = 4, axey=5},
|
groups = {snappy=3, pipe=1, not_in_creative_inventory=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -487,8 +487,8 @@ minetest.register_node(nodename_sensor_empty, {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, dig_generic = 4, axey=5},
|
groups = {snappy=3, pipe=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -529,8 +529,8 @@ minetest.register_node(nodename_sensor_loaded, {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, not_in_creative_inventory=1, dig_generic = 4, axey=5},
|
groups = {snappy=3, pipe=1, not_in_creative_inventory=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -577,12 +577,12 @@ new_flow_logic_register.transition_simple_set(sensor_pressure_set, { mesecons=pi
|
|||||||
-- TODO flow-logic-stub: these don't currently do anything under the new flow logic.
|
-- TODO flow-logic-stub: these don't currently do anything under the new flow logic.
|
||||||
for fill = 0, 10 do
|
for fill = 0, 10 do
|
||||||
local filldesc=S("empty")
|
local filldesc=S("empty")
|
||||||
local sgroups = {snappy=3, pipe=1, tankfill=fill+1, dig_generic = 4, axey=5}
|
local sgroups = {snappy=3, pipe=1, tankfill=fill+1, dig_generic = 4, axey=1, handy=1, pickaxey=1}
|
||||||
local image = nil
|
local image = nil
|
||||||
|
|
||||||
if fill ~= 0 then
|
if fill ~= 0 then
|
||||||
filldesc=S("@1% full", 10*fill)
|
filldesc=S("@1% full", 10*fill)
|
||||||
sgroups = {snappy=3, pipe=1, tankfill=fill+1, not_in_creative_inventory=1, dig_generic = 4, axey=5}
|
sgroups = {snappy=3, pipe=1, tankfill=fill+1, not_in_creative_inventory=1, dig_generic = 4, axey=1, handy=1, pickaxey=1}
|
||||||
image = "pipeworks_storage_tank_fittings.png"
|
image = "pipeworks_storage_tank_fittings.png"
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -599,8 +599,8 @@ for fill = 0, 10 do
|
|||||||
inventory_image = image,
|
inventory_image = image,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, tankfill=fill+1, not_in_creative_inventory=1, dig_generic = 4, axey=5},
|
groups = {snappy=3, pipe=1, tankfill=fill+1, not_in_creative_inventory=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -631,7 +631,7 @@ for fill = 0, 10 do
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = sgroups,
|
groups = sgroups,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -660,8 +660,8 @@ minetest.register_node(nodename_fountain_empty, {
|
|||||||
tiles = { "pipeworks_fountainhead.png" },
|
tiles = { "pipeworks_fountainhead.png" },
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=3, pipe=1, dig_generic = 4, axey=5},
|
groups = {snappy=3, pipe=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -698,8 +698,8 @@ minetest.register_node(nodename_fountain_loaded, {
|
|||||||
tiles = { "pipeworks_fountainhead.png" },
|
tiles = { "pipeworks_fountainhead.png" },
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy=3, pipe=1, not_in_creative_inventory=1, dig_generic = 4, axey=5},
|
groups = {snappy=3, pipe=1, not_in_creative_inventory=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -751,8 +751,8 @@ minetest.register_node(nodename_sp_empty, {
|
|||||||
tiles = { "pipeworks_straight_pipe_empty.png" },
|
tiles = { "pipeworks_straight_pipe_empty.png" },
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, dig_generic = 4, axey=5},
|
groups = {snappy=3, pipe=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -776,8 +776,8 @@ minetest.register_node(nodename_sp_loaded, {
|
|||||||
tiles = { "pipeworks_straight_pipe_loaded.png" },
|
tiles = { "pipeworks_straight_pipe_loaded.png" },
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=3, pipe=1, not_in_creative_inventory=1, dig_generic = 4, axey=5},
|
groups = {snappy=3, pipe=1, not_in_creative_inventory=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
|
@ -388,8 +388,8 @@ for _, data in ipairs({
|
|||||||
"pipeworks_"..data.name.."_top.png",
|
"pipeworks_"..data.name.."_top.png",
|
||||||
},
|
},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, mesecon = 2, axey=5},
|
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, mesecon = 2, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_wood_defaults",
|
key = "node_sound_wood_defaults",
|
||||||
|
@ -26,8 +26,8 @@ if not minetest.get_modpath("auto_tree_tap") and
|
|||||||
"pipeworks_nodebreaker_back.png","pipeworks_nodebreaker_front_off.png"},
|
"pipeworks_nodebreaker_back.png","pipeworks_nodebreaker_front_off.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 2,tubedevice=1, not_in_creative_inventory=1, axey=5},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 2,tubedevice=1, not_in_creative_inventory=1, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_stone_defaults",
|
key = "node_sound_stone_defaults",
|
||||||
},
|
},
|
||||||
|
@ -865,7 +865,7 @@ for white = 0, 1 do
|
|||||||
tiles[3] = tiles[3]..tiles_on_off.R270:format(white == 1 and "on" or "off");
|
tiles[3] = tiles[3]..tiles_on_off.R270:format(white == 1 and "on" or "off");
|
||||||
tiles[4] = tiles[4]..tiles_on_off.R_90:format(white == 1 and "on" or "off");
|
tiles[4] = tiles[4]..tiles_on_off.R_90:format(white == 1 and "on" or "off");
|
||||||
|
|
||||||
local groups = {snappy = 3, tube = 1, tubedevice = 1, overheat = 1, dig_generic = 4, axey=5}
|
local groups = {snappy = 3, tube = 1, tubedevice = 1, overheat = 1, dig_generic = 4, axey=1, handy=1, pickaxey=1}
|
||||||
if red + blue + yellow + green + black + white ~= 0 then
|
if red + blue + yellow + green + black + white ~= 0 then
|
||||||
groups.not_in_creative_inventory = 1
|
groups.not_in_creative_inventory = 1
|
||||||
end
|
end
|
||||||
@ -912,7 +912,7 @@ for white = 0, 1 do
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
drop = BASENAME.."000000",
|
drop = BASENAME.."000000",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
selection_box = selection_box,
|
selection_box = selection_box,
|
||||||
@ -1024,8 +1024,8 @@ minetest.register_node(BASENAME .. "_burnt", {
|
|||||||
is_burnt = true,
|
is_burnt = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {snappy = 3, tube = 1, tubedevice = 1, not_in_creative_inventory=1, dig_generic = 4, axey=5},
|
groups = {snappy = 3, tube = 1, tubedevice = 1, not_in_creative_inventory=1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
drop = BASENAME.."000000",
|
drop = BASENAME.."000000",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
selection_box = selection_box,
|
selection_box = selection_box,
|
||||||
|
10
pipes.lua
10
pipes.lua
@ -37,11 +37,11 @@ for index, connects in ipairs(cconnects) do
|
|||||||
end
|
end
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
local pgroups = {snappy = 3, pipe = 1, not_in_creative_inventory = 1, dig_generic = 4, axey=5}
|
local pgroups = {snappy = 3, pipe = 1, not_in_creative_inventory = 1, dig_generic = 4, axey=1, handy=1, pickaxey=1}
|
||||||
local pipedesc = S("Pipe Segment").." "..dump(connects)
|
local pipedesc = S("Pipe Segment").." "..dump(connects)
|
||||||
|
|
||||||
if #connects == 0 then
|
if #connects == 0 then
|
||||||
pgroups = {snappy = 3, tube = 1, dig_generic = 4, axey=5}
|
pgroups = {snappy = 3, tube = 1, dig_generic = 4, axey=1, handy=1, pickaxey=1}
|
||||||
pipedesc = S("Pipe Segment")
|
pipedesc = S("Pipe Segment")
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ for index, connects in ipairs(cconnects) do
|
|||||||
fixed = outsel
|
fixed = outsel
|
||||||
},
|
},
|
||||||
groups = pgroups,
|
groups = pgroups,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
@ -94,7 +94,7 @@ for index, connects in ipairs(cconnects) do
|
|||||||
pipenumber = index
|
pipenumber = index
|
||||||
})
|
})
|
||||||
|
|
||||||
local pgroups = {snappy = 3, pipe = 1, not_in_creative_inventory = 1, dig_generic = 4, axey=5}
|
local pgroups = {snappy = 3, pipe = 1, not_in_creative_inventory = 1, dig_generic = 4, axey=1, handy=1, pickaxey=1}
|
||||||
|
|
||||||
minetest.register_node("pipeworks:pipe_"..index.."_loaded", {
|
minetest.register_node("pipeworks:pipe_"..index.."_loaded", {
|
||||||
description = pipedesc,
|
description = pipedesc,
|
||||||
@ -113,7 +113,7 @@ for index, connects in ipairs(cconnects) do
|
|||||||
fixed = outsel
|
fixed = outsel
|
||||||
},
|
},
|
||||||
groups = pgroups,
|
groups = pgroups,
|
||||||
_mcl_hardness = 1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_metal_defaults",
|
key = "node_sound_metal_defaults",
|
||||||
},
|
},
|
||||||
|
@ -168,8 +168,8 @@ if pipeworks.enable_one_way_tube then
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
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, axey=5},
|
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, tubedevice = 1, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_wood_defaults",
|
key = "node_sound_wood_defaults",
|
||||||
},
|
},
|
||||||
|
@ -10,8 +10,8 @@ minetest.register_node("pipeworks:trashcan", {
|
|||||||
"pipeworks_trashcan_side.png",
|
"pipeworks_trashcan_side.png",
|
||||||
"pipeworks_trashcan_side.png",
|
"pipeworks_trashcan_side.png",
|
||||||
},
|
},
|
||||||
groups = {snappy = 3, tubedevice = 1, tubedevice_receiver = 1, dig_generic = 4, axey=5},
|
groups = {snappy = 3, tubedevice = 1, tubedevice_receiver = 1, dig_generic = 4, axey=1, handy=1, pickaxey=1},
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
tube = {
|
tube = {
|
||||||
insert_object = function(pos, node, stack, direction)
|
insert_object = function(pos, node, stack, direction)
|
||||||
return ItemStack("")
|
return ItemStack("")
|
||||||
|
@ -61,13 +61,13 @@ local register_one_tube = function(name, tname, dropname, desc, plain, noctrs, e
|
|||||||
outimgs[vti[v]] = ends[v]
|
outimgs[vti[v]] = ends[v]
|
||||||
end
|
end
|
||||||
|
|
||||||
local tgroups = {snappy = 3, tube = 1, tubedevice = 1, not_in_creative_inventory = 1, dig_generic = 4, axey=5}
|
local tgroups = {snappy = 3, tube = 1, tubedevice = 1, not_in_creative_inventory = 1, dig_generic = 4, axey=1, handy=1, pickaxey=1}
|
||||||
local tubedesc = string.format("%s %s", desc, dump(connects))
|
local tubedesc = string.format("%s %s", desc, dump(connects))
|
||||||
local iimg = type(plain[1]) == "table" and plain[1].name or plain[1]
|
local iimg = type(plain[1]) == "table" and plain[1].name or plain[1]
|
||||||
local wscale = {x = 1, y = 1, z = 1}
|
local wscale = {x = 1, y = 1, z = 1}
|
||||||
|
|
||||||
if #connects == 0 then
|
if #connects == 0 then
|
||||||
tgroups = {snappy = 3, tube = 1, tubedevice = 1, dig_generic = 4, axey=5}
|
tgroups = {snappy = 3, tube = 1, tubedevice = 1, dig_generic = 4, axey=1, handy=1, pickaxey=1}
|
||||||
tubedesc = desc
|
tubedesc = desc
|
||||||
iimg=inv
|
iimg=inv
|
||||||
outimgs = {
|
outimgs = {
|
||||||
@ -106,7 +106,7 @@ local register_one_tube = function(name, tname, dropname, desc, plain, noctrs, e
|
|||||||
fixed = outboxes
|
fixed = outboxes
|
||||||
},
|
},
|
||||||
groups = tgroups,
|
groups = tgroups,
|
||||||
_mcl_hardness=1.6,
|
_mcl_hardness=0.8,
|
||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_wood_defaults",
|
key = "node_sound_wood_defaults",
|
||||||
},
|
},
|
||||||
|
@ -146,7 +146,7 @@ local function register_wielder(data)
|
|||||||
data.fixup_node = data.fixup_node or function (pos, node) end
|
data.fixup_node = data.fixup_node or function (pos, node) end
|
||||||
data.fixup_oldmetadata = data.fixup_oldmetadata or function (m) return m end
|
data.fixup_oldmetadata = data.fixup_oldmetadata or function (m) return m end
|
||||||
for _, state in ipairs({ "off", "on" }) do
|
for _, state in ipairs({ "off", "on" }) do
|
||||||
local groups = { snappy=2, choppy=2, oddly_breakable_by_hand=2, mesecon=2, tubedevice=1, tubedevice_receiver=1, axey=5 }
|
local groups = { snappy=2, choppy=2, oddly_breakable_by_hand=2, mesecon=2, tubedevice=1, tubedevice_receiver=1, axey=1, handy=1, pickaxey=1 }
|
||||||
if state == "on" then groups.not_in_creative_inventory = 1 end
|
if state == "on" then groups.not_in_creative_inventory = 1 end
|
||||||
local tile_images = {}
|
local tile_images = {}
|
||||||
for _, face in ipairs({ "top", "bottom", "side2", "side1", "back", "front" }) do
|
for _, face in ipairs({ "top", "bottom", "side2", "side1", "back", "front" }) do
|
||||||
|
Loading…
Reference in New Issue
Block a user