5 Commits

Author SHA1 Message Date
0b6f669df4 Bump to version 2.1.0 2021-06-29 00:43:27 +02:00
3fe0ba8fcb Update pre-commit hooks to version 3.3.0 2020-10-28 16:43:27 +01:00
734f927f37 Fix Brazilian Portuguese translation...
...file format.
2020-07-25 14:26:57 +02:00
8cb3486791 Remove intllib from .luacheckrc 2020-07-25 14:26:57 +02:00
3f62fd3cf1 Declare the minimum supported Minetest version to 5.0.0
This information can be used by ContentDB.
2020-06-03 18:54:47 +02:00
6 changed files with 29 additions and 11 deletions

View File

@ -28,7 +28,6 @@ read_globals = {
"carts",
"farming",
"frame",
"intllib",
"mg",
"toolranks",
}

View File

@ -1,7 +1,8 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v3.3.0
hooks:
- id: fix-byte-order-marker
- id: end-of-file-fixer
- id: trailing-whitespace

View File

@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
## [2.1.0] - 2021-06-28
### Added
- More Ores tools now have [`toolranks`](https://github.com/lisacvuk/minetest-toolranks) support.
@ -61,6 +63,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Initial versioned release.
[Unreleased]: https://github.com/minetest-mods/moreores/compare/v2.0.0...HEAD
[Unreleased]: https://github.com/minetest-mods/moreores/compare/v2.1.0...HEAD
[2.1.0]: https://github.com/minetest-mods/moreores/compare/v2.0.0...v2.1.0
[2.0.0]: https://github.com/minetest-mods/moreores/compare/v1.1.0...v2.0.0
[1.1.0]: https://github.com/minetest-mods/moreores/compare/v1.0.0...v1.1.0

View File

@ -216,11 +216,19 @@ local function add_ore(modname, description, mineral_name, oredef)
farming.register_hoe(fulltool_name, tdef)
end
if oredef.makes.ingot then
minetest.register_craft({
output = fulltool_name,
recipe = get_recipe(ingot, tool_name)
})
-- Hoe registration is handled above.
-- There are no crafting recipes for hoes, as they have been
-- deprecated from Minetest Game:
-- https://github.com/minetest/minetest_game/commit/9c459e77a
if tool_name ~= "hoe" then
minetest.register_tool(fulltool_name, tdef)
if oredef.makes.ingot then
minetest.register_craft({
output = fulltool_name,
recipe = get_recipe(ingot, tool_name)
})
end
end
-- Toolranks support
@ -253,6 +261,9 @@ local oredefs = {
pick = {
cracky = {times = {[1] = 2.60, [2] = 1.00, [3] = 0.60}, uses = 100, maxlevel = 1},
},
hoe = {
uses = 300,
},
shovel = {
crumbly = {times = {[1] = 1.10, [2] = 0.40, [3] = 0.25}, uses = 100, maxlevel = 1},
},
@ -283,6 +294,9 @@ local oredefs = {
pick = {
cracky = {times = {[1] = 2.25, [2] = 0.55, [3] = 0.35}, uses = 200, maxlevel = 2}
},
hoe = {
uses = 1000,
},
shovel = {
crumbly = {times = {[1] = 0.70, [2] = 0.35, [3] = 0.20}, uses = 200, maxlevel = 2},
},
@ -357,11 +371,11 @@ if minetest.get_modpath("carts") then
end
minetest.register_craft({
output = "moreores:copper_rail 18",
output = "moreores:copper_rail 24",
recipe = {
{"default:copper_ingot", "group:wood", "default:copper_ingot"},
{"default:copper_ingot", "", "default:copper_ingot"},
{"default:copper_ingot", "group:wood", "default:copper_ingot"},
{"default:copper_ingot", "group:stick", "default:copper_ingot"},
{"default:copper_ingot", "", "default:copper_ingot"},
},
})

View File

@ -2,3 +2,4 @@ name = moreores
description = Adds new ore types.
depends = default
optional_depends = carts,farming,frame,mg,toolranks
min_minetest_version = 5.0.0