You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As shown previously on Discord, there's an interesting interaction between Horse Power and Animania horses. While the Animania devs would prefer if you prevented their sleeping mobs from "working", I imagined a simpler solution would be to ensure that calls to "getLeashed()" (which prevent the "sleep" behaviour/animation/pose) are true when the animal is working.
Obviously, as the boolean value that this function returns is private, it would probably require an access transformer or some form of reflection to change at the necessary points.
Example:
Currently, I'm using horse.hasHome() && horse.world.getTileEntity(horse.getHomePosition()) != null to determine if a horse is attached to a Horse Power device. While this check is sufficient for me, being able to simply rely on getLeashed() would be much clearer in code.
Thanks so much for an amazing mod! I've been using it heavily in the mod pack I've been designing and love it greatly.
The text was updated successfully, but these errors were encountered:
As shown previously on Discord, there's an interesting interaction between Horse Power and Animania horses. While the Animania devs would prefer if you prevented their sleeping mobs from "working", I imagined a simpler solution would be to ensure that calls to "getLeashed()" (which prevent the "sleep" behaviour/animation/pose) are true when the animal is working.
Obviously, as the boolean value that this function returns is private, it would probably require an access transformer or some form of reflection to change at the necessary points.
Example:
Currently, I'm using
horse.hasHome() && horse.world.getTileEntity(horse.getHomePosition()) != null
to determine if a horse is attached to a Horse Power device. While this check is sufficient for me, being able to simply rely on getLeashed() would be much clearer in code.Thanks so much for an amazing mod! I've been using it heavily in the mod pack I've been designing and love it greatly.
The text was updated successfully, but these errors were encountered: