mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-15 04:11:25 +00:00
Various fixes
This commit is contained in:
parent
70f6128b02
commit
a1df98eed7
5 changed files with 16 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue