Browse Source

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

master
TenPlus1 1 week ago
parent
commit
3768da8e49
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      cow.lua

+ 2
- 2
cow.lua View File

@@ -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…
Cancel
Save