mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +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
|
@ -121,7 +121,11 @@ end
|
|||
-- Sneak+punch: Select pathfinding algorithm
|
||||
-- Place: Select destination node
|
||||
minetest.register_tool("testpathfinder:testpathfinder", {
|
||||
description = S("Pathfinder Tester"),
|
||||
description = S("Pathfinder Tester") .."\n"..
|
||||
S("Finds path between 2 points") .."\n"..
|
||||
S("Place on node: Select destination") .."\n"..
|
||||
S("Punch: Find path from here") .."\n"..
|
||||
S("Sneak+Punch: Change algorithm"),
|
||||
inventory_image = "testpathfinder_testpathfinder.png",
|
||||
groups = { testtool = 1, disable_repair = 1 },
|
||||
on_use = find_path_or_set_algorithm,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue