Merge branch 'mcl_explosions'

This commit is contained in:
Wuzzy 2020-04-30 20:55:10 +02:00
commit 3087621b11
59 changed files with 620 additions and 193 deletions

View file

@ -94,7 +94,7 @@ local dispenserdef = {
end
meta:from_table(meta2:to_table())
end,
_mcl_blast_resistance = 17.5,
_mcl_blast_resistance = 3.5,
_mcl_hardness = 3.5,
mesecons = {effector = {
-- Dispense random item when triggered

View file

@ -94,7 +94,7 @@ local dropperdef = {
return stack:get_count()
end
end,
_mcl_blast_resistance = 17.5,
_mcl_blast_resistance = 3.5,
_mcl_hardness = 3.5,
mesecons = {effector = {
-- Drop random item when triggered

View file

@ -92,7 +92,7 @@ local dropperdef = {
return stack:get_count()
end
end,
_mcl_blast_resistance = 17.5,
_mcl_blast_resistance = 3.5,
_mcl_hardness = 3.5,
mesecons = {effector = {
-- Drop random item when triggered

View file

@ -82,7 +82,7 @@ mesecon.register_node("mcl_observers:observer",
sounds = mcl_sounds.node_sound_stone_defaults(),
paramtype2 = "facedir",
on_rotate = false,
_mcl_blast_resistance = 17.5,
_mcl_blast_resistance = 3.5,
_mcl_hardness = 3.5,
},
{
@ -139,7 +139,7 @@ mesecon.register_node("mcl_observers:observer_down",
sounds = mcl_sounds.node_sound_stone_defaults(),
groups = {pickaxey=1, material_stone=1, not_opaque=1, not_in_creative_inventory=1 },
on_rotate = false,
_mcl_blast_resistance = 17.5,
_mcl_blast_resistance = 3.5,
_mcl_hardness = 3.5,
drop = "mcl_observers:observer_off",
},
@ -188,7 +188,7 @@ mesecon.register_node("mcl_observers:observer_up",
sounds = mcl_sounds.node_sound_stone_defaults(),
groups = {pickaxey=1, material_stone=1, not_opaque=1, not_in_creative_inventory=1 },
on_rotate = false,
_mcl_blast_resistance = 17.5,
_mcl_blast_resistance = 3.5,
_mcl_hardness = 3.5,
drop = "mcl_observers:observer_off",
},

View file

@ -133,7 +133,7 @@ mesecon.register_button = function(basename, description, texture, recipeitem, s
_mcl_button_basename = basename,
_mcl_button_timer = button_timer,
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
})
@ -184,7 +184,7 @@ mesecon.register_button = function(basename, description, texture, recipeitem, s
end
end,
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
})

View file

@ -242,7 +242,7 @@ S("Example 2:\n give @@n mcl_core:apple 5\nGives the nearest player 5 apples"
action_on = commandblock_action_on,
rules = mesecon.rules.alldirs,
}},
_mcl_blast_resistance = 18000000,
_mcl_blast_resistance = 3600000,
_mcl_hardness = -1,
})
@ -261,7 +261,7 @@ minetest.register_node("mesecons_commandblock:commandblock_on", {
action_off = commandblock_action_off,
rules = mesecon.rules.alldirs,
}},
_mcl_blast_resistance = 18000000,
_mcl_blast_resistance = 3600000,
_mcl_hardness = -1,
})

View file

@ -16,7 +16,7 @@ minetest.register_node("mesecons_lightstone:lightstone_off", {
end,
rules = mesecon.rules.alldirs,
}},
_mcl_blast_resistance = 1.5,
_mcl_blast_resistance = 0.3,
_mcl_hardness = 0.3,
})
@ -34,7 +34,7 @@ minetest.register_node("mesecons_lightstone:lightstone_on", {
end,
rules = mesecon.rules.alldirs,
}},
_mcl_blast_resistance = 1.5,
_mcl_blast_resistance = 0.3,
_mcl_hardness = 0.3,
})

View file

@ -48,7 +48,7 @@ S("The note block will only play a note when it is below air, otherwise, it stay
end,
rules = mesecon.rules.alldirs,
}},
_mcl_blast_resistance = 4,
_mcl_blast_resistance = 0.8,
_mcl_hardness = 0.8,
})

View file

