Custom projectile entity rotates when I turn my head #2155
Unanswered
SirEnder125
asked this question in
Mod Dev Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! So I made a custom projectile entity, and an item which spawns it. My entity class extendedSnowballEntity
at first, and everything worked seemingly fine. But when I changed the superclass toThrownItemEntity
, and added the renderer myself instead of using the one set to render SNOWBALL, the entity now rotates if I move my head. So if I throw it, and look slightly left while it's flying through the air, it will fly in the same direction, yet it will rotate with the player... Why would this happen? I wasn't sure if code was needed, but if it is, please let me know!My bad! It seems snowball entities do this as well-- lol. Guess I didn't notice. 🤔
Beta Was this translation helpful? Give feedback.
All reactions