[Solved] Gravityless Projectile?

Started by efanum on

Topic category: Help with MCreator software

Active 5 months ago
Joined May 2020
Points:
715

User statistics:

  • Modifications: 3
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 128
[Solved] Gravityless Projectile?
Mon, 12/27/2021 - 14:50 (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 Mon, 12/27/2021 - 14:50
Active 4 years ago
Joined Jan 2020
Points:
838

User statistics:

  • Modifications: 1
  • Forum topics: 20
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 203
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.

Active 5 months ago
Joined May 2020
Points:
715

User statistics:

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

Active 1 year ago
Joined Jun 2019
Points:
729

User statistics:

  • Modifications: 4
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 78
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.

Active 5 months ago
Joined May 2020
Points:
715

User statistics:

  • Modifications: 3
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 128
Thanks!
Wed, 10/14/2020 - 11:20

Thanks!

Active 5 months ago
Joined May 2020
Points:
715

User statistics:

  • Modifications: 3
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 128
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

Active 8 months ago
Joined Oct 2020
Points:
603

User statistics:

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

help for how to publish mod in mod of the week

 

Active 5 months ago
Joined May 2020
Points:
715

User statistics:

  • Modifications: 3
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 128
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

Active 2 years ago
Joined Aug 2020
Points:
696

User statistics:

  • Modifications: 1
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 112
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).

Active 3 years ago
Joined Sep 2020
Points:
639

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
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);.

Active 5 months ago
Joined May 2020
Points:
715

User statistics:

  • Modifications: 3
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 128
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!

Active 6 days ago
Joined Mar 2020
Points:
1169

User statistics:

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

Active 5 months ago
Joined May 2020
Points:
715

User statistics:

  • Modifications: 3
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 128
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.

Active 6 days ago
Joined Mar 2020
Points:
1169

User statistics:

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