More blast resistance definitions
parent
0aeb109c64
commit
2af57ea853
|
@ -71,6 +71,7 @@ minetest.register_node("mobs:spawner", {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
sounds = mcl_sounds.node_sound_metal_defaults(),
|
sounds = mcl_sounds.node_sound_metal_defaults(),
|
||||||
|
_mcl_blast_resistance = 25,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- spawner abm
|
-- spawner abm
|
||||||
|
|
|
@ -44,6 +44,7 @@ local dispenserdef = {
|
||||||
end
|
end
|
||||||
meta:from_table(meta2:to_table())
|
meta:from_table(meta2:to_table())
|
||||||
end,
|
end,
|
||||||
|
mcl_blast_resistance = 17.5,
|
||||||
mesecons = {effector = {
|
mesecons = {effector = {
|
||||||
-- Dispense random item when triggered
|
-- Dispense random item when triggered
|
||||||
action_on = function (pos, node)
|
action_on = function (pos, node)
|
||||||
|
|
|
@ -44,6 +44,7 @@ local dropperdef = {
|
||||||
end
|
end
|
||||||
meta:from_table(meta2:to_table())
|
meta:from_table(meta2:to_table())
|
||||||
end,
|
end,
|
||||||
|
_mcl_blast_resistance = 17.5,
|
||||||
mesecons = {effector = {
|
mesecons = {effector = {
|
||||||
-- Drop random item when triggered
|
-- Drop random item when triggered
|
||||||
action_on = function (pos, node)
|
action_on = function (pos, node)
|
||||||
|
|
|
@ -24,6 +24,7 @@ minetest.register_node("mcl_observers:observer", {
|
||||||
end
|
end
|
||||||
meta:from_table(meta2:to_table())
|
meta:from_table(meta2:to_table())
|
||||||
end,
|
end,
|
||||||
|
_mcl_blast_resistance = 17.5,
|
||||||
-- TODO: Mesecons handling
|
-- TODO: Mesecons handling
|
||||||
mesecons = {effector = {
|
mesecons = {effector = {
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -48,7 +48,8 @@ minetest.register_node("mesecons_button:button_stone_off", {
|
||||||
mesecons = {receptor = {
|
mesecons = {receptor = {
|
||||||
state = mesecon.state.off,
|
state = mesecon.state.off,
|
||||||
rules = mesecon.rules.buttonlike_get
|
rules = mesecon.rules.buttonlike_get
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mesecons_button:button_stone_on", {
|
minetest.register_node("mesecons_button:button_stone_on", {
|
||||||
|
@ -74,7 +75,8 @@ minetest.register_node("mesecons_button:button_stone_on", {
|
||||||
mesecons = {receptor = {
|
mesecons = {receptor = {
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
rules = mesecon.rules.buttonlike_get
|
rules = mesecon.rules.buttonlike_get
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mesecons_button:button_wood_off", {
|
minetest.register_node("mesecons_button:button_wood_off", {
|
||||||
|
@ -105,7 +107,8 @@ minetest.register_node("mesecons_button:button_wood_off", {
|
||||||
mesecons = {receptor = {
|
mesecons = {receptor = {
|
||||||
state = mesecon.state.off,
|
state = mesecon.state.off,
|
||||||
rules = mesecon.rules.buttonlike_get
|
rules = mesecon.rules.buttonlike_get
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mesecons_button:button_wood_on", {
|
minetest.register_node("mesecons_button:button_wood_on", {
|
||||||
|
@ -131,7 +134,8 @@ minetest.register_node("mesecons_button:button_wood_on", {
|
||||||
mesecons = {receptor = {
|
mesecons = {receptor = {
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
rules = mesecon.rules.buttonlike_get
|
rules = mesecon.rules.buttonlike_get
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
|
@ -189,6 +189,7 @@ minetest.register_node("mesecons_commandblock:commandblock_off", {
|
||||||
mesecons = {effector = {
|
mesecons = {effector = {
|
||||||
action_on = commandblock_action_on
|
action_on = commandblock_action_on
|
||||||
}},
|
}},
|
||||||
|
mcl_blast_resistance = 18000000,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mesecons_commandblock:commandblock_on", {
|
minetest.register_node("mesecons_commandblock:commandblock_on", {
|
||||||
|
@ -204,5 +205,6 @@ minetest.register_node("mesecons_commandblock:commandblock_on", {
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||||
mesecons = {effector = {
|
mesecons = {effector = {
|
||||||
action_off = commandblock_action_off
|
action_off = commandblock_action_off
|
||||||
}}
|
}},
|
||||||
|
mcl_blast_resistance = 18000000,
|
||||||
})
|
})
|
||||||
|
|
|
@ -9,7 +9,8 @@ minetest.register_node("mesecons_lightstone:lightstone_off", {
|
||||||
action_on = function (pos, node)
|
action_on = function (pos, node)
|
||||||
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_on")
|
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_on")
|
||||||
end
|
end
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 1.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mesecons_lightstone:lightstone_on", {
|
minetest.register_node("mesecons_lightstone:lightstone_on", {
|
||||||
|
@ -25,7 +26,8 @@ minetest.register_node("mesecons_lightstone:lightstone_on", {
|
||||||
action_off = function (pos, node)
|
action_off = function (pos, node)
|
||||||
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_off")
|
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_off")
|
||||||
end
|
end
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 1.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
|
@ -20,7 +20,8 @@ minetest.register_node("mesecons_noteblock:noteblock", {
|
||||||
action_on = function (pos, node)
|
action_on = function (pos, node)
|
||||||
mesecon.noteblock_play(pos, node.param2)
|
mesecon.noteblock_play(pos, node.param2)
|
||||||
end
|
end
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 4,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
|
@ -171,7 +171,8 @@ minetest.register_node("mesecons_pistons:piston_normal_off", {
|
||||||
mesecons = {effector={
|
mesecons = {effector={
|
||||||
action_on = piston_on,
|
action_on = piston_on,
|
||||||
rules = piston_get_rules
|
rules = piston_get_rules
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- onstate
|
-- onstate
|
||||||
|
@ -200,7 +201,8 @@ minetest.register_node("mesecons_pistons:piston_normal_on", {
|
||||||
mesecons = {effector={
|
mesecons = {effector={
|
||||||
action_off = piston_off,
|
action_off = piston_off,
|
||||||
rules = piston_get_rules
|
rules = piston_get_rules
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- pusher
|
-- pusher
|
||||||
|
@ -222,6 +224,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_normal", {
|
||||||
selection_box = piston_pusher_box,
|
selection_box = piston_pusher_box,
|
||||||
node_box = piston_pusher_box,
|
node_box = piston_pusher_box,
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Sticky ones
|
-- Sticky ones
|
||||||
|
@ -256,7 +259,8 @@ minetest.register_node("mesecons_pistons:piston_sticky_off", {
|
||||||
mesecons = {effector={
|
mesecons = {effector={
|
||||||
action_on = piston_on,
|
action_on = piston_on,
|
||||||
rules = piston_get_rules
|
rules = piston_get_rules
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- onstate
|
-- onstate
|
||||||
|
@ -285,7 +289,8 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", {
|
||||||
mesecons = {effector={
|
mesecons = {effector={
|
||||||
action_off = piston_off,
|
action_off = piston_off,
|
||||||
rules = piston_get_rules
|
rules = piston_get_rules
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- pusher
|
-- pusher
|
||||||
|
@ -307,6 +312,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_sticky", {
|
||||||
selection_box = piston_pusher_box,
|
selection_box = piston_pusher_box,
|
||||||
node_box = piston_pusher_box,
|
node_box = piston_pusher_box,
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -361,6 +367,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal_off", {
|
||||||
rules = piston_up_rules,
|
rules = piston_up_rules,
|
||||||
}},
|
}},
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- onstate
|
-- onstate
|
||||||
|
@ -389,7 +396,8 @@ minetest.register_node("mesecons_pistons:piston_up_normal_on", {
|
||||||
mesecons = {effector={
|
mesecons = {effector={
|
||||||
action_off = piston_off,
|
action_off = piston_off,
|
||||||
rules = piston_up_rules,
|
rules = piston_up_rules,
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- pusher
|
-- pusher
|
||||||
|
@ -411,6 +419,7 @@ minetest.register_node("mesecons_pistons:piston_up_pusher_normal", {
|
||||||
selection_box = piston_up_pusher_box,
|
selection_box = piston_up_pusher_box,
|
||||||
node_box = piston_up_pusher_box,
|
node_box = piston_up_pusher_box,
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@ -448,7 +457,8 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_off", {
|
||||||
mesecons = {effector={
|
mesecons = {effector={
|
||||||
action_on = piston_on,
|
action_on = piston_on,
|
||||||
rules = piston_up_rules,
|
rules = piston_up_rules,
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- onstate
|
-- onstate
|
||||||
|
@ -477,7 +487,8 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_on", {
|
||||||
mesecons = {effector={
|
mesecons = {effector={
|
||||||
action_off = piston_off,
|
action_off = piston_off,
|
||||||
rules = piston_up_rules,
|
rules = piston_up_rules,
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- pusher
|
-- pusher
|
||||||
|
@ -499,6 +510,7 @@ minetest.register_node("mesecons_pistons:piston_up_pusher_sticky", {
|
||||||
selection_box = piston_up_pusher_box,
|
selection_box = piston_up_pusher_box,
|
||||||
node_box = piston_up_pusher_box,
|
node_box = piston_up_pusher_box,
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -554,7 +566,8 @@ minetest.register_node("mesecons_pistons:piston_down_normal_off", {
|
||||||
mesecons = {effector={
|
mesecons = {effector={
|
||||||
action_on = piston_on,
|
action_on = piston_on,
|
||||||
rules = piston_down_rules,
|
rules = piston_down_rules,
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- onstate
|
-- onstate
|
||||||
|
@ -583,7 +596,8 @@ minetest.register_node("mesecons_pistons:piston_down_normal_on", {
|
||||||
mesecons = {effector={
|
mesecons = {effector={
|
||||||
action_off = piston_off,
|
action_off = piston_off,
|
||||||
rules = piston_down_rules,
|
rules = piston_down_rules,
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- pusher
|
-- pusher
|
||||||
|
@ -605,6 +619,7 @@ minetest.register_node("mesecons_pistons:piston_down_pusher_normal", {
|
||||||
selection_box = piston_down_pusher_box,
|
selection_box = piston_down_pusher_box,
|
||||||
node_box = piston_down_pusher_box,
|
node_box = piston_down_pusher_box,
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Sticky
|
-- Sticky
|
||||||
|
@ -638,7 +653,8 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_off", {
|
||||||
mesecons = {effector={
|
mesecons = {effector={
|
||||||
action_on = piston_on,
|
action_on = piston_on,
|
||||||
rules = piston_down_rules,
|
rules = piston_down_rules,
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- onstate
|
-- onstate
|
||||||
|
@ -667,7 +683,8 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_on", {
|
||||||
mesecons = {effector={
|
mesecons = {effector={
|
||||||
action_off = piston_off,
|
action_off = piston_off,
|
||||||
rules = piston_down_rules,
|
rules = piston_down_rules,
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- pusher
|
-- pusher
|
||||||
|
@ -689,6 +706,7 @@ minetest.register_node("mesecons_pistons:piston_down_pusher_sticky", {
|
||||||
selection_box = piston_down_pusher_box,
|
selection_box = piston_down_pusher_box,
|
||||||
node_box = piston_down_pusher_box,
|
node_box = piston_down_pusher_box,
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -74,6 +74,7 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
minetest.get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL)
|
minetest.get_node_timer(pos):start(PRESSURE_PLATE_INTERVAL)
|
||||||
end,
|
end,
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node(onstate, {
|
minetest.register_node(onstate, {
|
||||||
|
@ -99,7 +100,8 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
|
||||||
if not mesecon:connected_to_receptor(two_below) then
|
if not mesecon:connected_to_receptor(two_below) then
|
||||||
mesecon:turnoff(two_below)
|
mesecon:turnoff(two_below)
|
||||||
end
|
end
|
||||||
end
|
end,
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
|
@ -28,6 +28,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", {
|
||||||
minetest.swap_node(pos, {name = "mesecons_solarpanel:solar_panel_inverted_off"})
|
minetest.swap_node(pos, {name = "mesecons_solarpanel:solar_panel_inverted_off"})
|
||||||
mesecon:receptor_off(pos)
|
mesecon:receptor_off(pos)
|
||||||
end,
|
end,
|
||||||
|
_mcl_blast_resistance = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Solar Panel
|
-- Solar Panel
|
||||||
|
@ -57,6 +58,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_off", {
|
||||||
minetest.swap_node(pos, {name = "mesecons_solarpanel:solar_panel_inverted_on"})
|
minetest.swap_node(pos, {name = "mesecons_solarpanel:solar_panel_inverted_on"})
|
||||||
mesecon:receptor_on(pos)
|
mesecon:receptor_on(pos)
|
||||||
end,
|
end,
|
||||||
|
_mcl_blast_resistance = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
@ -80,6 +82,7 @@ minetest.register_abm(
|
||||||
mesecon:receptor_on(pos)
|
mesecon:receptor_on(pos)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
_mcl_blast_resistance = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_abm(
|
minetest.register_abm(
|
||||||
|
@ -94,6 +97,7 @@ minetest.register_abm(
|
||||||
mesecon:receptor_off(pos)
|
mesecon:receptor_off(pos)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
_mcl_blast_resistance = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
--- Solar panel inversed
|
--- Solar panel inversed
|
||||||
|
@ -126,6 +130,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_on", {
|
||||||
minetest.swap_node(pos, {name = "mesecons_solarpanel:solar_panel_off"})
|
minetest.swap_node(pos, {name = "mesecons_solarpanel:solar_panel_off"})
|
||||||
mesecon:receptor_off(pos)
|
mesecon:receptor_off(pos)
|
||||||
end,
|
end,
|
||||||
|
_mcl_blast_resistance = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Solar Panel
|
-- Solar Panel
|
||||||
|
@ -156,6 +161,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_off", {
|
||||||
minetest.swap_node(pos, {name = "mesecons_solarpanel:solar_panel_on"})
|
minetest.swap_node(pos, {name = "mesecons_solarpanel:solar_panel_on"})
|
||||||
mesecon:receptor_on(pos)
|
mesecon:receptor_on(pos)
|
||||||
end,
|
end,
|
||||||
|
_mcl_blast_resistance = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_abm(
|
minetest.register_abm(
|
||||||
|
|
|
@ -81,6 +81,7 @@ minetest.register_node("mesecons_torch:redstoneblock", {
|
||||||
state = mesecon.state.on,
|
state = mesecon.state.on,
|
||||||
rules = torch_get_output_rules
|
rules = torch_get_output_rules
|
||||||
}},
|
}},
|
||||||
|
mcl_blast_resistance = 30,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
|
@ -39,7 +39,8 @@ minetest.register_node("mesecons_walllever:wall_lever_off", {
|
||||||
mesecons = {receptor = {
|
mesecons = {receptor = {
|
||||||
rules = mesecon.rules.buttonlike_get,
|
rules = mesecon.rules.buttonlike_get,
|
||||||
state = mesecon.state.off
|
state = mesecon.state.off
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
minetest.register_node("mesecons_walllever:wall_lever_on", {
|
minetest.register_node("mesecons_walllever:wall_lever_on", {
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
|
@ -79,7 +80,8 @@ minetest.register_node("mesecons_walllever:wall_lever_on", {
|
||||||
mesecons = {receptor = {
|
mesecons = {receptor = {
|
||||||
rules = mesecon.rules.buttonlike_get,
|
rules = mesecon.rules.buttonlike_get,
|
||||||
state = mesecon.state.on
|
state = mesecon.state.on
|
||||||
}}
|
}},
|
||||||
|
_mcl_blast_resistance = 2.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
Loading…
Reference in New Issue