ServerCore

ServerCore

7M Downloads

Activation range breaks chicken farms

dsampinski opened this issue ยท 5 comments

commented

When chickens are out of range (16), they stop laying eggs for the farm to work, even though ticking every second is enabled.

ServerCore: 1.3.0
Minecraft: 1.19

commented

I did end up finding a few more 'somewhat' similar cases to mobs that are affected by it.
Now in most cases this makes sense logically, otherwise it isn't much "activation range".

In case of chicken eggs, I feel like thats just harmless enough to fix.
The other thing I managed to find was about skeleton horse traps.
They would normally despawn after 18.000 ticks, but that obviously doesn't happen if that counter doesn't get updated if nobody is close to them..

commented

The time for a chicken to lay an egg is counted in ticks - and if it ticks less often, it will take that much longer for it to finish.
I can probably work around it by updating the egg time as part of its inactive tick. It shouldn't be completely broken though, but it does take 20 times longer for a chicken to lay an egg this way.

commented

I can probably work around it by updating the egg time as part of its inactive tick.

That would be much appreciated. Thank you!
As a side note, there may be other animals that are affected, such as sheep restoring wool. Had no experience with it and cannot know if they are affected as I am not a Java dev, but might be worth it to take a look.

commented

Is the animal growth also affected by it?

commented

No, it is not