How to make a projectile go straight forward?

Started by KRISTIYALNO_0962 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a projectile go straight forward?

I'm making a mod and there is a item that shoots a projectile and I want it to go straight I looked at other posts but they don't work. I tried making it have no gravity from the source code and from the procedure using set entity have no-gravity and with executing attribute command while it's on air but none worked. Can someone help?

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
while flying tick just use …
Sun, 02/05/2023 - 13:58

while flying tick just use "set no-gravity for [immediate source entity]