forked from MineClone5/MineClone5
Add redstone block and lever help
This commit is contained in:
parent
5ec6841cfa
commit
ff6e4d5a83
|
@ -73,6 +73,7 @@ mcl_torches.register_torch("mesecon_torch_on", "Redstone Torch", "jeija_torches_
|
|||
|
||||
minetest.register_node("mesecons_torch:redstoneblock", {
|
||||
description = "Block of Redstone",
|
||||
_doc_items_longdesc = "A block of redstone permanently supplies redstone power to its surrounding blocks.",
|
||||
tiles = {"redstone_redstone_block.png"},
|
||||
stack_max = 64,
|
||||
groups = {pickaxey=1},
|
||||
|
|
|
@ -30,6 +30,8 @@ minetest.register_node("mesecons_walllever:wall_lever_off", {
|
|||
groups = {handy=1, dig_by_water=1},
|
||||
is_ground_content = false,
|
||||
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)
|
||||
mesecon:swap_node(pos, "mesecons_walllever:wall_lever_on")
|
||||
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,
|
||||
drop = '"mesecons_walllever:wall_lever_off" 1',
|
||||
description="Lever",
|
||||
_doc_items_create_entry = false,
|
||||
on_rightclick = function (pos, node)
|
||||
mesecon:swap_node(pos, "mesecons_walllever:wall_lever_off")
|
||||
mesecon:receptor_off(pos, mesecon.rules.buttonlike_get(node))
|
||||
|
|
Loading…
Reference in New Issue