diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-12 17:17:49 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-12 17:17:49 +0000 |
commit | 2e3de7c177b3a216af42b726e75c1776d4cedb8c (patch) | |
tree | 794a37532994736594ea4de16839bcec492ca1ac /chicken.lua | |
parent | cbac52f407614e1ba99b40f3feec5dcfe35ad0b7 (diff) |
added food groups for better recipe crafting
Diffstat (limited to 'chicken.lua')
-rw-r--r-- | chicken.lua | 6 |
1 files changed, 5 insertions, 1 deletions
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({ |