Help with entity rotation

Started by jive on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with entity rotation
Sat, 02/04/2023 - 08:09 (edited)

This issue is posed for MCreator 2022.3 on a 1.16.5 generator.

So right now I'm attempting to spawn geckolib entities that play a laser beam animation when they spawn. While they spawn with no issue, there's one problem:
I'm not able to get the entity to face where the player is looking latitudinally, only longitudinally. Here's a demonstration:

A demonstration of my issue

As you can see, the beam entity spawns in any direction the player is facing in one plane of rotation, that being the longitudinal axis, but never the latitudinal axis.
Here's the procedure that allows for this current process I have:

Since the current version of the Geckolib plugin for Blockbench doesn't allow for animated models to be exported as .java files and therefore to be used as projectile models, this is my only option as far as I can see in terms of laser beam animations. 
If anyone has a solution, or an alternative to the issue posed, I'm all ears. Thanks in advance.

Edited by jive on Sat, 02/04/2023 - 08:09
Give whatever group the…
Sat, 02/04/2023 - 13:42

Give whatever group the lazer beam uses the head movement animation.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It seems the entity doesn't…
Sat, 02/04/2023 - 20:54

It seems the entity doesn't spawn looking where I'm looking still. It may have to do with the fact that I have its AI disabled, but when I enable it, head rotation still doesn't seem to work.

I have it enabled here: 
example

Along with the head group being named as such:

head

I even had its pivot points centered for good measure. No dice here. I'm not sure if there's a way to force an entity to be looking where a player is looking, even then I can't seem to get the head movements working either.
Is there an alternative to what I'm trying to do, like setting projectile models to geckolib animated models?
Thanks much for responding.

GeckoLib does support…
Sat, 02/04/2023 - 21:02

GeckoLib does support animated projectiles. I might introduce them to the plugin in the future,

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Please, that would be a…
Sat, 02/04/2023 - 21:42

Please, that would be a godsend. Thanks much for trying to help, Nerdy.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you're still there Nerdy,…
Sun, 02/05/2023 - 06:21

If you're still there Nerdy, I'm trying to get the head animation working as I found out mobs to do look where I look when I use my procedure. Any clue why my entity is not registering proper head animations?

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Having this same problem :(
Sun, 02/04/2024 - 22:07

Having this same problem :(