]> git.lizzy.rs Git - xdecor.git/blobdiff - src/cooking.lua
Add settings and compatibility with moreblocks and stairs
[xdecor.git] / src / cooking.lua
index aaeae79c2fd6e73ef05079b1eea7d4f6af17c07f..7d9d05920389fdf38c4d3133aa2131bba3d6524f 100644 (file)
@@ -198,3 +198,38 @@ xdecor.register("cauldron_soup", {
        end
 })
 
+-- Craft items
+
+minetest.register_craftitem("xdecor:bowl", {
+       description = "Bowl",
+       inventory_image = "xdecor_bowl.png",
+       wield_image = "xdecor_bowl.png"
+})
+
+minetest.register_craftitem("xdecor:bowl_soup", {
+       description = "Bowl of soup",
+       inventory_image = "xdecor_bowl_soup.png",
+       wield_image = "xdecor_bowl_soup.png",
+       groups = {not_in_creative_inventory=1},
+       stack_max = 1,
+       on_use = minetest.item_eat(30, "xdecor:bowl")
+})
+
+-- Recipes
+
+minetest.register_craft({
+       output = "xdecor:bowl 3",
+       recipe = {
+               {"group:wood", "", "group:wood"},
+               {"", "group:wood", ""}
+       }
+})
+
+minetest.register_craft({
+       output = "xdecor:cauldron_empty",
+       recipe = {
+               {"default:iron_lump", "", "default:iron_lump"},
+               {"default:iron_lump", "", "default:iron_lump"},
+               {"default:iron_lump", "default:iron_lump", "default:iron_lump"}
+       }
+})
\ No newline at end of file