How to make an entity turn around on attack?

Started by Skriller on

Topic category: Help with modding (Java Edition)

Last seen on 03:45, 19. Jan 2023
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an entity turn around on attack?

I have a Stegosaurus entity and its attack animation has the tail swinging and hitting, and I've tried making a procedure for the entity to rotate 180 degrees every time it attacks but it doesn't really work.


 

 

 

 

 

 

Here is the procedure

Last seen on 19:36, 28. Mar 2024
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Image is not working, could…
Tue, 01/17/2023 - 02:10

Image is not working, could maybe help if i saw it.

 

Or you could use geckolib and make a custom animation, making the dinosaur turn around in the animation without a procedure that messes with its rotation and all that.