remove bowl (dupe from farming)
This commit is contained in:
parent
e117c55695
commit
f0879b3801
@ -221,7 +221,7 @@ function cauldron.take_soup(pos, node, clicker, itemstack)
|
|||||||
local wield_item = clicker:get_wielded_item()
|
local wield_item = clicker:get_wielded_item()
|
||||||
local item_name = wield_item:get_name()
|
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 wield_item:get_count() > 1 then
|
||||||
if inv:room_for_item("main", "xdecor:bowl_soup 1") then
|
if inv:room_for_item("main", "xdecor:bowl_soup 1") then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
@ -392,32 +392,17 @@ xdecor.register("cauldron_soup", {
|
|||||||
|
|
||||||
-- Craft items
|
-- 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", {
|
minetest.register_craftitem("xdecor:bowl_soup", {
|
||||||
description = S("Bowl of soup"),
|
description = S("Bowl of soup"),
|
||||||
inventory_image = "xdecor_bowl_soup.png",
|
inventory_image = "xdecor_bowl_soup.png",
|
||||||
wield_image = "xdecor_bowl_soup.png",
|
wield_image = "xdecor_bowl_soup.png",
|
||||||
groups = {},
|
groups = {},
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
on_use = minetest.item_eat(30, "xdecor:bowl")
|
on_use = minetest.item_eat(30, "farming:bowl")
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Recipes
|
-- Recipes
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "xdecor:bowl 3",
|
|
||||||
recipe = {
|
|
||||||
{"group:wood", "", "group:wood"},
|
|
||||||
{"", "group:wood", ""}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "xdecor:cauldron_empty",
|
output = "xdecor:cauldron_empty",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
Loading…
Reference in New Issue
Block a user