forked from mtcontrib/farming
add {drink=1} group to drinks
This commit is contained in:
parent
03d14b2b39
commit
3911e56659
@ -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({
|
||||
|
@ -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(),
|
||||
})
|
||||
|
@ -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({
|
||||
|
@ -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({
|
||||
|
2
food.lua
2
food.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user