2016-02-01 12:45:12 +01:00
|
|
|
-- nametag
|
|
|
|
minetest.register_craftitem("mobs:nametag", {
|
|
|
|
description = "Nametag",
|
|
|
|
inventory_image = "mobs_nametag.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
core.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "mobs:nametag",
|
|
|
|
recipe = {"default:paper", "dye:black", "farming:string"},
|
|
|
|
})
|
|
|
|
|
2015-08-18 17:09:53 +02:00
|
|
|
-- leather
|
|
|
|
minetest.register_craftitem("mobs:leather", {
|
|
|
|
description = "Leather",
|
|
|
|
inventory_image = "mobs_leather.png",
|
|
|
|
})
|
2015-07-15 23:31:54 +02:00
|
|
|
|
2015-07-16 00:15:56 +02:00
|
|
|
-- raw meat
|
2015-07-15 23:31:54 +02:00
|
|
|
minetest.register_craftitem("mobs:meat_raw", {
|
|
|
|
description = "Raw Meat",
|
|
|
|
inventory_image = "mobs_meat_raw.png",
|
|
|
|
on_use = minetest.item_eat(3),
|
|
|
|
})
|
|
|
|
|
2015-07-16 00:15:56 +02:00
|
|
|
-- cooked meat
|
2015-07-15 23:31:54 +02:00
|
|
|
minetest.register_craftitem("mobs:meat", {
|
|
|
|
description = "Meat",
|
|
|
|
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,
|
|
|
|
})
|
|
|
|
|
2015-07-16 00:15:56 +02:00
|
|
|
-- golden lasso
|
2015-07-15 23:31:54 +02:00
|
|
|
minetest.register_tool("mobs:magic_lasso", {
|
|
|
|
description = "Magic Lasso (right-click animal to put in inventory)",
|
|
|
|
inventory_image = "mobs_magic_lasso.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mobs:magic_lasso",
|
|
|
|
recipe = {
|
|
|
|
{"farming:string", "default:gold_lump", "farming:string"},
|
|
|
|
{"default:gold_lump", "default:diamondblock", "default:gold_lump"},
|
|
|
|
{"farming:string", "default:gold_lump", "farming:string"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2015-07-16 00:15:56 +02:00
|
|
|
-- net
|
2015-07-15 23:31:54 +02:00
|
|
|
minetest.register_tool("mobs:net", {
|
|
|
|
description = "Net (right-click animal to put in inventory)",
|
|
|
|
inventory_image = "mobs_net.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "mobs:net",
|
|
|
|
recipe = {
|
|
|
|
{"default:stick", "", "default:stick"},
|
|
|
|
{"default:stick", "", "default:stick"},
|
|
|
|
{"farming:string", "default:stick", "farming:string"},
|
|
|
|
}
|
2015-08-18 17:09:53 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- shears (right click to shear animal)
|
|
|
|
minetest.register_tool("mobs:shears", {
|
|
|
|
description = "Steel Shears (right-click to shear)",
|
|
|
|
inventory_image = "mobs_shears.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'mobs:shears',
|
|
|
|
recipe = {
|
|
|
|
{'', 'default:steel_ingot', ''},
|
|
|
|
{'', 'group:stick', 'default:steel_ingot'},
|
|
|
|
}
|
2015-07-16 00:15:56 +02:00
|
|
|
})
|