Update helptext of obsidian
[MineClone/MineClone2.git] / mods / ITEMS / REDSTONE / mesecons_lightstone / init.lua
blobc09bcf59260e16bc834a16313e649aa04b5a91b9
1 local S = minetest.get_translator("mesecons_lightstone")
3 local light = minetest.LIGHT_MAX
5 minetest.register_node("mesecons_lightstone:lightstone_off", {
6 tiles = {"jeija_lightstone_gray_off.png"},
7 groups = {handy=1, mesecon_effector_off = 1, mesecon = 2},
8 is_ground_content = false,
9 description= S("Redstone Lamp"),
10 _tt_help = S("Glows when powered by redstone power"),
11 _doc_items_longdesc = S("Redstone lamps are simple redstone components which glow brightly (light level @1) when they receive redstone power.", light),
12 sounds = mcl_sounds.node_sound_glass_defaults(),
13 mesecons = {effector = {
14 action_on = function (pos, node)
15 minetest.swap_node(pos, {name="mesecons_lightstone:lightstone_on", param2 = node.param2})
16 end,
17 rules = mesecon.rules.alldirs,
18 }},
19 _mcl_blast_resistance = 0.3,
20 _mcl_hardness = 0.3,
23 minetest.register_node("mesecons_lightstone:lightstone_on", {
24 tiles = {"jeija_lightstone_gray_on.png"},
25 groups = {handy=1, not_in_creative_inventory=1, mesecon = 2, opaque = 1},
26 drop = "node mesecons_lightstone:lightstone_off",
27 is_ground_content = false,
28 paramtype = "light",
29 light_source = light,
30 sounds = mcl_sounds.node_sound_glass_defaults(),
31 mesecons = {effector = {
32 action_off = function (pos, node)
33 minetest.swap_node(pos, {name="mesecons_lightstone:lightstone_off", param2 = node.param2})
34 end,
35 rules = mesecon.rules.alldirs,
36 }},
37 _mcl_blast_resistance = 0.3,
38 _mcl_hardness = 0.3,
41 minetest.register_craft({
42 output = "mesecons_lightstone:lightstone_off",
43 recipe = {
44 {'',"mesecons:redstone",''},
45 {"mesecons:redstone",'mcl_nether:glowstone',"mesecons:redstone"},
46 {'','mesecons:redstone',''},
50 -- Add entry alias for the Help
51 if minetest.get_modpath("doc") then
52 doc.add_entry_alias("nodes", "mesecons_lightstone:lightstone_off", "nodes", "mesecons_lightstone:lightstone_on")
53 end