1
0
Fork 0
MineClone2/mods/ITEMS/REDSTONE/mesecons_lightstone/init.lua

41 lines
1.3 KiB
Lua
Raw Normal View History

2015-06-29 17:55:56 +00: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},
is_ground_content = false,
2015-06-29 17:55:56 +00:00
description= "Redstone Lamp",
sounds = mcl_sounds.node_sound_stone_defaults(),
2015-06-29 17:55:56 +00:00
mesecons = {effector = {
action_on = function (pos, node)
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_on")
end
2017-02-22 15:22:28 +00:00
}},
_mcl_blast_resistance = 1.5,
2015-06-29 17:55:56 +00:00
})
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",
is_ground_content = false,
2017-02-01 21:12:08 +00:00
-- Real light level: 15 (Minetest caps at 14)
2017-01-04 09:11:35 +00:00
light_source = 14,
sounds = mcl_sounds.node_sound_stone_defaults(),
2015-06-29 17:55:56 +00:00
mesecons = {effector = {
action_off = function (pos, node)
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_off")
end
2017-02-22 15:22:28 +00:00
}},
_mcl_blast_resistance = 1.5,
2015-06-29 17:55:56 +00:00
})
minetest.register_craft({
output = "node mesecons_lightstone:lightstone_off",
recipe = {
2017-01-09 17:45:34 +00:00
{'',"mesecons:redstone",''},
{"mesecons:redstone",'mcl_nether:glowstone',"mesecons:redstone"},
2017-01-09 17:45:34 +00:00
{'','mesecons:redstone',''},
2015-06-29 17:55:56 +00:00
}
})