diff options
Diffstat (limited to 'cow.lua')
-rw-r--r-- | cow.lua | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -132,6 +132,37 @@ minetest.register_craftitem(":mobs:bucket_milk", { 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 minetest.register_craftitem(":mobs:butter", { description = S("Butter"), |