Colorize some item tooltips

This commit is contained in:
Wuzzy 2020-03-12 02:29:30 +01:00
parent 7ee2340f5c
commit 6b529e1204
10 changed files with 14 additions and 13 deletions

View file

@ -146,7 +146,8 @@ minetest.register_craftitem("mcl_core:apple", {
-- TODO: Status effects
minetest.register_craftitem("mcl_core:apple_gold", {
description = minetest.colorize("#55FFFF", S("Golden Apple")),
-- TODO: Add special highlight color when this item is special
description = S("Golden Apple"),
_doc_items_longdesc = S("Golden apples are precious food items which can be eaten."),
wield_image = "mcl_core_apple_golden.png",
inventory_image = "mcl_core_apple_golden.png",

View file

@ -4,7 +4,7 @@ local S = minetest.get_translator("mcl_core")
minetest.register_node("mcl_core:cactus", {
description = S("Cactus"),
_tt_help = S("Grows on sand").."\n"..S("Contact damage: @1 per half second", 1),
_tt_help = S("Grows on sand").."\n"..minetest.colorize("#FFFF00", S("Contact damage: @1 per half second", 1)),
_doc_items_longdesc = S("This is a piece of cactus commonly found in dry areas, especially deserts. Over time, cacti will grow up to 3 blocks high on sand or red sand. A cactus hurts living beings touching it with a damage of 1 HP every half second. When a cactus block is broken, all cactus blocks connected above it will break as well."),
_doc_items_usagehelp = S("A cactus can only be placed on top of another cactus or any sand."),
drawtype = "nodebox",