Version 0.41.3
[MineClone/MineClone2/MineClone2-Fixes.git] / mods / ITEMS / REDSTONE / mesecons_lightstone / init.lua
blob14a72accac0f56695af0d3f7f535f2dc4fb8b60a
1 minetest.register_node("mesecons_lightstone:lightstone_off", {
2 tiles = {"jeija_lightstone_gray_off.png"},
3 groups = {handy=1, mesecon_effector_off = 1, mesecon = 2},
4 is_ground_content = false,
5 description= "Redstone Lamp",
6 _doc_items_longdesc = "Redstone lamps are simple redstone components which glow brightly (light level 14) when they receive redstone power.",
7 sounds = mcl_sounds.node_sound_glass_defaults(),
8 mesecons = {effector = {
9 action_on = function (pos, node)
10 minetest.swap_node(pos, {name="mesecons_lightstone:lightstone_on", param2 = node.param2})
11 end,
12 rules = mesecon.rules.alldirs,
13 }},
14 _mcl_blast_resistance = 1.5,
15 _mcl_hardness = 0.3,
18 minetest.register_node("mesecons_lightstone:lightstone_on", {
19 tiles = {"jeija_lightstone_gray_on.png"},
20 groups = {handy=1, not_in_creative_inventory=1, mesecon = 2, opaque = 1},
21 drop = "node mesecons_lightstone:lightstone_off",
22 is_ground_content = false,
23 paramtype = "light",
24 -- Real light level: 15 (Minetest caps at 14)
25 light_source = 14,
26 sounds = mcl_sounds.node_sound_glass_defaults(),
27 mesecons = {effector = {
28 action_off = function (pos, node)
29 minetest.swap_node(pos, {name="mesecons_lightstone:lightstone_off", param2 = node.param2})
30 end,
31 rules = mesecon.rules.alldirs,
32 }},
33 _mcl_blast_resistance = 1.5,
34 _mcl_hardness = 0.3,
37 minetest.register_craft({
38 output = "mesecons_lightstone:lightstone_off",
39 recipe = {
40 {'',"mesecons:redstone",''},
41 {"mesecons:redstone",'mcl_nether:glowstone',"mesecons:redstone"},
42 {'','mesecons:redstone',''},
46 -- Add entry alias for the Help
47 if minetest.get_modpath("doc") then
48 doc.add_entry_alias("nodes", "mesecons_lightstone:lightstone_off", "nodes", "mesecons_lightstone:lightstone_on")
49 end