2016-04-15 15:57:57 +02:00
|
|
|
|
2016-06-11 10:47:43 +02:00
|
|
|
local S = mobs.intllib
|
|
|
|
|
2016-04-15 16:51:04 +02:00
|
|
|
-- name tag
|
2016-04-15 15:57:57 +02:00
|
|
|
minetest.register_craftitem("mobs:nametag", {
|
2017-07-04 21:37:04 +02:00
|
|
|
description = S("Name Tag"),
|
2016-04-15 15:57:57 +02:00
|
|
|
inventory_image = "mobs_nametag.png",
|
|
|
|
})
|
|
|
|
|
2017-07-08 10:08:23 +02:00
|
|
|
if minetest.get_modpath("dye") and minetest.get_modpath("farming") then
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "mobs:nametag",
|
|
|
|
recipe = {"default:paper", "dye:black", "farming:string"},
|
|
|
|
})
|
|
|
|
end
|
2016-04-15 15:57:57 +02:00
|
|
|
|
|
|
|
-- leather
|
|
|
|
minetest.register_craftitem("mobs:leather", {
|
2016-06-11 10:47:43 +02:00
|
|
|
description = S("Leather"),
|
2016-04-15 15:57:57 +02:00
|
|
|
inventory_image = "mobs_leather.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
-- raw meat
|
|
|
|
minetest.register_craftitem("mobs:meat_raw", {
|
2016-06-11 10:47:43 +02:00
|
|
|
description = S("Raw Meat"),
|
2016-04-15 15:57:57 +02:00
|
|
|
inventory_image = "mobs_meat_raw.png",
|
|
|
|
on_use = minetest.item_eat(3),
|
|
|
|
})
|
|
|
|
|
|
|
|
-- cooked meat
|
|
|
|
minetest.register_craftitem("mobs:meat", {
|
2016-06-11 10:47:43 +02:00
|
|
|
description = S("Meat"),
|
2016-04-15 15:57:57 +02:00
|
|
|
inventory_image = "mobs_meat.png",
|
|
|
|
on_use = minetest.item_eat(8),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "mobs:meat",
|
|
|
|
recipe = "mobs:meat_raw",
|
|
|
|
cooktime = 5,
|
|
|
|
})
|
|
|
|
|
2017-06-26 22:08:42 +02:00
|
|
|
-- lasso
|
|
|
|
minetest.register_tool("mobs:lasso", {
|
2017-06-28 10:43:51 +02:00
|
|
|
description = S("Lasso (right-click animal to put in inventory)"),
|
2016-04-15 15:57:57 +02:00
|
|
|
inventory_image = "mobs_magic_lasso.png",
|
|
|
|
})
|
|
|
|
|
2017-07-08 10:08:23 +02:00
|
|
|
if minetest.get_modpath("farming") then
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mobs:lasso",
|
|
|
|
recipe = {
|
|
|
|
{"farming:string", "", "farming:string"},
|
|
|
|
{"", "default:diamond", ""},
|
|
|
|
{"farming:string", "", "farming:string"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
2016-04-15 15:57:57 +02:00
|
|
|
|
2017-06-26 22:08:42 +02:00
|
|
|
minetest.register_alias("mobs:magic_lasso", "mobs:lasso")
|
|
|
|
|
2016-04-15 15:57:57 +02:00
|
|
|
-- net
|
|
|
|
minetest.register_tool("mobs:net", {
|
2016-06-11 10:47:43 +02:00
|
|
|
description = S("Net (right-click animal to put in inventory)"),
|
2016-04-15 15:57:57 +02:00
|
|
|
inventory_image = "mobs_net.png",
|
|
|
|
})
|
|
|
|
|
2017-07-08 10:08:23 +02:00
|
|
|
if minetest.get_modpath("farming") then
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mobs:net",
|
|
|
|
recipe = {
|
|
|
|
{"group:stick", "", "group:stick"},
|
|
|
|
{"group:stick", "", "group:stick"},
|
|
|
|
{"farming:string", "group:stick", "farming:string"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
2016-04-15 15:57:57 +02:00
|
|
|
|
|
|
|
-- shears (right click to shear animal)
|
|
|
|
minetest.register_tool("mobs:shears", {
|
2016-06-11 10:47:43 +02:00
|
|
|
description = S("Steel Shears (right-click to shear)"),
|
2016-04-15 15:57:57 +02:00
|
|
|
inventory_image = "mobs_shears.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'mobs:shears',
|
|
|
|
recipe = {
|
|
|
|
{'', 'default:steel_ingot', ''},
|
|
|
|
{'', 'group:stick', 'default:steel_ingot'},
|
|
|
|
}
|
|
|
|
})
|
2016-11-08 17:11:00 +01:00
|
|
|
|
|
|
|
-- protection rune
|
|
|
|
minetest.register_craftitem("mobs:protector", {
|
|
|
|
description = S("Mob Protection Rune"),
|
|
|
|
inventory_image = "mobs_protector.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mobs:protector",
|
|
|
|
recipe = {
|
|
|
|
{"default:stone", "default:stone", "default:stone"},
|
|
|
|
{"default:stone", "default:goldblock", "default:stone"},
|
|
|
|
{"default:stone", "default:stone", "default:stone"},
|
|
|
|
}
|
|
|
|
})
|
2016-12-29 13:28:25 +01:00
|
|
|
|
|
|
|
-- saddle
|
|
|
|
minetest.register_craftitem("mobs:saddle", {
|
2017-07-04 21:37:04 +02:00
|
|
|
description = S("Saddle"),
|
2016-12-29 13:28:25 +01:00
|
|
|
inventory_image = "mobs_saddle.png"
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mobs:saddle",
|
|
|
|
recipe = {
|
|
|
|
{"mobs:leather", "mobs:leather", "mobs:leather"},
|
|
|
|
{"mobs:leather", "default:steel_ingot", "mobs:leather"},
|
|
|
|
{"mobs:leather", "default:steel_ingot", "mobs:leather"},
|
|
|
|
}
|
|
|
|
})
|