mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-08-27 20:17:25 +02:00
The values have been updated according to this list: https://minecraft.gamepedia.com/Module:Blast_resistance_values
55 lines
1.8 KiB
Lua
55 lines
1.8 KiB
Lua
local S = minetest.get_translator("mesecons_lightstone")
|
|
|
|
local light = minetest.LIGHT_MAX
|
|
|
|
minetest.register_node("mesecons_lightstone:lightstone_off", {
|
|
tiles = {"jeija_lightstone_gray_off.png"},
|
|
groups = {handy=1, mesecon_effector_off = 1, mesecon = 2},
|
|
is_ground_content = false,
|
|
description= S("Redstone Lamp"),
|
|
_tt_help = S("Glows when powered by redstone power"),
|
|
_doc_items_longdesc = S("Redstone lamps are simple redstone components which glow brightly (light level @1) when they receive redstone power.", light),
|
|
sounds = mcl_sounds.node_sound_glass_defaults(),
|
|
mesecons = {effector = {
|
|
action_on = function (pos, node)
|
|
minetest.swap_node(pos, {name="mesecons_lightstone:lightstone_on", param2 = node.param2})
|
|
end,
|
|
rules = mesecon.rules.alldirs,
|
|
}},
|
|
_mcl_blast_resistance = 0.3,
|
|
_mcl_hardness = 0.3,
|
|
})
|
|
|
|
minetest.register_node("mesecons_lightstone:lightstone_on", {
|
|
tiles = {"jeija_lightstone_gray_on.png"},
|
|
groups = {handy=1, not_in_creative_inventory=1, mesecon = 2, opaque = 1},
|
|
drop = "node mesecons_lightstone:lightstone_off",
|
|
is_ground_content = false,
|
|
paramtype = "light",
|
|
light_source = light,
|
|
sounds = mcl_sounds.node_sound_glass_defaults(),
|
|
mesecons = {effector = {
|
|
action_off = function (pos, node)
|
|
minetest.swap_node(pos, {name="mesecons_lightstone:lightstone_off", param2 = node.param2})
|
|
end,
|
|
rules = mesecon.rules.alldirs,
|
|
}},
|
|
_mcl_blast_resistance = 0.3,
|
|
_mcl_hardness = 0.3,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "mesecons_lightstone:lightstone_off",
|
|
recipe = {
|
|
{'',"mesecons:redstone",''},
|
|
{"mesecons:redstone",'mcl_nether:glowstone',"mesecons:redstone"},
|
|
{'','mesecons:redstone',''},
|
|
}
|
|
})
|
|
|
|
-- 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
|
|
|