diff --git a/chicken/README.txt b/chicken/README.txt index 5bc05b0..b1b8b60 100644 --- a/chicken/README.txt +++ b/chicken/README.txt @@ -2,13 +2,13 @@ Chicken for Creatures MOB-Engine ================================ Copyright (c) 2015 BlockMen -Version: 2.0 Beta +Version: 2.1 Beta Adds chicken to Minetest (requires Creatures MOB-Engine). -Chicken spawn on dirt and grass blocks, have 5 HP and are friendly. When killed they -drop meat, which can be eaten or cooked. Also they drop randomly eggs (which have -no real use yet.) +Chicken spawn on dirt and grass blocks, have 5 HP and are friendly. When killed or dying +they drop meat, which can be eaten or cooked and probably some feathers. Also they drop +randomly eggs (which can be thrown to spawn new chicken) License: diff --git a/chicken/init.lua b/chicken/init.lua index cb9b123..45db9b0 100644 --- a/chicken/init.lua +++ b/chicken/init.lua @@ -21,6 +21,7 @@ +-- Egg dofile(core.get_modpath("chicken") .. "/egg.lua") local function dropEgg(obj) local pos = obj:getpos() @@ -29,6 +30,32 @@ local function dropEgg(obj) end end +-- Flesh +core.register_craftitem(":creatures:chicken_flesh", { + description = "Raw Chicken Flesh", + inventory_image = "creatures_chicken_flesh.png", + on_use = core.item_eat(1) +}) + +core.register_craftitem(":creatures:chicken_meat", { + description = "Chicken Meat", + inventory_image = "creatures_chicken_meat.png", + on_use = core.item_eat(3) +}) + +core.register_craft({ + type = "cooking", + output = "creatures:chicken_meat", + recipe = "creatures:chicken_flesh", +}) + +-- Feather +core.register_craftitem(":creatures:feather", { + description = "Feather", + inventory_image = "creatures_feather.png", + on_use = core.item_eat(3) +}) + local def = { -- general name = "creatures:chicken", @@ -96,7 +123,8 @@ local def = { }, drops = { - {"creatures:flesh"}, + {"creatures:chicken_flesh"}, + {"creatures:feather", {min = 1, max = 2}, chance = 0.45}, }, on_step = function(self, dtime) diff --git a/chicken/textures/creatures_chicken_flesh.png b/chicken/textures/creatures_chicken_flesh.png new file mode 100644 index 0000000..770235c Binary files /dev/null and b/chicken/textures/creatures_chicken_flesh.png differ diff --git a/chicken/textures/creatures_chicken_meat.png b/chicken/textures/creatures_chicken_meat.png new file mode 100644 index 0000000..6e0a104 Binary files /dev/null and b/chicken/textures/creatures_chicken_meat.png differ diff --git a/chicken/textures/creatures_feather.png b/chicken/textures/creatures_feather.png new file mode 100644 index 0000000..99507c6 Binary files /dev/null and b/chicken/textures/creatures_feather.png differ