How to make a rideable entity shoot projectiles

Started by dadogplayz7 on

Topic category: Help with modding (Java Edition)

Last seen on 18:58, 28. Oct 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a rideable entity shoot projectiles

Hi, i am making a StarWars mod and i was adding the spacecrafts but i was wondering how do you make the spacecrafts shoot out projectiles?

Last seen on 10:11, 22. Dec 2020
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Im not 100% sure but you…
Tue, 12/22/2020 - 09:34

Im not 100% sure but you could add a hotkey and when you press it while being mounted on the spacecraft, you shoot a projectile at player raycast and give it speed via vectors

Last seen on 18:58, 28. Oct 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, thx but i already fixed…
Tue, 12/22/2020 - 23:28

Oh, thx but i already fixed this.

Last seen on 10:58, 12. Oct 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how did you figure it out…
Wed, 05/04/2022 - 10:20

how did you figure it out how how