mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Devtest: Extend tooltips of many items and tools (#10312)
Also show error message when using tools wrong
This commit is contained in:
parent
b3ace8f197
commit
9faeca3290
12 changed files with 147 additions and 60 deletions
|
@ -107,7 +107,8 @@ minetest.register_node("soundstuff:footstep_climbable", {
|
|||
|
||||
|
||||
minetest.register_craftitem("soundstuff:eat", {
|
||||
description = "Eat Sound Item",
|
||||
description = "Eat Sound Item".."\n"..
|
||||
"Makes a sound when 'eaten' (with punch key)",
|
||||
inventory_image = "soundstuff_eat.png",
|
||||
on_use = minetest.item_eat(0),
|
||||
sound = {
|
||||
|
@ -116,7 +117,9 @@ minetest.register_craftitem("soundstuff:eat", {
|
|||
})
|
||||
|
||||
minetest.register_tool("soundstuff:breaks", {
|
||||
description = "Break Sound Tool",
|
||||
description = "Break Sound Tool".."\n"..
|
||||
"Digs cracky=3 and more".."\n"..
|
||||
"Makes a sound when it breaks",
|
||||
inventory_image = "soundstuff_node_dug.png",
|
||||
sound = {
|
||||
breaks = { name = "soundstuff_mono", gain = 1.0 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue