1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-10 19:32:10 +00:00

DevTest: Explain purpose of most items in tooltips (#12833)

This commit is contained in:
Wuzzy 2022-10-09 14:05:22 +02:00 committed by GitHub
parent 804a318189
commit c1c68775b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 367 additions and 173 deletions

View file

@ -1,30 +1,34 @@
local S = minetest.get_translator("testfood")
minetest.register_craftitem("testfood:good1", {
description = S("Good Food (+1)"),
description = S("Good Food (+1)").."\n"..
S("Punch: Eat"),
inventory_image = "testfood_good.png",
on_use = minetest.item_eat(1),
})
minetest.register_craftitem("testfood:good5", {
description = S("Good Food (+5)"),
description = S("Good Food (+5)").."\n"..
S("Punch: Eat"),
inventory_image = "testfood_good2.png",
on_use = minetest.item_eat(5),
})
minetest.register_craftitem("testfood:bad1", {
description = S("Bad Food (-1)"),
description = S("Bad Food (-1)").."\n"..
S("Punch: Eat"),
inventory_image = "testfood_bad.png",
on_use = minetest.item_eat(-1),
})
minetest.register_craftitem("testfood:bad5", {
description = S("Bad Food (-5)"),
description = S("Bad Food (-5)").."\n"..
S("Punch: Eat"),
inventory_image = "testfood_bad2.png",
on_use = minetest.item_eat(-5),
})
minetest.register_craftitem("testfood:replace1", {
description = S("Replacing Food (+1)").."\n"..
S("Replaced with 'Good Food (+1)' when eaten"),
S("Punch: Eat and replace with 'Good Food (+1)'"),
inventory_image = "testfood_replace.png",
on_use = minetest.item_eat(1, "testfood:good1"),
})