nalc/nalc_moognu/init.lua

148 lines
3.5 KiB
Lua
Raw Normal View History

minetest.register_craft({
type = "fuel",
recipe = "nyancat:nyancat",
burntime = 7200,
})
minetest.register_craft({
type = "fuel",
recipe = "nyancat:nyancat_rainbow",
burntime = 1200,
})
minetest.register_craft(
{ output = 'nalc_moognu:pick_nyan',
recipe = {
{'nyancat:nyancat', 'nyancat:nyancat', 'nyancat:nyancat'},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
minetest.register_craft(
{
output = "nalc_moognu:shovel_nyan",
recipe = {
{"nyancat:nyancat"},
{"group:stick"},
{"group:stick"},
}
})
minetest.register_craft(
{
output = "nalc_moognu:axe_nyan",
recipe = {
{"nyancat:nyancat", "nyancat:nyancat"},
{"nyancat:nyancat", "group:stick"},
{"", "group:stick"},
}
})
minetest.register_craft(
{
output = "nalc_moognu:sword_nyan",
recipe = {
{"nyancat:nyancat"},
{"nyancat:nyancat"},
{"group:stick"},
}
})
--
-- Register Tools
--
minetest.register_tool(
"nalc_moognu:pick_nyan",
{
description = "Nyan Pickaxe",
inventory_image = "default_tool_nyanpick.png",
tool_capabilities = {
full_punch_interval = 0.9,
max_drop_level = 3,
groupcaps = {
cracky = {times = {[1] = 2.60, [2] = 1.10, [3] = 0.60}, uses = 60, maxlevel = 3},
crumbly = {times = {[1] = 2.0, [2] = 0.9, [3] = 0.36}, uses = 75, maxlevel = 2},
},
damage_groups = {fleshy = 4},
},
})
minetest.register_tool(
"nalc_moognu:shovel_nyan",
{
description = "Nyan Shovel",
inventory_image = "default_tool_nyanshovel.png",
wield_image = "default_tool_nyanshovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 1.2,
max_drop_level = 1,
groupcaps = {
crumbly = {times = {[1] = 1.30, [2] = 0.55, [3] = 0.30}, uses = 60, maxlevel = 3},
},
damage_groups = {fleshy = 4},
},
})
minetest.register_tool(
"nalc_moognu:axe_nyan",
{
description = "Nyan Axe",
inventory_image = "default_tool_nyanaxe.png",
tool_capabilities = {
full_punch_interval = 1.2,
max_drop_level = 1,
groupcaps = {
choppy = {times = {[1] = 2.86, [2] = 1.21, [3] = 0.66}, uses = 60, maxlevel = 3},
snappy = {times = {[3] = 0.125}, uses = 0, maxlevel = 1},
},
damage_groups = {fleshy = 4},
},
})
minetest.register_tool(
"nalc_moognu:sword_nyan",
{
description = "Nyan Sword",
inventory_image = "default_tool_nyansword.png",
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level = 1,
groupcaps = {
snappy = {times = {[1] = 1.9, [2] = 0.85, [3] = 0.125}, uses = 40, maxlevel = 3},
},
damage_groups = {fleshy = 6},
}
})
minetest.register_alias("default:pick_nyan", "nalc_moognu:pick_nyan")
minetest.register_alias("default:axe_nyan", "nalc_moognu:axe_nyan")
minetest.register_alias("default:shovel_nyan", "nalc_moognu:shovel_nyan")
minetest.register_alias("default:sword_nyan", "nalc_moognu:sword_nyan")
-- Toolranks
if minetest.get_modpath("toolranks") then
minetest.override_item(
"nalc_moognu:pick_nyan",
{
original_description = "Nyan Pickaxe",
description = toolranks.create_description("Nyan Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nalc_moognu:axe_nyan",
{
original_description = "Nyan Axe",
description = toolranks.create_description("Nyan Axe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nalc_moognu:shovel_nyan",
{
original_description = "Nyan Shovel",
description = toolranks.create_description("Nyan Shovel", 0, 1),
after_use = toolranks.new_afteruse
})
end