mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +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
|
@ -44,7 +44,8 @@ minetest.register_node("experimental:callback_node", {
|
|||
})
|
||||
|
||||
minetest.register_tool("experimental:privatizer", {
|
||||
description = "Node Meta Privatizer",
|
||||
description = "Node Meta Privatizer".."\n"..
|
||||
"Punch: Marks 'infotext' and 'formspec' meta fields of chest as private",
|
||||
inventory_image = "experimental_tester_tool_1.png",
|
||||
groups = { testtool = 1, disable_repair = 1 },
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
|
@ -67,7 +68,8 @@ minetest.register_tool("experimental:privatizer", {
|
|||
})
|
||||
|
||||
minetest.register_tool("experimental:particle_spawner", {
|
||||
description = "Particle Spawner",
|
||||
description = "Particle Spawner".."\n"..
|
||||
"Punch: Spawn random test particle",
|
||||
inventory_image = "experimental_tester_tool_1.png^[invert:g",
|
||||
groups = { testtool = 1, disable_repair = 1 },
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue