summaryrefslogtreecommitdiff
path: root/farming/chili.lua
diff options
context:
space:
mode:
Diffstat (limited to 'farming/chili.lua')
-rw-r--r--farming/chili.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/farming/chili.lua b/farming/chili.lua
index ec2a1a9..9889162 100644
--- a/farming/chili.lua
+++ b/farming/chili.lua
@@ -5,6 +5,7 @@ local S = farming.intllib
minetest.register_craftitem("farming:chili_pepper", {
description = S("Chili Pepper"),
inventory_image = "farming_chili_pepper.png",
+ groups = {food_chili_pepper = 1, flammable = 4},
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:chili_1")
end,
@@ -15,13 +16,16 @@ minetest.register_craftitem("farming:chili_pepper", {
minetest.register_craftitem("farming:chili_bowl", {
description = S("Bowl of Chili"),
inventory_image = "farming_chili_bowl.png",
- on_use = minetest.item_eat(8),
+ on_use = minetest.item_eat(8, "farming:bowl"),
})
minetest.register_craft({
type = "shapeless",
output = "farming:chili_bowl",
- recipe = {"farming:chili_pepper", "farming:barley", "farming:tomato", "farming:beans"}
+ recipe = {
+ "group:food_chili_pepper", "group:food_barley",
+ "group:food_tomato", "group:food_beans", "group:food_bowl"
+ },
})
-- chili can be used for red dye