0
0
Fork 0

Add redstone block and lever help

This commit is contained in:
Wuzzy 2017-03-11 03:56:29 +01:00
parent 5ec6841cfa
commit ff6e4d5a83
2 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,7 @@ mcl_torches.register_torch("mesecon_torch_on", "Redstone Torch", "jeija_torches_
minetest.register_node("mesecons_torch:redstoneblock", { minetest.register_node("mesecons_torch:redstoneblock", {
description = "Block of Redstone", description = "Block of Redstone",
_doc_items_longdesc = "A block of redstone permanently supplies redstone power to its surrounding blocks.",
tiles = {"redstone_redstone_block.png"}, tiles = {"redstone_redstone_block.png"},
stack_max = 64, stack_max = 64,
groups = {pickaxey=1}, groups = {pickaxey=1},

View File

@ -30,6 +30,8 @@ minetest.register_node("mesecons_walllever:wall_lever_off", {
groups = {handy=1, dig_by_water=1}, groups = {handy=1, dig_by_water=1},
is_ground_content = false, is_ground_content = false,
description="Lever", description="Lever",
_doc_items_longdesc = "A lever is a redstone component which can be flipped on and off. It supplies redstone power to the blocks behind while it is in the “on” state.",
_doc_items_usagehelp = "Right-click the lever to flip it on or off.",
on_rightclick = function (pos, node) on_rightclick = function (pos, node)
mesecon:swap_node(pos, "mesecons_walllever:wall_lever_on") mesecon:swap_node(pos, "mesecons_walllever:wall_lever_on")
mesecon:receptor_on(pos, mesecon.rules.buttonlike_get(node)) mesecon:receptor_on(pos, mesecon.rules.buttonlike_get(node))
@ -72,6 +74,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", {
is_ground_content = false, is_ground_content = false,
drop = '"mesecons_walllever:wall_lever_off" 1', drop = '"mesecons_walllever:wall_lever_off" 1',
description="Lever", description="Lever",
_doc_items_create_entry = false,
on_rightclick = function (pos, node) on_rightclick = function (pos, node)
mesecon:swap_node(pos, "mesecons_walllever:wall_lever_off") mesecon:swap_node(pos, "mesecons_walllever:wall_lever_off")
mesecon:receptor_off(pos, mesecon.rules.buttonlike_get(node)) mesecon:receptor_off(pos, mesecon.rules.buttonlike_get(node))