Add extended tooltips

This commit is contained in:
Wuzzy 2020-02-19 04:54:17 +01:00
parent 71cee9920a
commit ba74546d48
81 changed files with 647 additions and 22 deletions

View file

@ -99,9 +99,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("Seagrass grows inside water on top of dirt, sand or gravel.")
tt_help = S("Grows in water on dirt, sand, gravel")
desc = S("Seagrass")
doc_create = true
doc_img = "mcl_ocean_seagrass.png"
@ -109,6 +110,7 @@ for s=1, #surfaces do
doc_create = false
end
minetest.register_node("mcl_ocean:seagrass_"..surfaces[s][1], {
_tt_help = tt_help,
_doc_items_entry_name = desc,
_doc_items_longdesc = doc_longdesc,
_doc_items_create_entry = doc_create,