Add _tt_help to many more items

This commit is contained in:
Wuzzy 2020-03-08 03:18:47 +01:00
parent ba74546d48
commit cbda2ef326
19 changed files with 88 additions and 34 deletions

View file

@ -132,6 +132,7 @@ end
minetest.register_craftitem("mcl_ocean:kelp", {
description = S("Kelp"),
_tt_help = S("Grows in water on dirt, sand, gravel"),
_doc_items_create_entry = false,
inventory_image = "mcl_ocean_kelp_item.png",
wield_image = "mcl_ocean_kelp_item.png",
@ -155,7 +156,6 @@ for s=1, #surfaces do
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"
@ -163,7 +163,6 @@ 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,