Custom Projectiles that circle you

Started by Xnano Gaming 567 RXQ on

Topic category: Advanced modding

Joined Oct 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Projectiles that circle you

Is it possible to have projectiles circle you for a limited time and if possible to not make them disappear when an entity hits them.

Joined Oct 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
another question though. How…
Thu, 12/03/2020 - 18:34

another question though. How would I make an item shoot projectiles really fast for 5 seconds.

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could use a bit of…
Sun, 03/07/2021 - 11:04

You could use a bit of highschool math for this. You don´t event need to code, although i did (I created a homing projectile recentely). Pythagoras theorem or however it is called in english can help you. You need two triangles: One for your rotationYaw and one for your rotationPitch. After that lot of work with "sin", "cos" and "tan". Keep an eye on the 4 Quadrants however. If you want to edit the arrowentity you have to go into the code and add the arrowentity as a dependency and convert it to a normal entity for easy usage. Respond to me, if you want more insight into how to do it, if that is even what you want.