I have a custom squid (not extending EntitySquid) but I want to use the new AI. When I tried out my turning AI, the squid would only turn around the Y axis. What do I need to give the class so that the squid will rotate around the x/z axis as well?
Thanks for reading.
Rollback Post to RevisionRollBack
I have made an unofficial port of the spectacular ExRollerCoaster mod, updated for Minecraft 1.12.2.
Build wonderful roller coasters which can go in ANY direction, and the camera will twist and turn with you.
I'm not releasing it through the usual channels but I hope four years on this site makes me a trustworthy modder.
Links:
So there's no easier way to do it? The main part of the AI is a call to EntityLookHelper.setLookPosition(); can't it just change the pitch rotation through that?
Rollback Post to RevisionRollBack
I have made an unofficial port of the spectacular ExRollerCoaster mod, updated for Minecraft 1.12.2.
Build wonderful roller coasters which can go in ANY direction, and the camera will twist and turn with you.
I'm not releasing it through the usual channels but I hope four years on this site makes me a trustworthy modder.
Links:
You can change the rotation pitch wherever you want -- it is a field in your entity and up to you to program. However, in your render you also need to make sure you make use of the rotation pitch to rotate the renderings. Depending on what code you've copied, it might already be doing this stuff, but you need to check. As long as rotation pitch is updated (either in AI, or in tick update, or in rendering code) and you also rotate your rendering based on the value then it should work.
OK, so what method would I put, for example, Head.rotateAngleX = entity.rotationPitch into?
Rollback Post to RevisionRollBack
I have made an unofficial port of the spectacular ExRollerCoaster mod, updated for Minecraft 1.12.2.
Build wonderful roller coasters which can go in ANY direction, and the camera will twist and turn with you.
I'm not releasing it through the usual channels but I hope four years on this site makes me a trustworthy modder.
Links:
I would probably put it in my model class in a method like set rotation and angles. But the point is to also make sure that no other code is trying to change the angle based on pitch. By using debug mode, or by using System.out.println() statements in your code, you should trace the execution until you're confident that the head angle is following the pitch.
I have made an unofficial port of the spectacular ExRollerCoaster mod, updated for Minecraft 1.12.2.
Build wonderful roller coasters which can go in ANY direction, and the camera will twist and turn with you.
I'm not releasing it through the usual channels but I hope four years on this site makes me a trustworthy modder.
Links:
Thanks for reading.
I have made an unofficial port of the spectacular ExRollerCoaster mod, updated for Minecraft 1.12.2.
Build wonderful roller coasters which can go in ANY direction, and the camera will twist and turn with you.
I'm not releasing it through the usual channels but I hope four years on this site makes me a trustworthy modder.
Links:
original mod homepage
source code of my port
download mod jar here
I have made an unofficial port of the spectacular ExRollerCoaster mod, updated for Minecraft 1.12.2.
Build wonderful roller coasters which can go in ANY direction, and the camera will twist and turn with you.
I'm not releasing it through the usual channels but I hope four years on this site makes me a trustworthy modder.
Links:
original mod homepage
source code of my port
download mod jar here
I have made an unofficial port of the spectacular ExRollerCoaster mod, updated for Minecraft 1.12.2.
Build wonderful roller coasters which can go in ANY direction, and the camera will twist and turn with you.
I'm not releasing it through the usual channels but I hope four years on this site makes me a trustworthy modder.
Links:
original mod homepage
source code of my port
download mod jar here
I have made an unofficial port of the spectacular ExRollerCoaster mod, updated for Minecraft 1.12.2.
Build wonderful roller coasters which can go in ANY direction, and the camera will twist and turn with you.
I'm not releasing it through the usual channels but I hope four years on this site makes me a trustworthy modder.
Links:
original mod homepage
source code of my port
download mod jar here