Browse Source

add {drink=1} group to drinks

master
TenPlus1 1 week ago
parent
commit
3911e56659
5 changed files with 5 additions and 5 deletions
  1. +1
    -1
      crops/carrot.lua
  2. +1
    -1
      crops/coffee.lua
  3. +1
    -1
      crops/pineapple.lua
  4. +1
    -1
      crops/raspberry.lua
  5. +1
    -1
      food.lua

+ 1
- 1
crops/carrot.lua 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({


+ 1
- 1
crops/coffee.lua 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(),
})


+ 1
- 1
crops/pineapple.lua 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({


+ 1
- 1
crops/raspberry.lua 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({


+ 1
- 1
food.lua 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


Loading…
Cancel
Save