mirror of
https://github.com/louisroyer/minetest-toolranks-extras.git
synced 2024-12-20 12:55:45 +01:00
This minetest mod extends toolranks.
3a00a7e361
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v3...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
.github | ||
locale | ||
.gitattributes | ||
.gitignore | ||
.luacheckrc | ||
.pre-commit-config.yaml | ||
hoe.lua | ||
init.lua | ||
LICENSE | ||
mod.conf | ||
README.md | ||
screenshot.png | ||
settingtypes.txt | ||
tool_types.lua |
Toolranks Extras
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.
API
--[[
-- `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"))
License
- CC0-1.0, Louis Royer 2020
Settings
- Settings are available to disable support of some mods (currently only
farming
). This is useful if you want to reimplement minetest-games modules with atoolranks
support. It is also possible to ask me to automatically disabling support if your mod is detected (like it is done with farming redo). - Extras tool types registering can be disabled (registering function will still be available, but will do nothing).