Add an on-blast callback to all machines that performs a no-op to disable TNT destruction

This commit is contained in:
Oversword 2022-06-09 22:49:50 +01:00
parent d9bc8119fa
commit 5c71605dda
59 changed files with 788 additions and 705 deletions

@ -571,6 +571,7 @@ for idx = 0,4 do
is_ground_content = false,
groups = {choppy=2, cracky=1, not_in_creative_inventory=not_in_creative_inventory, tubedevice = 1, tubedevice_receiver = 1},
drop = node_name.."3",
on_blast = function() end,
})
end
end
@ -637,6 +638,7 @@ if minetest.global_exists("tubelib") then
sunlight_propagates = true,
is_ground_content = false,
groups = {choppy=2, cracky=1, not_in_creative_inventory=1},
on_blast = function() end,
})
tubelib.register_node("gravelsieve:auto_sieve3",
@ -758,5 +760,3 @@ if minetest.get_modpath("moreblocks") then
sounds = default.node_sound_stone_defaults(),
})
end

@ -94,6 +94,7 @@ local function register_battery(ext, percent, nici)
drop = "",
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})
end
@ -134,6 +135,7 @@ minetest.register_node("sl_controller:battery_empty", {
drop = "",
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})

@ -529,6 +529,7 @@ minetest.register_node("sl_controller:controller", {
groups = {choppy=1, cracky=1, crumbly=1},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})

