Fix sheared Sheep texture, Improve behaviors, Improve mapgen spawning

This commit is contained in:
ElCeejo 2022-02-22 20:19:11 -08:00
parent 31c0232697
commit fc6af4b455
5 changed files with 76 additions and 56 deletions

View file

@ -141,7 +141,8 @@ creatura.register_mob("animalia:cow", {
[5] = {
utility = "animalia:mammal_breed",
get_score = function(self)
if self.breeding then
if self.breeding
and animalia.get_nearby_mate(self, self.name) then
return 0.9, {self}
end
return 0

View file

@ -162,11 +162,6 @@ creatura.register_mob("animalia:horse", {
and type(self.lasso_origin) == "userdata" then
return 0.8, {self, self.lasso_origin, true}
end
local player = creatura.get_nearby_player(self)
if player
and self:follow_wielded_item(player) then
return 0.8, {self, player}
end
return 0
end
},

View file

@ -68,7 +68,6 @@ creatura.register_mob("animalia:sheep", {
walk = {range = {x = 70, y = 110}, speed = 40, frame_blend = 0.3, loop = true},
run = {range = {x = 70, y = 110}, speed = 50, frame_blend = 0.3, loop = true},
},
use_texture_alpha = true,
-- Misc
catch_with_net = true,
catch_with_lasso = true,