Skip to content
Snippets Groups Projects
Commit 3c44a9be authored by OgelGames's avatar OgelGames Committed by Hugo Locurcio
Browse files

Add `toolranks` support (#37)

* Add toolranks support

* Update the changelog for `toolranks` support
parent 7ea70d55
No related branches found
No related tags found
No related merge requests found
......@@ -30,4 +30,5 @@ read_globals = {
"frame",
"intllib",
"mg",
"toolranks",
}
......@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
### Added
- More Ores tools now have [`toolranks`](https://github.com/lisacvuk/minetest-toolranks) support.
## [2.0.0] - 2019-11-25
### Added
......
......@@ -232,6 +232,14 @@ local function add_ore(modname, description, mineral_name, oredef)
end
end
-- Toolranks support
if minetest.get_modpath("toolranks") then
minetest.override_item(fulltool_name, {
original_description = tdef.description,
description = toolranks.create_description(tdef.description, 0, 1),
after_use = toolranks.new_afteruse})
end
minetest.register_alias(tool_name .. tool_post, fulltool_name)
if use_frame then
frame.register(fulltool_name)
......
name = moreores
description = Adds new ore types.
depends = default
optional_depends = carts,farming,frame,intllib,mg
optional_depends = carts,farming,frame,intllib,mg,toolranks
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment