How to make an entity turn around on attack?

Started by Skriller on

Topic category: Help with Minecraft modding (Java Edition)

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

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.