How to make a projectile go straight forward?

Started by KRISTIYALNO_0962 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Sep 2022
Points:
398

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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?

Active 5 months ago
Joined Jul 2022
Points:
439

User statistics:

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

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