[Solved] Gravityless Projectile?

Started by efanum on Sat, 10/10/2020 - 16:56

Topic category: Help with MCreator software

Last seen on 14:09, 6. May 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
[Solved] Gravityless Projectile?
Sun, 01/24/2021 - 11:56 (edited)

Hello.

Does anyone know how to do a ranged item without gravity nor inertia (or at least without gravity) ?

Thanks

Edited by efanum on Sun, 01/24/2021 - 11:56
Last seen on 22:49, 17. Mar 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Well, entities can get …
Sun, 10/11/2020 - 21:08

Well, entities can get "NoGravity" as part of their NBT, so you'd just need a way to set NoGravity:1 when the arrow spawns.

Last seen on 14:09, 6. May 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yes, but i only know how to…
Tue, 10/13/2020 - 19:23

Yes, but i only know how to do in 1.12.2 and my mod is in 1.14.4.

Do you know how to do that in 1.14.4?

Last seen on 20:44, 13. May 2021
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You should be able to set…
Tue, 10/13/2020 - 20:55

You should be able to set NBT using the procedure blocks for setting NBT. Alternatively you could use a data merge entity command. Which I recommend using MCStacker, a command generator, for.

Last seen on 14:09, 6. May 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks!
Wed, 10/14/2020 - 11:20

Thanks!

Last seen on 14:09, 6. May 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Can you add a picture of the…
Wed, 10/14/2020 - 13:58

Can you add a picture of the procedure please? It doesn't work so i think i used the wrong one

Last seen on 18:19, 7. May 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
help for how to publish mod…
Sun, 10/18/2020 - 13:38

help for how to publish mod in mod of the week

 

Last seen on 14:09, 6. May 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks, but i want to apply…
Mon, 10/19/2020 - 13:32

Thanks, but i want to apply it to only a specific ranged item and not to all the ranged items

Last seen on 10:45, 10. May 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You should be able to just…
Mon, 10/19/2020 - 18:20

You should be able to just change the entity in the type box to your projectile's entity to make it work. Alternatively, you could get rid of the if statement and execute the command using the While bullet flying tick trigger (since there's no when bullet spawns trigger).

Last seen on 21:22, 14. Jan 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Go to the code of the…
Wed, 12/23/2020 - 01:43

Go to the code of the projectile (or the ranged weapon) and look on the right. You will see arrowcustomentity. go to this and on the right find tick() under arrowcustomentity. under Entity entity = this.getShooter(); simply type setNoGravity(true);.

Last seen on 14:09, 6. May 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yeah it works!!!! (Sorry I…
Sun, 01/24/2021 - 11:55

Yeah it works!!!!

(Sorry I saw your reply nearly one month after)

Huge thanks to you!

Last seen on 19:48, 13. May 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
hey its true that work, but…
Thu, 04/08/2021 - 16:03

hey its true that work, but i see some problem with that, when i use the custom projectile to attack a mob, the projectile sometime start flying slowly while coming back at me.

Last seen on 14:09, 6. May 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yep, I noticed this to. But…
Sat, 04/10/2021 - 11:16

Yep, I noticed this to.

But I made some tests, and it's not this "setNoGravity" that causes the error, it happens with any ranged item which is going too fast.

Last seen on 19:48, 13. May 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
thank you for telling me…
Mon, 04/12/2021 - 12:58

thank you for telling me this. i am making a dragon ball mod, and these no gravity projectile are Ki Blast.