add {drink=1} group to drinks

This commit is contained in:
TenPlus1 2020-06-30 20:06:11 +01:00
parent 03d14b2b39
commit 3911e56659
5 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ minetest.register_craftitem("farming:carrot_juice", {
description = S("Carrot Juice"),
inventory_image = "farming_carrot_juice.png",
on_use = minetest.item_eat(4, "vessels:drinking_glass"),
groups = {vessel = 1},
groups = {vessel = 1, drink = 1},
})
minetest.register_craft({

View File

@ -24,7 +24,7 @@ minetest.register_node("farming:coffee_cup", {
type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 0.25, 0.25}
},
groups = {vessel = 1, dig_immediate = 3, attached_node = 1},
groups = {vessel = 1, dig_immediate = 3, attached_node = 1, drink = 1},
on_use = minetest.item_eat(2, "vessels:drinking_glass"),
sounds = default.node_sound_glass_defaults(),
})

View File

@ -48,7 +48,7 @@ minetest.register_craftitem("farming:pineapple_juice", {
description = S("Pineapple Juice"),
inventory_image = "farming_pineapple_juice.png",
on_use = minetest.item_eat(4, "vessels:drinking_glass"),
groups = {vessel = 1},
groups = {vessel = 1, drink = 1},
})
minetest.register_craft({

View File

@ -18,7 +18,7 @@ minetest.register_craftitem("farming:smoothie_raspberry", {
description = S("Raspberry Smoothie"),
inventory_image = "farming_raspberry_smoothie.png",
on_use = minetest.item_eat(2, "vessels:drinking_glass"),
groups = {vessel = 1},
groups = {vessel = 1, drink = 1},
})
minetest.register_craft({

View File

@ -242,7 +242,7 @@ minetest.register_craft({
minetest.register_craftitem("farming:cactus_juice", {
description = S("Cactus Juice"),
inventory_image = "farming_cactus_juice.png",
groups = {vessel = 1},
groups = {vessel = 1, drink = 1},
on_use = function(itemstack, user, pointed_thing)
if user then
if math.random(1, 5) == 1 then