How do i make a floating projectile and add vector

Started by P5yui on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make a floating projectile and add vector

So I made an animated mob with the geckolib plugin and wanted to add a cool attack

Basically the mob moves back and then starts charging the attack which spawn an orb (which is a projectile ive already created) at the 15th tick and throws it at the 25th tick

I managed to get the synchronization right using an nbt timer but I cant figure out how to make the projectile spawn without moving and then apply a vector to it to make it move in a straight line towards the direction the mob is facing in

This is my procedure (its in the On entity tick update trigger): 

(link if the image doesnt work): https://imgur.com/a/dLoIijQ

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try to add procedure "While…
Wed, 11/13/2024 - 16:26

Try to add procedure "While projectile flying tick" to your projectile. Than add attempt to override immediate source entity to x = immediate sorce entitie's x, same for z and y = 0