Add [tt] support
This commit is contained in:
parent
1d43fb5334
commit
a3ff3f290e
@ -24,6 +24,7 @@ the installed mods.
|
||||
* `default` and `technic`: For crafting recipe for electronic point teleporter
|
||||
|
||||
Also supported (but not through a direct dependency) is the `doc_items` mod from the Documentation System modpack; help texts for all tools are provided.
|
||||
It also supports the `tt` mod for tooltip extensions.
|
||||
|
||||
## Configuration
|
||||
|
||||
|
6
init.lua
6
init.lua
@ -90,6 +90,8 @@ local use_inf = baseuse
|
||||
|
||||
minetest.register_tool("teletool:teletool_infinite", {
|
||||
description = S("Infinite point teleporter"),
|
||||
-- Special fields for [tt] and [doc_items] mods
|
||||
_tt_help = S("Punch location to teleport"),
|
||||
_doc_items_longdesc = desc_inf,
|
||||
_doc_items_usagehelp = use_inf,
|
||||
range = REACH,
|
||||
@ -122,6 +124,8 @@ if(minetest.get_modpath("technic")) then
|
||||
|
||||
minetest.register_tool("teletool:teletool_technic", {
|
||||
description = S("Electronic point teleporter"),
|
||||
-- Special fields for [tt] and [doc_items] mods
|
||||
_tt_help = S("Punch location to teleport").."\n"..S("Must be charged in a battery box"),
|
||||
_doc_items_longdesc = desc_technic,
|
||||
_doc_items_usagehelp = use_technic,
|
||||
range = REACH,
|
||||
@ -168,6 +172,8 @@ if(minetest.get_modpath("mana") ~= nil) then
|
||||
|
||||
minetest.register_tool("teletool:teletool_mana", {
|
||||
description = S("Magical point teleporter"),
|
||||
-- Special fields for [tt] and [doc_items] mods
|
||||
_tt_help = S("Punch location to teleport").."\n"..S("Mana cost: @1", teletool.settings.cost_mana),
|
||||
_doc_items_longdesc = desc_mana,
|
||||
_doc_items_usagehelp = use_mana,
|
||||
range = REACH,
|
||||
|
2
mod.conf
2
mod.conf
@ -1,4 +1,4 @@
|
||||
name = teletool
|
||||
title = Point Teleporter
|
||||
description = Adds a short-distance teleportation device which allows the user to instantly change the position in front of a pointed node.
|
||||
optional_depends = technic, default, mana, awards
|
||||
optional_depends = technic, default, mana, awards, doc_items, tt
|
||||
|
Loading…
x
Reference in New Issue
Block a user