From 2e3de7c177b3a216af42b726e75c1776d4cedb8c Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 12 Mar 2018 17:17:49 +0000 Subject: added food groups for better recipe crafting --- chicken.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'chicken.lua') diff --git a/chicken.lua b/chicken.lua index f79579d..32bd12c 100644 --- a/chicken.lua +++ b/chicken.lua @@ -241,7 +241,7 @@ minetest.register_node(":mobs:egg", { type = "fixed", fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2} }, - groups = {snappy = 2, dig_immediate = 3}, + groups = {food_egg = 1, snappy = 2, dig_immediate = 3}, after_place_node = function(pos, placer, itemstack) if placer:is_player() then minetest.set_node(pos, {name = "mobs:egg", param2 = 1}) @@ -256,6 +256,7 @@ minetest.register_craftitem(":mobs:chicken_egg_fried", { description = S("Fried Egg"), inventory_image = "mobs_chicken_egg_fried.png", on_use = minetest.item_eat(2), + groups = {food_egg_fried = 1, flammable = 2}, }) minetest.register_craft({ @@ -269,6 +270,7 @@ minetest.register_craftitem(":mobs:chicken_raw", { description = S("Raw Chicken"), inventory_image = "mobs_chicken_raw.png", on_use = minetest.item_eat(2), + groups = {food_meat_raw = 1, food_chicken_raw = 1, flammable = 2}, }) -- cooked chicken @@ -276,6 +278,7 @@ minetest.register_craftitem(":mobs:chicken_cooked", { description = S("Cooked Chicken"), inventory_image = "mobs_chicken_cooked.png", on_use = minetest.item_eat(6), + groups = {food_meat = 1, food_chicken = 1, flammable = 2}, }) minetest.register_craft({ @@ -288,6 +291,7 @@ minetest.register_craft({ minetest.register_craftitem(":mobs:chicken_feather", { description = S("Feather"), inventory_image = "mobs_chicken_feather.png", + groups = {flammable = 2}, }) minetest.register_craft({ -- cgit v1.2.3