mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-21 15:21:22 +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 yaw = self.object:get_yaw()
|
||||||
local tyaw = player:get_look_horizontal()
|
local tyaw = player:get_look_horizontal()
|
||||||
if abs(yaw - tyaw) > 0.1 then
|
if abs(yaw - tyaw) > 0.1 then
|
||||||
_self:turn_to()
|
_self:turn_to(tyaw)
|
||||||
end
|
end
|
||||||
_self:set_forward_velocity(_self.speed * speed_factor)
|
_self:set_forward_velocity(_self.speed * speed_factor)
|
||||||
_self:animate(anim)
|
_self:animate(anim)
|
||||||
|
|
|
@ -265,6 +265,12 @@ register_egg("animalia:chicken_egg", {
|
||||||
mob = "animalia:chicken"
|
mob = "animalia:chicken"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
register_egg("animalia:turkey_egg", {
|
||||||
|
description = "Turkey Egg",
|
||||||
|
inventory_image = "animalia_egg",
|
||||||
|
mob = "animalia:turkey"
|
||||||
|
})
|
||||||
|
|
||||||
----------
|
----------
|
||||||
-- Misc --
|
-- Misc --
|
||||||
----------
|
----------
|
||||||
|
@ -499,7 +505,7 @@ minetest.register_craftitem("animalia:net", {
|
||||||
if ent.name == "animalia:cat"
|
if ent.name == "animalia:cat"
|
||||||
and ent.trust
|
and ent.trust
|
||||||
and ent.trust[placer:get_player_name()] then
|
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
|
end
|
||||||
meta:set_string("description", desc)
|
meta:set_string("description", desc)
|
||||||
placer:set_wielded_item(itemstack)
|
placer:set_wielded_item(itemstack)
|
||||||
|
|
|
@ -171,6 +171,9 @@ creatura.register_mob("animalia:chicken", {
|
||||||
self:set_gravity(-4.9)
|
self:set_gravity(-4.9)
|
||||||
self:animate("fall")
|
self:animate("fall")
|
||||||
end
|
end
|
||||||
|
if self:timer(60) then
|
||||||
|
animalia.random_drop_item("animalia:chicken_egg", 3)
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
death_func = function(self)
|
death_func = function(self)
|
||||||
if self:get_utility() ~= "animalia:die" then
|
if self:get_utility() ~= "animalia:die" then
|
||||||
|
|
|
@ -30,8 +30,8 @@ creatura.register_mob("animalia:cow", {
|
||||||
-- Visuals
|
-- Visuals
|
||||||
mesh = "animalia_cow.b3d",
|
mesh = "animalia_cow.b3d",
|
||||||
hitbox = {
|
hitbox = {
|
||||||
width = 0.45,
|
width = 0.65,
|
||||||
height = 0.9
|
height = 1.5
|
||||||
},
|
},
|
||||||
visual_size = {x = 10, y = 10},
|
visual_size = {x = 10, y = 10},
|
||||||
female_textures = {
|
female_textures = {
|
||||||
|
|
|
@ -160,6 +160,9 @@ creatura.register_mob("animalia:turkey", {
|
||||||
self:set_gravity(-4.9)
|
self:set_gravity(-4.9)
|
||||||
self:animate("fall")
|
self:animate("fall")
|
||||||
end
|
end
|
||||||
|
if self:timer(60) then
|
||||||
|
animalia.random_drop_item("animalia:chicken_egg", 3)
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
death_func = function(self)
|
death_func = function(self)
|
||||||
if self:get_utility() ~= "animalia:die" then
|
if self:get_utility() ~= "animalia:die" then
|
||||||
|
|
Loading…
Add table
Reference in a new issue