Renommage d'items
This commit is contained in:
parent
08a724b52a
commit
7e71a6fb19
@ -1,5 +1,5 @@
|
|||||||
minetest.register_tool(
|
minetest.register_tool(
|
||||||
"nalc_default:pick_gold",
|
":nalc:pick_gold",
|
||||||
{
|
{
|
||||||
description = "Golden Pickaxe",
|
description = "Golden Pickaxe",
|
||||||
inventory_image = "default_tool_goldpick.png",
|
inventory_image = "default_tool_goldpick.png",
|
||||||
@ -15,7 +15,7 @@ minetest.register_tool(
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool(
|
minetest.register_tool(
|
||||||
"nalc_default:shovel_gold",
|
":nalc:shovel_gold",
|
||||||
{
|
{
|
||||||
description = "Golden Shovel",
|
description = "Golden Shovel",
|
||||||
inventory_image = "default_tool_goldshovel.png",
|
inventory_image = "default_tool_goldshovel.png",
|
||||||
@ -31,7 +31,7 @@ minetest.register_tool(
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool(
|
minetest.register_tool(
|
||||||
"nalc_default:axe_gold",
|
":nalc:axe_gold",
|
||||||
{
|
{
|
||||||
description = "Golden Axe",
|
description = "Golden Axe",
|
||||||
inventory_image = "default_tool_goldaxe.png",
|
inventory_image = "default_tool_goldaxe.png",
|
||||||
@ -47,17 +47,17 @@ minetest.register_tool(
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool(
|
minetest.register_tool(
|
||||||
"nalc_default:sword_gold",
|
":nalc:sword_gold",
|
||||||
{
|
{
|
||||||
description = "Golden Sword",
|
description = "Golden Sword",
|
||||||
inventory_image = "default_tool_goldsword.png",
|
inventory_image = "default_tool_goldsword.png",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 0.8,
|
full_punch_interval = 1,
|
||||||
max_drop_level = 1,
|
max_drop_level = 1,
|
||||||
groupcaps = {
|
groupcaps = {
|
||||||
snappy = {times = {[1] = 1.9, [2] = 0.85, [3] = 0.125}, uses = 10, maxlevel = 3},
|
snappy = {times = {[1] = 1.9, [2] = 0.85, [3] = 0.125}, uses = 20, maxlevel = 3},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy = 5},
|
damage_groups = {fleshy = 7},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -65,21 +65,21 @@ minetest.register_tool(
|
|||||||
if minetest.get_modpath("toolranks") then
|
if minetest.get_modpath("toolranks") then
|
||||||
|
|
||||||
minetest.override_item(
|
minetest.override_item(
|
||||||
"nalc_default:pick_gold",
|
"nalc:pick_gold",
|
||||||
{
|
{
|
||||||
original_description = "Golden Pickaxe",
|
original_description = "Golden Pickaxe",
|
||||||
description = toolranks.create_description("Golden Pickaxe", 0, 1),
|
description = toolranks.create_description("Golden Pickaxe", 0, 1),
|
||||||
after_use = toolranks.new_afteruse
|
after_use = toolranks.new_afteruse
|
||||||
})
|
})
|
||||||
minetest.override_item(
|
minetest.override_item(
|
||||||
"nalc_default:axe_gold",
|
"nalc:axe_gold",
|
||||||
{
|
{
|
||||||
original_description = "Golden Axe",
|
original_description = "Golden Axe",
|
||||||
description = toolranks.create_description("Golden Axe", 0, 1),
|
description = toolranks.create_description("Golden Axe", 0, 1),
|
||||||
after_use = toolranks.new_afteruse
|
after_use = toolranks.new_afteruse
|
||||||
})
|
})
|
||||||
minetest.override_item(
|
minetest.override_item(
|
||||||
"nalc_default:shovel_gold",
|
"nalc:shovel_gold",
|
||||||
{
|
{
|
||||||
original_description = "Golden Shovel",
|
original_description = "Golden Shovel",
|
||||||
description = toolranks.create_description("Golden Shovel", 0, 1),
|
description = toolranks.create_description("Golden Shovel", 0, 1),
|
||||||
@ -88,7 +88,7 @@ if minetest.get_modpath("toolranks") then
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Aliases
|
-- Aliases
|
||||||
minetest.register_alias("default:pick_gold", "nalc_default:pick_gold")
|
minetest.register_alias("default:pick_gold", "nalc:pick_gold")
|
||||||
minetest.register_alias("default:shovel_gold", "nalc_default:shovel_gold")
|
minetest.register_alias("default:shovel_gold", "nalc:shovel_gold")
|
||||||
minetest.register_alias("default:axe_gold", "nalc_default:axe_gold")
|
minetest.register_alias("default:axe_gold", "nalc:axe_gold")
|
||||||
minetest.register_alias("default:sword_gold", "nalc_default:sword_gold")
|
minetest.register_alias("default:sword_gold", "nalc:sword_gold")
|
||||||
|
@ -45,7 +45,7 @@ minetest.register_tool(
|
|||||||
|
|
||||||
minetest.register_craft(
|
minetest.register_craft(
|
||||||
{
|
{
|
||||||
output = "mobs:dungeon_master_s_blood_sword",
|
output = "mobs:dungeon_master_sword",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"mobs_monster:dungeon_master_blood", "nether:white", "mobs_monster:dungeon_master_blood"},
|
{"mobs_monster:dungeon_master_blood", "nether:white", "mobs_monster:dungeon_master_blood"},
|
||||||
{"mobs_monster:dungeon_master_blood", "mobs_monster:dungeon_master_diamond", "mobs_monster:dungeon_master_blood"},
|
{"mobs_monster:dungeon_master_blood", "mobs_monster:dungeon_master_diamond", "mobs_monster:dungeon_master_blood"},
|
||||||
|
@ -11,7 +11,7 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft(
|
minetest.register_craft(
|
||||||
{ output = 'nalc_moognu:pick_nyan',
|
{ output = 'nalc:pick_nyan',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'nyancat:nyancat', 'nyancat:nyancat', 'nyancat:nyancat'},
|
{'nyancat:nyancat', 'nyancat:nyancat', 'nyancat:nyancat'},
|
||||||
{'', 'group:stick', ''},
|
{'', 'group:stick', ''},
|
||||||
@ -21,7 +21,7 @@ minetest.register_craft(
|
|||||||
|
|
||||||
minetest.register_craft(
|
minetest.register_craft(
|
||||||
{
|
{
|
||||||
output = "nalc_moognu:shovel_nyan",
|
output = "nalc:shovel_nyan",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"nyancat:nyancat"},
|
{"nyancat:nyancat"},
|
||||||
{"group:stick"},
|
{"group:stick"},
|
||||||
@ -31,7 +31,7 @@ minetest.register_craft(
|
|||||||
|
|
||||||
minetest.register_craft(
|
minetest.register_craft(
|
||||||
{
|
{
|
||||||
output = "nalc_moognu:axe_nyan",
|
output = "nalc:axe_nyan",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"nyancat:nyancat", "nyancat:nyancat"},
|
{"nyancat:nyancat", "nyancat:nyancat"},
|
||||||
{"nyancat:nyancat", "group:stick"},
|
{"nyancat:nyancat", "group:stick"},
|
||||||
@ -41,7 +41,7 @@ minetest.register_craft(
|
|||||||
|
|
||||||
minetest.register_craft(
|
minetest.register_craft(
|
||||||
{
|
{
|
||||||
output = "nalc_moognu:sword_nyan",
|
output = "nalc:sword_nyan",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"nyancat:nyancat"},
|
{"nyancat:nyancat"},
|
||||||
{"nyancat:nyancat"},
|
{"nyancat:nyancat"},
|
||||||
@ -54,7 +54,7 @@ minetest.register_craft(
|
|||||||
--
|
--
|
||||||
|
|
||||||
minetest.register_tool(
|
minetest.register_tool(
|
||||||
"nalc_moognu:pick_nyan",
|
":nalc:pick_nyan",
|
||||||
{
|
{
|
||||||
description = "Nyan Pickaxe",
|
description = "Nyan Pickaxe",
|
||||||
inventory_image = "default_tool_nyanpick.png",
|
inventory_image = "default_tool_nyanpick.png",
|
||||||
@ -70,7 +70,7 @@ minetest.register_tool(
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool(
|
minetest.register_tool(
|
||||||
"nalc_moognu:shovel_nyan",
|
":nalc:shovel_nyan",
|
||||||
{
|
{
|
||||||
description = "Nyan Shovel",
|
description = "Nyan Shovel",
|
||||||
inventory_image = "default_tool_nyanshovel.png",
|
inventory_image = "default_tool_nyanshovel.png",
|
||||||
@ -86,7 +86,7 @@ minetest.register_tool(
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool(
|
minetest.register_tool(
|
||||||
"nalc_moognu:axe_nyan",
|
":nalc:axe_nyan",
|
||||||
{
|
{
|
||||||
description = "Nyan Axe",
|
description = "Nyan Axe",
|
||||||
inventory_image = "default_tool_nyanaxe.png",
|
inventory_image = "default_tool_nyanaxe.png",
|
||||||
@ -102,43 +102,43 @@ minetest.register_tool(
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool(
|
minetest.register_tool(
|
||||||
"nalc_moognu:sword_nyan",
|
":nalc:sword_nyan",
|
||||||
{
|
{
|
||||||
description = "Nyan Sword",
|
description = "Nyan Sword",
|
||||||
inventory_image = "default_tool_nyansword.png",
|
inventory_image = "default_tool_nyansword.png",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 0.7,
|
full_punch_interval = 0.65,
|
||||||
max_drop_level = 1,
|
max_drop_level = 1,
|
||||||
groupcaps = {
|
groupcaps = {
|
||||||
snappy = {times = {[1] = 1.9, [2] = 0.85, [3] = 0.125}, uses = 40, maxlevel = 3},
|
snappy = {times = {[1] = 1.9, [2] = 0.85, [3] = 0.125}, uses = 40, maxlevel = 3},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy = 6},
|
damage_groups = {fleshy = 7},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_alias("default:pick_nyan", "nalc_moognu:pick_nyan")
|
minetest.register_alias("default:pick_nyan", "nalc:pick_nyan")
|
||||||
minetest.register_alias("default:axe_nyan", "nalc_moognu:axe_nyan")
|
minetest.register_alias("default:axe_nyan", "nalc:axe_nyan")
|
||||||
minetest.register_alias("default:shovel_nyan", "nalc_moognu:shovel_nyan")
|
minetest.register_alias("default:shovel_nyan", "nalc:shovel_nyan")
|
||||||
minetest.register_alias("default:sword_nyan", "nalc_moognu:sword_nyan")
|
minetest.register_alias("default:sword_nyan", "nalc:sword_nyan")
|
||||||
|
|
||||||
-- Toolranks
|
-- Toolranks
|
||||||
if minetest.get_modpath("toolranks") then
|
if minetest.get_modpath("toolranks") then
|
||||||
minetest.override_item(
|
minetest.override_item(
|
||||||
"nalc_moognu:pick_nyan",
|
"nalc:pick_nyan",
|
||||||
{
|
{
|
||||||
original_description = "Nyan Pickaxe",
|
original_description = "Nyan Pickaxe",
|
||||||
description = toolranks.create_description("Nyan Pickaxe", 0, 1),
|
description = toolranks.create_description("Nyan Pickaxe", 0, 1),
|
||||||
after_use = toolranks.new_afteruse
|
after_use = toolranks.new_afteruse
|
||||||
})
|
})
|
||||||
minetest.override_item(
|
minetest.override_item(
|
||||||
"nalc_moognu:axe_nyan",
|
"nalc:axe_nyan",
|
||||||
{
|
{
|
||||||
original_description = "Nyan Axe",
|
original_description = "Nyan Axe",
|
||||||
description = toolranks.create_description("Nyan Axe", 0, 1),
|
description = toolranks.create_description("Nyan Axe", 0, 1),
|
||||||
after_use = toolranks.new_afteruse
|
after_use = toolranks.new_afteruse
|
||||||
})
|
})
|
||||||
minetest.override_item(
|
minetest.override_item(
|
||||||
"nalc_moognu:shovel_nyan",
|
"nalc:shovel_nyan",
|
||||||
{
|
{
|
||||||
original_description = "Nyan Shovel",
|
original_description = "Nyan Shovel",
|
||||||
description = toolranks.create_description("Nyan Shovel", 0, 1),
|
description = toolranks.create_description("Nyan Shovel", 0, 1),
|
||||||
|
Loading…
Reference in New Issue
Block a user