1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2024-12-23 01:10:25 +01:00

add {drink=1} group to bucket and glass of milk

This commit is contained in:
TenPlus1 2020-06-30 20:17:23 +01:00
parent c6a82eae3a
commit 3768da8e49

View File

@ -157,7 +157,7 @@ minetest.register_craftitem(":mobs:bucket_milk", {
inventory_image = "mobs_bucket_milk.png", inventory_image = "mobs_bucket_milk.png",
stack_max = 1, stack_max = 1,
on_use = minetest.item_eat(8, "bucket:bucket_empty"), on_use = minetest.item_eat(8, "bucket:bucket_empty"),
groups = {food_milk = 1, flammable = 3}, groups = {food_milk = 1, flammable = 3, drink = 1},
}) })
-- glass of milk -- glass of milk
@ -165,7 +165,7 @@ minetest.register_craftitem(":mobs:glass_milk", {
description = S("Glass of Milk"), description = S("Glass of Milk"),
inventory_image = "mobs_glass_milk.png", inventory_image = "mobs_glass_milk.png",
on_use = minetest.item_eat(2, "vessels:drinking_glass"), on_use = minetest.item_eat(2, "vessels:drinking_glass"),
groups = {food_milk_glass = 1, flammable = 3, vessel = 1}, groups = {food_milk_glass = 1, flammable = 3, vessel = 1, drink = 1},
}) })
minetest.register_craft({ minetest.register_craft({