mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-18 08:10:38 +01:00
51 lines
1.2 KiB
Lua
Executable File
51 lines
1.2 KiB
Lua
Executable File
|
|
-- raw meat
|
|
minetest.register_craftitem("mobs:meat_raw", {
|
|
description = "Raw Meat",
|
|
inventory_image = "mobs_meat_raw.png",
|
|
on_use = minetest.item_eat(3),
|
|
})
|
|
|
|
-- cooked meat
|
|
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,
|
|
})
|
|
|
|
-- golden lasso
|
|
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"},
|
|
}
|
|
})
|
|
|
|
-- net
|
|
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"},
|
|
}
|
|
}) |