Add extended tooltips
This commit is contained in:
parent
71cee9920a
commit
ba74546d48
81 changed files with 647 additions and 22 deletions
|
@ -152,9 +152,10 @@ for s=1, #surfaces do
|
|||
sounds.dig = leaf_sounds.dig
|
||||
sounds.dug = leaf_sounds.dug
|
||||
sounds.place = leaf_sounds.place
|
||||
local doc_longdesc, doc_img, desc
|
||||
local tt_help, doc_longdesc, doc_img, desc
|
||||
if surfaces[s][1] == "dirt" then
|
||||
doc_longdesc = S("Kelp grows inside water on top of dirt, sand or gravel.")
|
||||
tt_help = S("Grows in water on dirt, sand, gravel")
|
||||
desc = S("Kelp")
|
||||
doc_create = true
|
||||
doc_img = "mcl_ocean_kelp_item.png"
|
||||
|
@ -162,6 +163,7 @@ for s=1, #surfaces do
|
|||
doc_create = false
|
||||
end
|
||||
minetest.register_node("mcl_ocean:kelp_"..surfaces[s][1], {
|
||||
_tt_help = tt_help,
|
||||
_doc_items_entry_name = desc,
|
||||
_doc_items_longdesc = doc_longdesc,
|
||||
_doc_items_create_entry = doc_create,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue