2015-06-29 19:55:56 +02: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 01:52:24 +01:00
|
|
|
groups = {handy=1, mesecon_effector_off = 1, mesecon = 2},
|
2017-01-04 22:36:51 +01:00
|
|
|
is_ground_content = false,
|
2015-06-29 19:55:56 +02:00
|
|
|
description= "Redstone Lamp",
|
2017-03-11 03:38:08 +01:00
|
|
|
_doc_items_longdesc = "Redstone lamps are simple redstone components which glow brightly (light level 14) when they receive redstone power.",
|
2017-07-24 17:14:55 +02:00
|
|
|
sounds = mcl_sounds.node_sound_glass_defaults(),
|
2015-06-29 19:55:56 +02:00
|
|
|
mesecons = {effector = {
|
|
|
|
action_on = function (pos, node)
|
2017-07-31 00:12:21 +02:00
|
|
|
minetest.swap_node(pos, {name="mesecons_lightstone:lightstone_on", param2 = node.param2})
|
2017-09-14 02:20:47 +02:00
|
|
|
end,
|
|
|
|
rules = mesecon.rules.alldirs,
|
2017-02-22 16:22:28 +01:00
|
|
|
}},
|
|
|
|
_mcl_blast_resistance = 1.5,
|
2017-02-27 01:52:24 +01:00
|
|
|
_mcl_hardness = 0.3,
|
2015-06-29 19:55:56 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("mesecons_lightstone:lightstone_on", {
|
|
|
|
tiles = {"jeija_lightstone_gray_on.png"},
|
|
|
|
inventory_image = minetest.inventorycube("jeija_lightstone_gray_off.png"),
|
2018-01-09 15:19:10 +01:00
|
|
|
groups = {handy=1, not_in_creative_inventory=1, mesecon = 2, opaque = 1},
|
2015-06-29 19:55:56 +02:00
|
|
|
drop = "node mesecons_lightstone:lightstone_off",
|
2017-01-04 22:36:51 +01:00
|
|
|
is_ground_content = false,
|
2017-06-13 14:46:21 +02:00
|
|
|
paramtype = "light",
|
2017-02-01 22:12:08 +01:00
|
|
|
-- Real light level: 15 (Minetest caps at 14)
|
2017-01-04 10:11:35 +01:00
|
|
|
light_source = 14,
|
2017-07-24 17:14:55 +02:00
|
|
|
sounds = mcl_sounds.node_sound_glass_defaults(),
|
2015-06-29 19:55:56 +02:00
|
|
|
mesecons = {effector = {
|
|
|
|
action_off = function (pos, node)
|
2017-07-31 00:12:21 +02:00
|
|
|
minetest.swap_node(pos, {name="mesecons_lightstone:lightstone_off", param2 = node.param2})
|
2017-09-14 02:20:47 +02:00
|
|
|
end,
|
|
|
|
rules = mesecon.rules.alldirs,
|
2017-02-22 16:22:28 +01:00
|
|
|
}},
|
|
|
|
_mcl_blast_resistance = 1.5,
|
2017-02-27 01:52:24 +01:00
|
|
|
_mcl_hardness = 0.3,
|
2015-06-29 19:55:56 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2017-03-21 04:27:50 +01:00
|
|
|
output = "mesecons_lightstone:lightstone_off",
|
2015-06-29 19:55:56 +02:00
|
|
|
recipe = {
|
2017-01-09 18:45:34 +01:00
|
|
|
{'',"mesecons:redstone",''},
|
2017-02-08 18:54:56 +01:00
|
|
|
{"mesecons:redstone",'mcl_nether:glowstone',"mesecons:redstone"},
|
2017-01-09 18:45:34 +01:00
|
|
|
{'','mesecons:redstone',''},
|
2015-06-29 19:55:56 +02:00
|
|
|
}
|
|
|
|
})
|
2017-03-21 04:27:50 +01:00
|
|
|
|
|
|
|
-- Add entry alias for the Help
|
|
|
|
if minetest.get_modpath("doc") then
|
|
|
|
doc.add_entry_alias("nodes", "mesecons_lightstone:lightstone_off", "nodes", "mesecons_lightstone:lightstone_on")
|
|
|
|
end
|
|
|
|
|