@ -114,6 +114,7 @@ minetest.register_node("sl_controller:server", {
groups = {choppy=1, cracky=1, crumbly=1},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})
minetest.register_craft({
@ -221,5 +222,3 @@ sl_controller.register_action("server_write", {
" number, string, boolean, nil or data structure.\n"..
' example: $server_write("0123", "state", state)'
})

@ -147,6 +147,7 @@ local function register_terminal(num, tiles, node_box, selection_box)
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
end
@ -279,4 +280,3 @@ sl_controller.register_action("send_msg", {
' Send a message to the controller with number "num".\n'..
' example: $send_msg("0123", "test")'
})

@ -152,6 +152,7 @@ minetest.register_node("smartline:button", {
groups = {cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
@ -196,6 +197,7 @@ minetest.register_node("smartline:button_active", {
drop = "smartline:button",
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
tubelib.register_node("smartline:button", {"smartline:button_active"}, {tubelib_node = true})

@ -176,6 +176,7 @@ minetest.register_node("smartline:collector", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})

@ -849,6 +849,7 @@ minetest.register_node("smartline:controller", {
groups = {choppy=1, cracky=1, crumbly=1, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
drop = "smartline:controller2",
})
@ -981,4 +982,3 @@ minetest.register_lbm({
maintain_dataset(number)
end
})

@ -81,6 +81,7 @@ minetest.register_node("smartline:display", {
groups = {cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_glass_defaults(),
on_blast = function() end,
})
@ -163,4 +164,3 @@ tubelib.register_node("smartline:display", {}, {
end
end,
})

@ -93,6 +93,7 @@ local function register_battery(ext, percent, nici)
drop = "",
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})
end
@ -133,6 +134,7 @@ minetest.register_node("smartline:battery_empty", {
drop = "",
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})

@ -460,6 +460,7 @@ minetest.register_node("smartline:controller2", {
groups = {choppy=1, cracky=1, crumbly=1},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})
@ -512,4 +513,3 @@ tubelib.register_node("smartline:controller2", {}, {
end
end,
})

@ -164,6 +164,7 @@ minetest.register_node("smartline:playerdetector", {
groups = {cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
minetest.register_node("smartline:playerdetector_active", {
@ -206,7 +207,8 @@ minetest.register_node("smartline:playerdetector_active", {
groups = {cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
drop = "smartline:playerdetector"
drop = "smartline:playerdetector",
on_blast = function() end,
})
minetest.register_craft({
@ -235,4 +237,3 @@ tubelib.register_node("smartline:playerdetector", {"smartline:playerdetector_act
minetest.get_node_timer(pos):start(1.0)
end,
})

@ -96,6 +96,7 @@ minetest.register_node("smartline:repeater", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})

@ -266,6 +266,7 @@ minetest.register_node("smartline:sequencer", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})

@ -69,6 +69,7 @@ minetest.register_node("smartline:signaltower", {
groups = {cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_glass_defaults(),
on_blast = function() end,
})
for _,color in ipairs({"green", "amber", "red"}) do
@ -101,6 +102,7 @@ for _,color in ipairs({"green", "amber", "red"}) do
is_ground_content = false,
sounds = default.node_sound_glass_defaults(),
drop = "smartline:signaltower",
on_blast = function() end,
})
end

@ -223,6 +223,7 @@ minetest.register_node("smartline:timer", {
sounds = default.node_sound_stone_defaults(),
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
on_blast = function() end,
})
tubelib.register_node("smartline:timer", {}, {

@ -66,6 +66,7 @@ minetest.register_node(NODE_NAME, {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
minetest.register_node(NODE_NAME.."_active", {
@ -98,6 +99,7 @@ minetest.register_node(NODE_NAME.."_active", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
minetest.register_node(NODE_NAME.."_defect", {
@ -128,6 +130,7 @@ minetest.register_node(NODE_NAME.."_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
tubelib.register_node(NODE_NAME,

@ -66,6 +66,7 @@ minetest.register_node(NODE_NAME, {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
minetest.register_node(NODE_NAME.."_active", {
@ -98,6 +99,7 @@ minetest.register_node(NODE_NAME.."_active", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
minetest.register_node(NODE_NAME.."_defect", {
@ -128,6 +130,7 @@ minetest.register_node(NODE_NAME.."_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
tubelib.register_node(NODE_NAME,

@ -66,6 +66,7 @@ minetest.register_node(NODE_NAME, {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
minetest.register_node(NODE_NAME.."_active", {
@ -98,6 +99,7 @@ minetest.register_node(NODE_NAME.."_active", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
minetest.register_node(NODE_NAME.."_defect", {
@ -128,6 +130,7 @@ minetest.register_node(NODE_NAME.."_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
tubelib.register_node(NODE_NAME,

@ -58,6 +58,7 @@ minetest.register_node("tubelib:blackhole", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})

@ -140,6 +140,7 @@ minetest.register_node("tubelib:button", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
@ -173,6 +174,7 @@ minetest.register_node("tubelib:button_active", {
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
drop = "tubelib:button",
on_blast = function() end,
})
tubelib.register_node("tubelib:button", {"tubelib:button_active"}, {tubelib_node = true})
@ -185,4 +187,3 @@ minetest.register_craft({
{"", "group:wood", ""},
},
})

@ -13,6 +13,7 @@ minetest.register_node("tubelib:defect_dummy", {
},
groups = {cracky=3, crumbly=3, choppy=3, not_in_creative_inventory=1},
is_ground_content = false,
on_blast = function() end,
})
local reported_machines = {}

@ -411,6 +411,7 @@ minetest.register_node("tubelib:distributor", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
@ -453,6 +454,7 @@ minetest.register_node("tubelib:distributor_active", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib:distributor_defect", {
@ -511,6 +513,7 @@ minetest.register_node("tubelib:distributor_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})

@ -188,6 +188,7 @@ minetest.register_node("tubelib:forceload", {
not_in_creative_inventory = tubelib.max_num_forceload_blocks == 0 and 1 or 0},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})

@ -60,6 +60,7 @@ minetest.register_node("tubelib:lamp", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib:lamp_on", {
@ -81,6 +82,7 @@ minetest.register_node("tubelib:lamp_on", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_craft({

@ -124,6 +124,7 @@ minetest.register_node("tubelib:tube1", {
is_ground_content = false,
groups = {choppy=2, cracky=3, stone=1, not_in_creative_inventory=1},
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_craft({

@ -119,6 +119,7 @@ minetest.register_node("tubelib:pusher", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
@ -188,6 +189,7 @@ minetest.register_node("tubelib:pusher_active", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib:pusher_defect", {
@ -223,6 +225,7 @@ minetest.register_node("tubelib:pusher_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})

@ -334,6 +334,7 @@ minetest.register_node("tubelib_addons1:autocrafter", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons1:autocrafter_active", {
@ -370,6 +371,7 @@ minetest.register_node("tubelib_addons1:autocrafter_active", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons1:autocrafter_defect", {
@ -416,6 +418,7 @@ minetest.register_node("tubelib_addons1:autocrafter_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_craft({

@ -124,6 +124,7 @@ minetest.register_node("tubelib_addons1:chest", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})

@ -91,6 +91,7 @@ minetest.register_node("tubelib_addons1:detector", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
@ -121,6 +122,7 @@ minetest.register_node("tubelib_addons1:detector_active", {
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
drop = "tubelib_addons1:detector",
on_blast = function() end,
})
minetest.register_craft({
@ -146,4 +148,3 @@ tubelib.register_node("tubelib_addons1:detector", {"tubelib_addons1:detector_act
end,
is_pusher = true, -- is a pulling/pushing node
})

@ -230,6 +230,7 @@ minetest.register_node("tubelib_addons1:fermenter", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons1:fermenter_defect", {
@ -302,6 +303,7 @@ minetest.register_node("tubelib_addons1:fermenter_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons1:fermenter_top", {
@ -322,6 +324,7 @@ minetest.register_node("tubelib_addons1:fermenter_top", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
pointable = false,
on_blast = function() end,
})
minetest.register_craftitem("tubelib_addons1:biogas", {

@ -125,6 +125,7 @@ minetest.register_node("tubelib_addons1:funnel", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
@ -162,5 +163,3 @@ tubelib.register_node("tubelib_addons1:funnel", {}, {
end,
})

@ -168,6 +168,7 @@ minetest.register_node("tubelib_addons1:grinder", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
@ -209,6 +210,7 @@ minetest.register_node("tubelib_addons1:grinder_active", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons1:grinder_defect", {
@ -256,6 +258,7 @@ minetest.register_node("tubelib_addons1:grinder_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_craft({
@ -472,5 +475,3 @@ for _,v in pairs({
end
if minetest.get_modpath("jacaranda") then tubelib.add_grinder_recipe({input="jacaranda:trunk", output = "jacaranda:blossom_leaves 8"}) end

@ -384,6 +384,7 @@ minetest.register_node("tubelib_addons1:harvester_base", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons1:harvester_defect", {
@ -441,6 +442,7 @@ minetest.register_node("tubelib_addons1:harvester_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
@ -506,4 +508,3 @@ minetest.register_lbm({
end
end
})

@ -179,6 +179,7 @@ minetest.register_node("tubelib_addons1:liquidsampler", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons1:liquidsampler_active", {
@ -218,6 +219,7 @@ minetest.register_node("tubelib_addons1:liquidsampler_active", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons1:liquidsampler_defect", {
@ -268,6 +270,7 @@ minetest.register_node("tubelib_addons1:liquidsampler_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_craft({

@ -119,6 +119,7 @@ minetest.register_node("tubelib_addons1:pusher_fast", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
@ -188,6 +189,7 @@ minetest.register_node("tubelib_addons1:pusher_fast_active", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons1:pusher_fast_defect", {
@ -223,6 +225,7 @@ minetest.register_node("tubelib_addons1:pusher_fast_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})

@ -343,6 +343,7 @@ minetest.register_node("tubelib_addons1:quarry", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons1:quarry_active", {
@ -384,6 +385,7 @@ minetest.register_node("tubelib_addons1:quarry_active", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons1:quarry_defect", {
@ -434,6 +436,7 @@ minetest.register_node("tubelib_addons1:quarry_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_craft({
@ -483,4 +486,3 @@ tubelib.register_node("tubelib_addons1:quarry",
return State:on_node_repair(pos)
end,
})

@ -226,6 +226,7 @@ minetest.register_node("tubelib_addons1:reformer", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons1:reformer_defect", {
@ -298,6 +299,7 @@ minetest.register_node("tubelib_addons1:reformer_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})
@ -319,6 +321,7 @@ minetest.register_node("tubelib_addons1:reformer_top", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
pointable = false,
on_blast = function() end,
})
minetest.register_craftitem("tubelib_addons1:biofuel", {

@ -142,6 +142,7 @@ minetest.register_node("tubelib_addons2:accesscontrol", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_metal_defaults(),
on_blast = function() end,
})

@ -75,6 +75,7 @@ minetest.register_node("tubelib_addons2:ceilinglamp", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_glass_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons2:ceilinglamp_on", {
@ -114,6 +115,7 @@ minetest.register_node("tubelib_addons2:ceilinglamp_on", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_glass_defaults(),
on_blast = function() end,
})
minetest.register_craft({

@ -74,6 +74,7 @@ minetest.register_node("tubelib_addons2:lamp", {
sounds = default.node_sound_stone_defaults(),
groups = {choppy=2, cracky=1},
is_ground_content = false,
on_blast = function() end,
})
tubelib.register_node("tubelib_addons2:lamp", {}, {
@ -127,6 +128,7 @@ for idx,color in ipairs(tColors) do
sounds = default.node_sound_stone_defaults(),
groups = {choppy=2, cracky=1, not_in_creative_inventory=1},
is_ground_content = false,
drop = "tubelib_addons2:lamp"
drop = "tubelib_addons2:lamp",
on_blast = function() end,
})
end

@ -58,7 +58,8 @@ minetest.register_node("tubelib_addons2:lamp_off", {
sounds = default.node_sound_stone_defaults(),
groups = {choppy=2, cracky=1, ud_param2_colorable = 1},
is_ground_content = false,
drop = "tubelib_addons2:lamp_off"
drop = "tubelib_addons2:lamp_off",
on_blast = function() end,
})
@ -85,7 +86,8 @@ minetest.register_node("tubelib_addons2:lamp_on", {
on_dig = unifieddyes.on_dig,
light_source = minetest.LIGHT_MAX,
is_ground_content = false,
drop = "tubelib_addons2:lamp_off"
drop = "tubelib_addons2:lamp_off",
on_blast = function() end,
})
tubelib.register_node("tubelib_addons2:lamp_off", {"tubelib_addons2:lamp_on"}, {
@ -117,7 +119,8 @@ for idx=1,12 do
paramtype = 'light',
groups = {choppy=2, cracky=1, not_in_creative_inventory=1},
is_ground_content = false,
drop = "tubelib_addons2:lamp_off"
drop = "tubelib_addons2:lamp_off",
on_blast = function() end,
})
end
@ -150,4 +153,3 @@ minetest.register_lbm({
meta:set_string("infotext", S("Tubelib Color Lamp").." "..number)
end
})

@ -89,6 +89,7 @@ for idx,pgn in ipairs(tPgns) do
groups = {cracky=2, choppy=2, crumbly=2, not_in_creative_inventory=not_in_inventory},
is_ground_content = false,
drop = "tubelib_addons2:doorblock1",
on_blast = function() end,
})
not_in_inventory = 1

@ -78,6 +78,7 @@ for idx,pgn in ipairs(tPgns) do
groups = {cracky=2, choppy=2, crumbly=2, not_in_creative_inventory = idx == NUM_TEXTURES and 0 or 1},
is_ground_content = false,
drop = "tubelib_addons2:gateblock1",
on_blast = function() end,
})
tubelib.register_node("tubelib_addons2:gateblock"..idx, {}, {

@ -72,6 +72,7 @@ local function register_lamp(tbl)
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_glass_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons2:industriallamp"..num.."_on", {
@ -115,6 +116,7 @@ local function register_lamp(tbl)
drop = "tubelib_addons2:industriallamp"..num,
is_ground_content = false,
sounds = default.node_sound_glass_defaults(),
on_blast = function() end,
})
tubelib.register_node("tubelib_addons2:industriallamp"..num, {"tubelib_addons2:industriallamp"..num.."_on"}, {
@ -209,4 +211,3 @@ register_lamp({
},
size = {x = 8/32, y = 8/32, z = 5/32}
})

@ -57,6 +57,7 @@ minetest.register_node("tubelib_addons2:invisiblelamp", {
is_ground_content = false,
groups = {cracky = 3, oddly_breakable_by_hand = 3},
sounds = default.node_sound_glass_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons2:invisiblelamp_on", {
@ -82,6 +83,7 @@ minetest.register_node("tubelib_addons2:invisiblelamp_on", {
drop = "tubelib_addons2:invisiblelamp",
groups = {cracky = 3, oddly_breakable_by_hand = 3, not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
on_blast = function() end,
})
minetest.register_craft({

@ -65,6 +65,7 @@ minetest.register_node("tubelib_addons2:logic_not", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})

@ -129,6 +129,7 @@ minetest.register_node("tubelib_addons2:mesecons_converter", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})

@ -83,6 +83,7 @@ minetest.register_node("tubelib_addons2:repeater", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})

@ -246,6 +246,7 @@ minetest.register_node("tubelib_addons2:sequencer", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function() end,
})

@ -72,6 +72,7 @@ minetest.register_node("tubelib_addons2:streetlamp", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_glass_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons2:streetlamp_on", {
@ -109,6 +110,7 @@ minetest.register_node("tubelib_addons2:streetlamp_on", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_craft({

@ -180,6 +180,7 @@ minetest.register_node("tubelib_addons2:timer", {
sounds = default.node_sound_stone_defaults(),
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
on_blast = function() end,
})
@ -202,4 +203,3 @@ tubelib.register_node("tubelib_addons2:timer", {}, {
check_rules(pos,0)
end,
})

@ -128,6 +128,7 @@ minetest.register_node("tubelib_addons3:chest", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})

@ -89,6 +89,7 @@ minetest.register_node("tubelib_addons3:chest_cart", {
allow_metadata_inventory_put = allow_metadata_inventory_put,
allow_metadata_inventory_take = allow_metadata_inventory_take,
on_rightclick = on_rightclick,
on_blast = function() end,
after_place_node = function(pos, placer)
local inv = M(pos):get_inventory()

@ -390,6 +390,7 @@ minetest.register_node("tubelib_addons3:distributor", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
@ -432,6 +433,7 @@ minetest.register_node("tubelib_addons3:distributor_active", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons3:distributor_defect", {
@ -490,6 +492,7 @@ minetest.register_node("tubelib_addons3:distributor_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})

@ -127,6 +127,7 @@ minetest.register_node("tubelib_addons3:funnel", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
@ -168,5 +169,3 @@ tubelib.register_node("tubelib_addons3:funnel", {}, {
end,
})

@ -108,6 +108,7 @@ minetest.register_node("tubelib_addons3:pusher", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
@ -177,6 +178,7 @@ minetest.register_node("tubelib_addons3:pusher_active", {
groups = {crumbly=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons3:pusher_defect", {
@ -212,6 +214,7 @@ minetest.register_node("tubelib_addons3:pusher_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})

@ -250,6 +250,7 @@ minetest.register_node("tubelib_addons3:pushing_chest", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})
minetest.register_node("tubelib_addons3:pushing_chest_defect", {
@ -304,6 +305,7 @@ minetest.register_node("tubelib_addons3:pushing_chest_defect", {
groups = {choppy=2, cracky=2, crumbly=2, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})

@ -63,6 +63,7 @@ minetest.register_node("tubelib_addons3:teleporter", {
groups = {choppy=2, cracky=2, crumbly=2},
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_blast = function() end,
})