diff --git a/api/behaviors.lua b/api/behaviors.lua index 24bf1bb..d9c80e3 100644 --- a/api/behaviors.lua +++ b/api/behaviors.lua @@ -1049,7 +1049,7 @@ creatura.register_utility("animalia:mount_horse", function(self, player) local yaw = self.object:get_yaw() local tyaw = player:get_look_horizontal() if abs(yaw - tyaw) > 0.1 then - _self:turn_to() + _self:turn_to(tyaw) end _self:set_forward_velocity(_self.speed * speed_factor) _self:animate(anim) diff --git a/craftitems.lua b/craftitems.lua index 18ec865..ce0c597 100644 --- a/craftitems.lua +++ b/craftitems.lua @@ -265,6 +265,12 @@ register_egg("animalia:chicken_egg", { mob = "animalia:chicken" }) +register_egg("animalia:turkey_egg", { + description = "Turkey Egg", + inventory_image = "animalia_egg", + mob = "animalia:turkey" +}) + ---------- -- Misc -- ---------- @@ -499,7 +505,7 @@ minetest.register_craftitem("animalia:net", { if ent.name == "animalia:cat" and ent.trust and ent.trust[placer:get_player_name()] then - desc = desc .. "\n" .. color("#a9a9a9", ent.trust[placer:get_player_name()]) + desc = desc .. "\n Trust: " .. color("#a9a9a9", ent.trust[placer:get_player_name()]) end meta:set_string("description", desc) placer:set_wielded_item(itemstack) diff --git a/mobs/chicken.lua b/mobs/chicken.lua index e7eb142..3668b32 100644 --- a/mobs/chicken.lua +++ b/mobs/chicken.lua @@ -171,6 +171,9 @@ creatura.register_mob("animalia:chicken", { self:set_gravity(-4.9) self:animate("fall") end + if self:timer(60) then + animalia.random_drop_item("animalia:chicken_egg", 3) + end end, death_func = function(self) if self:get_utility() ~= "animalia:die" then diff --git a/mobs/cow.lua b/mobs/cow.lua index 5805c20..eabdcac 100644 --- a/mobs/cow.lua +++ b/mobs/cow.lua @@ -30,8 +30,8 @@ creatura.register_mob("animalia:cow", { -- Visuals mesh = "animalia_cow.b3d", hitbox = { - width = 0.45, - height = 0.9 + width = 0.65, + height = 1.5 }, visual_size = {x = 10, y = 10}, female_textures = { diff --git a/mobs/turkey.lua b/mobs/turkey.lua index a4542e2..b26dc75 100644 --- a/mobs/turkey.lua +++ b/mobs/turkey.lua @@ -160,6 +160,9 @@ creatura.register_mob("animalia:turkey", { self:set_gravity(-4.9) self:animate("fall") end + if self:timer(60) then + animalia.random_drop_item("animalia:chicken_egg", 3) + end end, death_func = function(self) if self:get_utility() ~= "animalia:die" then