mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-23 01:10:25 +01:00
Fixed chicken laying egg
This commit is contained in:
parent
85eaef6dff
commit
029c1fc437
@ -59,8 +59,10 @@ mobs:register_mob("mobs_animal:chicken", {
|
|||||||
|
|
||||||
do_custom = function(self)
|
do_custom = function(self)
|
||||||
|
|
||||||
if not self.child
|
if self.child
|
||||||
and math.random(1, 500) == 1 then
|
or math.random(1, 2000) > 1 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local pos = self.object:getpos()
|
local pos = self.object:getpos()
|
||||||
|
|
||||||
@ -71,7 +73,6 @@ mobs:register_mob("mobs_animal:chicken", {
|
|||||||
gain = 1.0,
|
gain = 1.0,
|
||||||
max_hear_distance = 5,
|
max_hear_distance = 5,
|
||||||
})
|
})
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user