Bats don't stop moving after changing activation range
tropicthedev opened this issue ยท 2 comments
Describe the bug
Bats Don't stop moving from any of the categories under the activation range
Reproduce
Steps to reproduce the behavior:
animal_activation_range =1
flying_activation_range=1
neutral_activation_range=1
misc_activation_range = 1
Neither of these turns them off
Expected behaviour
Bats not to move when out of the 1 chunk distance
Versions -Latest is not a version!
ServerCore:1.2.6
Minecraft:1.18.1
Bats are ambient creatures, but not considered flying mobs (judging by the game's code).
This means that whenever they are not on the ground (flying or falling), they will be immunized from activation ranges.
They will stop ticking once they touch the ground or water.
Bees are nearly identical in that regard, but for bees thats intended so farms can still function somewhat normally - whereas bats are pretty much useless.
Another thing is that entity activation range is quite a bit more advanced than just "freeze entity over x chunks". It also includes immunity checks and such to make entities not ticking far less noticeable, which could allow them to sometimes tick outside of specified activation range, like in this case.
Also note that activation ranges are counted in blocks, not chunks. Setting that value to 1 means they won't activate unless you hug them.