remove bowl (dupe from farming)

This commit is contained in:
flux 2023-11-12 16:19:30 -08:00
parent e117c55695
commit f0879b3801
Signed by: flux
GPG Key ID: 9333B27816848A15

View File

@ -221,7 +221,7 @@ function cauldron.take_soup(pos, node, clicker, itemstack)
local wield_item = clicker:get_wielded_item()
local item_name = wield_item:get_name()
if item_name == "xdecor:bowl" or item_name == "farming:bowl" then
if item_name == "farming:bowl" then
if wield_item:get_count() > 1 then
if inv:room_for_item("main", "xdecor:bowl_soup 1") then
itemstack:take_item()
@ -392,32 +392,17 @@ xdecor.register("cauldron_soup", {
-- Craft items
minetest.register_craftitem("xdecor:bowl", {
description = S("Bowl"),
inventory_image = "xdecor_bowl.png",
wield_image = "xdecor_bowl.png",
groups = {food_bowl = 1, flammable = 2},
})
minetest.register_craftitem("xdecor:bowl_soup", {
description = S("Bowl of soup"),
inventory_image = "xdecor_bowl_soup.png",
wield_image = "xdecor_bowl_soup.png",
groups = {},
stack_max = 1,
on_use = minetest.item_eat(30, "xdecor:bowl")
on_use = minetest.item_eat(30, "farming:bowl")
})
-- Recipes
minetest.register_craft({
output = "xdecor:bowl 3",
recipe = {
{"group:wood", "", "group:wood"},
{"", "group:wood", ""}
}
})
minetest.register_craft({
output = "xdecor:cauldron_empty",
recipe = {