@ -200,7 +200,7 @@ minetest.register_node("mesecons_pistons:piston_normal_off", {
action_on = piston_on,
rules = piston_get_rules
}},
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_rotate = function(pos, node, user, mode)
if mode == screwdriver.ROTATE_AXIS then
@ -235,7 +235,7 @@ minetest.register_node("mesecons_pistons:piston_normal_on", {
action_off = piston_off,
rules = piston_get_rules
}},
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_rotate = false,
})
@ -262,7 +262,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_normal", {
selection_box = piston_pusher_box,
node_box = piston_pusher_box,
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
on_rotate = false,
})
@ -304,7 +304,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_off", {
action_on = piston_on,
rules = piston_get_rules
}},
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_rotate = function(pos, node, user, mode)
if mode == screwdriver.ROTATE_AXIS then
@ -339,7 +339,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", {
action_off = piston_off,
rules = piston_get_rules
}},
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_rotate = false,
})
@ -366,7 +366,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_sticky", {
selection_box = piston_pusher_box,
node_box = piston_pusher_box,
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
on_rotate = false,
})
@ -423,7 +423,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal_off", {
sounds = mcl_sounds.node_sound_stone_defaults({
footstep = mcl_sounds.node_sound_wood_defaults().footstep
}),
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_rotate = function(pos, node, user, mode)
if mode == screwdriver.ROTATE_AXIS then
@ -459,7 +459,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal_on", {
action_off = piston_off,
rules = piston_up_rules,
}},
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_rotate = false,
})
@ -486,7 +486,7 @@ minetest.register_node("mesecons_pistons:piston_up_pusher_normal", {
selection_box = piston_up_pusher_box,
node_box = piston_up_pusher_box,
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
on_rotate = false,
})
@ -526,7 +526,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_off", {
action_on = piston_on,
rules = piston_up_rules,
}},
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_rotate = function(pos, node, user, mode)
if mode == screwdriver.ROTATE_AXIS then
@ -562,7 +562,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_on", {
action_off = piston_off,
rules = piston_up_rules,
}},
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_rotate = false,
})
@ -589,7 +589,7 @@ minetest.register_node("mesecons_pistons:piston_up_pusher_sticky", {
selection_box = piston_up_pusher_box,
node_box = piston_up_pusher_box,
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
on_rotate = false,
})
@ -646,7 +646,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal_off", {
action_on = piston_on,
rules = piston_down_rules,
}},
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_rotate = function(pos, node, user, mode)
if mode == screwdriver.ROTATE_AXIS then
@ -682,7 +682,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal_on", {
action_off = piston_off,
rules = piston_down_rules,
}},
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_rotate = false,
})
@ -709,7 +709,7 @@ minetest.register_node("mesecons_pistons:piston_down_pusher_normal", {
selection_box = piston_down_pusher_box,
node_box = piston_down_pusher_box,
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
on_rotate = false,
})
@ -744,7 +744,7 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_off", {
action_on = piston_on,
rules = piston_down_rules,
}},
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_rotate = function(pos, node, user, mode)
if mode == screwdriver.ROTATE_AXIS then
@ -780,7 +780,7 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_on", {
action_off = piston_off,
rules = piston_down_rules,
}},
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
on_rotate = false,
})
@ -807,7 +807,7 @@ minetest.register_node("mesecons_pistons:piston_down_pusher_sticky", {
selection_box = piston_down_pusher_box,
node_box = piston_down_pusher_box,
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
on_rotate = false,
})

View file

@ -125,7 +125,7 @@ function mesecon.register_pressure_plate(basename, description, textures_off, te
is_ground_content = false,
pressureplate_basename = basename,
pressureplate_activated_by = activated_by,
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
},{
node_box = pp_box_off,

View file

@ -36,7 +36,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", {
minetest.swap_node(pos, {name = "mesecons_solarpanel:solar_panel_inverted_off"})
mesecon.receptor_off(pos, mesecon.rules.pplate)
end,
_mcl_blast_resistance = 1,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
@ -76,7 +76,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_off", {
minetest.swap_node(pos, {name = "mesecons_solarpanel:solar_panel_inverted_on"})
mesecon.receptor_on(pos, mesecon.rules.pplate)
end,
_mcl_blast_resistance = 1,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
@ -154,7 +154,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_on", {
minetest.swap_node(pos, {name = "mesecons_solarpanel:solar_panel_off"})
mesecon.receptor_off(pos, mesecon.rules.pplate)
end,
_mcl_blast_resistance = 1,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})
@ -192,7 +192,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_off", {
minetest.swap_node(pos, {name = "mesecons_solarpanel:solar_panel_on"})
mesecon.receptor_on(pos, mesecon.rules.pplate)
end,
_mcl_blast_resistance = 1,
_mcl_blast_resistance = 0.2,
_mcl_hardness = 0.2,
})

View file

@ -204,7 +204,7 @@ minetest.register_node("mesecons_torch:redstoneblock", {
state = mesecon.state.on,
rules = mesecon.rules.alldirs,
}},
_mcl_blast_resistance = 30,
_mcl_blast_resistance = 6,
_mcl_hardness = 5,
})

View file

@ -128,7 +128,7 @@ minetest.register_node("mesecons_walllever:wall_lever_off", {
state = mesecon.state.off
}},
on_rotate = on_rotate,
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
})
minetest.register_node("mesecons_walllever:wall_lever_on", {
@ -160,7 +160,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", {
state = mesecon.state.on
}},
on_rotate = on_rotate,
_mcl_blast_resistance = 2.5,
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,
})