Add extended tooltips
This commit is contained in:
parent
71cee9920a
commit
ba74546d48
81 changed files with 647 additions and 22 deletions
|
@ -99,6 +99,16 @@ function mesecon.register_pressure_plate(basename, description, textures_off, te
|
|||
if not longdesc then
|
||||
longdesc = S("A pressure plate is a redstone component which supplies its surrounding blocks with redstone power while someone or something rests on top of it.")
|
||||
end
|
||||
local tt = S("Provides redstone power when pushed")
|
||||
if not activated_by then
|
||||
tt = tt .. "\n" .. S("Pushed by players, mobs and objects")
|
||||
elseif activated_by.mob and activated_by.player then
|
||||
tt = tt .. "\n" .. S("Pushed by players and mobs")
|
||||
elseif activated_by.mob then
|
||||
tt = tt .. "\n" .. S("Pushed by mobs")
|
||||
elseif activated_by.player then
|
||||
tt = tt .. "\n" .. S("Pushed by players")
|
||||
end
|
||||
|
||||
mesecon.register_node(basename, {
|
||||
drawtype = "nodebox",
|
||||
|
@ -125,6 +135,7 @@ function mesecon.register_pressure_plate(basename, description, textures_off, te
|
|||
|
||||
mesecons = {receptor = { state = mesecon.state.off, rules = mesecon.rules.pplate }},
|
||||
_doc_items_longdesc = longdesc,
|
||||
_tt_help = tt,
|
||||
},{
|
||||
node_box = pp_box_on,
|
||||
selection_box = pp_box_on,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue