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"),
|
|
|
|
groups = {cracky=2, mesecon_effector_off = 1, mesecon = 2},
|
2017-01-05 00:36:51 +03:00
|
|
|
is_ground_content = false,
|
2015-06-29 20:55:56 +03:00
|
|
|
description= "Redstone Lamp",
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
mesecons = {effector = {
|
|
|
|
action_on = function (pos, node)
|
|
|
|
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_on")
|
|
|
|
end
|
|
|
|
}}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("mesecons_lightstone:lightstone_on", {
|
|
|
|
tiles = {"jeija_lightstone_gray_on.png"},
|
|
|
|
inventory_image = minetest.inventorycube("jeija_lightstone_gray_off.png"),
|
|
|
|
groups = {cracky=2,not_in_creative_inventory=1, mesecon = 2},
|
|
|
|
drop = "node mesecons_lightstone:lightstone_off",
|
2017-01-05 00:36:51 +03:00
|
|
|
is_ground_content = false,
|
2017-01-04 12:11:35 +03:00
|
|
|
light_source = 14,
|
2015-06-29 20:55:56 +03:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
mesecons = {effector = {
|
|
|
|
action_off = function (pos, node)
|
|
|
|
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_off")
|
|
|
|
end
|
|
|
|
}}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "node mesecons_lightstone:lightstone_off",
|
|
|
|
recipe = {
|
2017-01-04 07:04:13 +03:00
|
|
|
{'',"mesecons:redstone_dust",''},
|
|
|
|
{"mesecons:redstone_dust",'default:glowstone',"mesecons:redstone_dust"},
|
|
|
|
{'','mesecons:redstone_dust',''},
|
2015-06-29 20:55:56 +03:00
|
|
|
}
|
|
|
|
})
|