- Fixed racist sheep - Mobs fall slower in water - Can only dye sheep if you own it - Cannot dye a dye'd sheep :) - Added coloured sheep - Blast tweak - Tweak and Tidy code - tweaked env_damage - Re-fixed mob arrow - Fixed mob arrow - Added evil bunny texture - Code tidy - Tidied code - Replaced some models with .b3d variants, tweaked env_damage routine - Fixed ability to take animal owned by another player bug - Added female NPC skin - Fixed typo - hear distance added to mobs - Npc works with new pickup function - Added capture routine (thanks blert2112) - explosion function cannot damage protected or unbreakable nodes - water swimmers cannot move out of water - updated npc health restoration
54 lines
1.2 KiB
Lua
Executable File
54 lines
1.2 KiB
Lua
Executable File
|
|
-- Meat & Cooked Meat
|
|
|
|
minetest.register_craftitem("mobs:meat_raw", {
|
|
description = "Raw Meat",
|
|
inventory_image = "mobs_meat_raw.png",
|
|
on_use = minetest.item_eat(3),
|
|
})
|
|
|
|
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"},
|
|
}
|
|
})
|