mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-27 05:13:48 +01:00
Add piston and pressure plate help
parent
ff6e4d5a83
commit
ffb2f7008d
@ -151,9 +151,13 @@ local pistonspec_normal = {
|
|||||||
piston_up = "mesecons_pistons:piston_up_normal_off",
|
piston_up = "mesecons_pistons:piston_up_normal_off",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local usagehelp_piston = "This block can have one of 6 possible orientations. On placement, the pusher will face towards your reverse looking direction."
|
||||||
|
|
||||||
-- offstate
|
-- offstate
|
||||||
minetest.register_node("mesecons_pistons:piston_normal_off", {
|
minetest.register_node("mesecons_pistons:piston_normal_off", {
|
||||||
description = "Piston",
|
description = "Piston",
|
||||||
|
_doc_items_longdesc = "A piston is a redstone component with a pusher which pushes the block or blocks in front of it when it is supplied with redstone power. Not all blocks can be pushed, however.",
|
||||||
|
_doc_items_usagehelp = usagehelp_piston,
|
||||||
tiles = {
|
tiles = {
|
||||||
"mesecons_piston_top.png",
|
"mesecons_piston_top.png",
|
||||||
"mesecons_piston_bottom.png",
|
"mesecons_piston_bottom.png",
|
||||||
@ -244,6 +248,9 @@ local pistonspec_sticky = {
|
|||||||
-- offstate
|
-- offstate
|
||||||
minetest.register_node("mesecons_pistons:piston_sticky_off", {
|
minetest.register_node("mesecons_pistons:piston_sticky_off", {
|
||||||
description = "Sticky Piston",
|
description = "Sticky Piston",
|
||||||
|
_doc_items_longdesc = "A sticky piston is a redstone component with a sticky pusher which can be extended and retracted. It extends when it is supplied with redstone power. When the pusher extends, it pushes the block or blocks in front of it. When it retracts, it pulls back the single block in front of it. Note that not all blocks can be pushed or pulled.",
|
||||||
|
_doc_items_usagehelp = usagehelp_piston,
|
||||||
|
|
||||||
tiles = {
|
tiles = {
|
||||||
"mesecons_piston_top.png",
|
"mesecons_piston_top.png",
|
||||||
"mesecons_piston_bottom.png",
|
"mesecons_piston_bottom.png",
|
||||||
|
@ -71,6 +71,7 @@ function mesecon:register_pressure_plate(offstate, onstate, description, texture
|
|||||||
groups = groups_off,
|
groups = groups_off,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
description = description,
|
description = description,
|
||||||
|
_doc_items_longdesc = "A pressure place is a redstone component which supplies its surrounding blocks with redstone power while someone or something rests on top of it.",
|
||||||
pressureplate = ppspec,
|
pressureplate = ppspec,
|
||||||
on_timer = pp_on_timer,
|
on_timer = pp_on_timer,
|
||||||
sounds = sounds,
|
sounds = sounds,
|
||||||
|
Loading…
Reference in New Issue
Block a user