FriendlyGamer 06d6939fc2 Another Toolranks Extras Update Just Arrived | 4 years ago | |
---|---|---|
.. | ||
locale | 4 years ago | |
.gitignore | 4 years ago | |
.luacheckrc | 4 years ago | |
.pre-commit-config.yaml | 4 years ago | |
.travis.yml | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
hoe.lua | 4 years ago | |
init.lua | 4 years ago | |
mod.conf | 4 years ago | |
screenshot.png | 4 years ago | |
settingtypes.txt | 4 years ago | |
tool_types.lua | 4 years ago |
This minetest mod extends toolranks. It adds support for minetest-games
’s mods (except default
).
This mod currently adds support for hoes from farming
mod.
This mod is compatible with farming redo (nothing breaks if you have both installed).
This mod also adds an API to register new types of tools for toolranks.
--[[
-- `keyword` is a string to be detected in tool description
-- `tool_type` is a localized tool type (if nil, then unregister the keyword)
-- `node_dug_display` is an (optional) alternative localized display
-- of "Node Dug" (if false, then unregister the display)
--]]
toolranks_extras.register_tool_type(keyword, tool_type, [node_dug_display])
-- example
toolranks_extras.register_tool_type("battle_axe", S("battle axe"))
toolranks_extras.register_tool_type("bow", S("bow"), S("Arrows thrown"))
farming
). This is useful if you want to reimplement minetest-games modules
with a toolranks
support. It is also possible to ask me to automatically disabling support if your mod is detected (like it is done with farming redo).