2015-06-29 20:55:56 +03:00
|
|
|
minetest.register_node("mesecons_lightstone:lightstone_off", {
|
|
|
|
tiles = {"jeija_lightstone_gray_off.png"},
|
|
|
|
inventory_image = minetest.inventorycube("jeija_lightstone_gray_off.png"),
|
2017-02-27 02:52:24 +02:00
|
|
|
groups = {handy=1, mesecon_effector_off = 1, mesecon = 2},
|
2017-01-04 23:36:51 +02:00
|
|
|
is_ground_content = false,
|
2015-06-29 20:55:56 +03:00
|
|
|
description= "Redstone Lamp",
|
2017-03-11 04:38:08 +02:00
|
|
|
_doc_items_longdesc = "Redstone lamps are simple redstone components which glow brightly (light level 14) when they receive redstone power.",
|
2017-02-11 19:46:23 +02:00
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
2015-06-29 20:55:56 +03:00
|
|
|
mesecons = {effector = {
|
|
|
|
action_on = function (pos, node)
|
|
|
|
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_on")
|
|
|
|
end
|
2017-02-22 17:22:28 +02:00
|
|
|
}},
|
|
|
|
_mcl_blast_resistance = 1.5,
|
2017-02-27 02:52:24 +02:00
|
|
|
_mcl_hardness = 0.3,
|
2015-06-29 20:55:56 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("mesecons_lightstone:lightstone_on", {
|
|
|
|
tiles = {"jeija_lightstone_gray_on.png"},
|
|
|
|
inventory_image = minetest.inventorycube("jeija_lightstone_gray_off.png"),
|
2017-02-27 02:52:24 +02:00
|
|
|
groups = {handy=1, not_in_creative_inventory=1, mesecon = 2},
|
2015-06-29 20:55:56 +03:00
|
|
|
drop = "node mesecons_lightstone:lightstone_off",
|
2017-01-04 23:36:51 +02:00
|
|
|
is_ground_content = false,
|
2017-02-01 23:12:08 +02:00
|
|
|
-- Real light level: 15 (Minetest caps at 14)
|
2017-01-04 11:11:35 +02:00
|
|
|
light_source = 14,
|
2017-02-11 19:46:23 +02:00
|
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
2015-06-29 20:55:56 +03:00
|
|
|
mesecons = {effector = {
|
|
|
|
action_off = function (pos, node)
|
|
|
|
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_off")
|
|
|
|
end
|
2017-02-22 17:22:28 +02:00
|
|
|
}},
|
|
|
|
_mcl_blast_resistance = 1.5,
|
2017-02-27 02:52:24 +02:00
|
|
|
_mcl_hardness = 0.3,
|
2015-06-29 20:55:56 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "node mesecons_lightstone:lightstone_off",
|
|
|
|
recipe = {
|
2017-01-09 19:45:34 +02:00
|
|
|
{'',"mesecons:redstone",''},
|
2017-02-08 19:54:56 +02:00
|
|
|
{"mesecons:redstone",'mcl_nether:glowstone',"mesecons:redstone"},
|
2017-01-09 19:45:34 +02:00
|
|
|
{'','mesecons:redstone',''},
|
2015-06-29 20:55:56 +03:00
|
|
|
}
|
|
|
|
})
|