1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2024-12-22 17:00:26 +01:00

add glass of milk and craft recipes

This commit is contained in:
TenPlus1 2018-11-21 16:19:32 +00:00
parent e36deb7bc5
commit 10028cd63d
4 changed files with 33 additions and 1 deletions

31
cow.lua
View File

@ -132,6 +132,37 @@ minetest.register_craftitem(":mobs:bucket_milk", {
groups = {food_milk = 1, flammable = 3}, groups = {food_milk = 1, flammable = 3},
}) })
-- glass of milk
minetest.register_craftitem(":mobs:glass_milk", {
description = S("Glass of Milk"),
inventory_image = "mobs_glass_milk.png",
on_use = minetest.item_eat(2, 'vessels:drinking_glass'),
groups = {food_milk_glass = 1, flammable = 3},
})
minetest.register_craft({
type = "shapeless",
output = "mobs:glass_milk 4",
recipe = {
'vessels:drinking_glass', 'vessels:drinking_glass',
'vessels:drinking_glass', 'vessels:drinking_glass',
'mobs:bucket_milk'
},
replacements = { {"mobs:bucket_milk", "bucket:bucket_empty"} }
})
minetest.register_craft({
type = "shapeless",
output = "mobs:bucket_milk",
recipe = {
'mobs:glass_milk', 'mobs:glass_milk',
'mobs:glass_milk', 'mobs:glass_milk',
'bucket:bucket_empty'
},
replacements = { {"mobs:glass_milk", "vessels:drinking_glass 4"} }
})
-- butter -- butter
minetest.register_craftitem(":mobs:butter", { minetest.register_craftitem(":mobs:butter", {
description = S("Butter"), description = S("Butter"),

View File

@ -20,6 +20,7 @@ if minetest.get_modpath("lucky_block") then
{"dro", {"mobs:pork_raw", "mobs:pork_cooked"}, 10}, {"dro", {"mobs:pork_raw", "mobs:pork_cooked"}, 10},
{"dro", {"mobs:mutton_raw", "mobs:mutton_cooked"}, 10}, {"dro", {"mobs:mutton_raw", "mobs:mutton_cooked"}, 10},
{"dro", {"mobs:meat_raw", "mobs:meat"}, 10}, {"dro", {"mobs:meat_raw", "mobs:meat"}, 10},
{"dro", {"mobs:glass_milk"}, 5},
}) })
if minetest.registered_nodes["default:nyancat"] then if minetest.registered_nodes["default:nyancat"] then

View File

@ -42,4 +42,4 @@ These monochrome cuties spawn in Ethereal's bamboo biome and can be tamed with b
--- ---
*Note: After breeding, animals need to rest for 4 minutes and baby animals take 4 minutes to grow up, also feeding them helps them grow quicker...* *Note: After breeding, animals need to rest for 4 minutes and baby animals take 4 minutes to grow up, also feeding them helps them grow quicker...*
#### Lucky Blocks: 19 #### Lucky Blocks: 20

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B