mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01:00
Add toolranks mod and add its support for Golden and Nyan tools
This commit is contained in:
parent
635847900d
commit
1649c53471
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -140,3 +140,6 @@
|
||||
path = mods/weather_pack
|
||||
url = https://github.com/sys4-fr/weather_pack.git
|
||||
branch = nalc
|
||||
[submodule "mods/toolranks"]
|
||||
path = mods/toolranks
|
||||
url = https://github.com/lisacvuk/minetest-toolranks.git
|
||||
|
@ -14,3 +14,4 @@ nyancat?
|
||||
moreores?
|
||||
moreblocks?
|
||||
carts?
|
||||
toolranks?
|
||||
|
@ -124,3 +124,28 @@ minetest.register_alias("default:pick_nyan", "nalc:pick_nyan")
|
||||
minetest.register_alias("default:axe_nyan", "nalc:axe_nyan")
|
||||
minetest.register_alias("default:shovel_nyan", "nalc:shovel_nyan")
|
||||
minetest.register_alias("default:sword_nyan", "nalc:sword_nyan")
|
||||
|
||||
-- Toolranks
|
||||
if minetest.get_modpath("toolranks") then
|
||||
minetest.override_item(
|
||||
"nalc:pick_nyan",
|
||||
{
|
||||
original_description = "Nyan Pickaxe",
|
||||
description = toolranks.create_description("Nyan Pickaxe", 0, 1),
|
||||
after_use = toolranks.new_afteruse
|
||||
})
|
||||
minetest.override_item(
|
||||
"nalc:axe_nyan",
|
||||
{
|
||||
original_description = "Nyan Axe",
|
||||
description = toolranks.create_description("Nyan Axe", 0, 1),
|
||||
after_use = toolranks.new_afteruse
|
||||
})
|
||||
minetest.override_item(
|
||||
"nalc:shovel_nya",
|
||||
{
|
||||
original_description = "Nyan Shovel",
|
||||
description = toolranks.create_description("Nyan Shovel", 0, 1),
|
||||
after_use = toolranks.new_afteruse
|
||||
})
|
||||
end
|
||||
|
@ -75,3 +75,29 @@ minetest.register_tool(
|
||||
damage_groups = {fleshy = 10},
|
||||
}
|
||||
})
|
||||
|
||||
-- Toolranks
|
||||
if minetest.get_modpath("toolranks") then
|
||||
|
||||
minetest.override_item(
|
||||
"nalc:pick_gold",
|
||||
{
|
||||
original_description = "Golden Pickaxe",
|
||||
description = toolranks.create_description("Golden Pickaxe", 0, 1),
|
||||
after_use = toolranks.new_afteruse
|
||||
})
|
||||
minetest.override_item(
|
||||
"nalc:axe_gold",
|
||||
{
|
||||
original_description = "Golden Axe",
|
||||
description = toolranks.create_description("Golden Axe", 0, 1),
|
||||
after_use = toolranks.new_afteruse
|
||||
})
|
||||
minetest.override_item(
|
||||
"nalc:shovel_gold",
|
||||
{
|
||||
original_description = "Golden Shovel",
|
||||
description = toolranks.create_description("Golden Shovel", 0, 1),
|
||||
after_use = toolranks.new_afteruse
|
||||
})
|
||||
end
|
||||
|
1
mods/toolranks
Submodule
1
mods/toolranks
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 3f94d76e53608cf7cc0a48faf9a0cccbb74a1eb3
|
@ -283,5 +283,6 @@ load_mod_claycrafter = true
|
||||
load_mod_weather_pack = true
|
||||
load_mod_nyancat = true
|
||||
load_mod_cherry_tree = true
|
||||
load_mod_toolranks = true
|
||||
|
||||
player_backend = files
|
||||
|
Loading…
Reference in New Issue
Block a user