forked from mtcontrib/mobs_animal
add {drink=1} group to bucket and glass of milk
This commit is contained in:
parent
c6a82eae3a
commit
3768da8e49
4
cow.lua
4
cow.lua
@ -157,7 +157,7 @@ minetest.register_craftitem(":mobs:bucket_milk", {
|
||||
inventory_image = "mobs_bucket_milk.png",
|
||||
stack_max = 1,
|
||||
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
|
||||
@ -165,7 +165,7 @@ 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, vessel = 1},
|
||||
groups = {food_milk_glass = 1, flammable = 3, vessel = 1, drink = 1},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
Loading…
Reference in New Issue
Block a user