Fix daylight sensor dig times

This commit is contained in:
Wuzzy 2017-03-20 21:39:39 +01:00
parent 94eff62cdf
commit 9a96b525ae

@ -20,7 +20,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", {
drop = "mesecons_solarpanel:solar_panel_off",
description="Daylight Sensor",
_doc_items_create_entry = false,
groups = {dig_immediate=3, not_in_creative_inventory = 1, material_wood=1},
groups = {handy=1,axey=1, not_in_creative_inventory = 1, material_wood=1},
sounds = mcl_sounds.node_sound_glass_defaults(),
mesecons = {receptor = {
state = mesecon.state.on
@ -30,6 +30,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", {
mesecon:receptor_off(pos)
end,
_mcl_blast_resistance = 1,
_mcl_hardness = 0.2,
})
-- Solar Panel
@ -49,7 +50,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_off", {
type = "fixed",
fixed = boxes
},
groups = {dig_immediate=3, material_wood=1},
groups = {handy=1,axey=1, material_wood=1},
description="Daylight Sensor",
_doc_items_longdesc = "Daylight sensors are redstone components which provide redstone power when they are in sunlight and no power otherwise. They can also be inverted.",
_doc_items_usagehelp = "Rightclick the daylight sensor to turn it into an inverted daylight sensor, which supplies redstone energy when it is in moonlight.",
@ -62,6 +63,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_off", {
mesecon:receptor_on(pos)
end,
_mcl_blast_resistance = 1,
_mcl_hardness = 0.2,
})
minetest.register_craft({
@ -85,7 +87,6 @@ minetest.register_abm(
mesecon:receptor_on(pos)
end
end,
_mcl_blast_resistance = 1,
})
minetest.register_abm(
@ -100,7 +101,6 @@ minetest.register_abm(
mesecon:receptor_off(pos)
end
end,
_mcl_blast_resistance = 1,
})
--- Solar panel inversed
@ -123,7 +123,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_on", {
fixed = boxes
},
drop = "mesecons_solarpanel:solar_panel_off",
groups = {dig_immediate=3, not_in_creative_inventory = 1, material_wood=1},
groups = {handy=1,axey=1, not_in_creative_inventory = 1, material_wood=1},
description="Inverted Daylight Sensor",
_doc_items_create_entry = false,
sounds = mcl_sounds.node_sound_glass_defaults(),
@ -135,6 +135,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_on", {
mesecon:receptor_off(pos)
end,
_mcl_blast_resistance = 1,
_mcl_hardness = 0.2,
})
-- Solar Panel
@ -155,7 +156,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_off", {
fixed = boxes
},
drop = "mesecons_solarpanel:solar_panel_off",
groups = {dig_immediate=3, not_in_creative_inventory=1, material_wood=1},
groups = {handy=1,axey=1, not_in_creative_inventory=1, material_wood=1},
description="Inverted Daylight Sensor",
_doc_items_longdesc = "An inverted daylight sensor is a variant of the daylight sensor. It is a redstone component which provides redstone power when it in moonlight and no power otherwise. It can turned back into an ordinary daylight sensor.",
_doc_items_usagehelp = "Rightclick the daylight sensor to turn it into a daylight sensor.",
@ -168,6 +169,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_off", {
mesecon:receptor_on(pos)
end,
_mcl_blast_resistance = 1,
_mcl_hardness = 0.2,
})
minetest.register_abm(