Make a non gravity projectile on 2021.2

Started by a guy called l… on

Topic category: User side tutorials

Active 3 months ago
Joined Jan 2021
Points:
817

User statistics:

  • Modifications: 1
  • Forum topics: 41
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 85
Make a non gravity projectile on 2021.2

I think it will be hard, but is realy easy

click CONTROL + F on the code of the proyectile, search entityarrow.setKnockbackStrength(knockback) and click ENTER to go

Below entityarrow.setKnockbackStrength(knockback) just write entityarrow.setNoGravity(true); and you proyectile will no have gravity

For evade lag, I put on

"proyectile tick update"

wait XX ticks on server side

Despawn immediate source entity target

 

Active 2 years ago
Joined Feb 2020
Points:
624

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
This worked like a charm!…
Wed, 03/16/2022 - 05:14

This worked like a charm! but when a mob fires it it still has gravity, so im guessing i have to tell something else to not have gravity too....

Active 3 months ago
Joined Jan 2021
Points:
817

User statistics:

  • Modifications: 1
  • Forum topics: 41
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 85
If you wanna the mob using…
Wed, 03/16/2022 - 13:19

If you wanna the mob using it without gravity, make it shot via procedures and not ranged attack, at least I make it work like that, mainly doing a bullet hell boss

Active 4 months ago
Joined Jan 2023
Points:
314

User statistics:

  • Modifications: 0
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 68
set no-gravity of entity to …
Thu, 08/31/2023 - 11:43

set no-gravity of entity to [true]

can be found in the entity management section