Ranged item new option - Is bullet affected by gravity?

Started by Rooldook on

Topic category: Feature requests and ideas for MCreator

Last seen on 11:28, 1. Feb 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ranged item new option - Is bullet affected by gravity?
Sun, 11/01/2020 - 08:15 (edited)

Hello, I was thinking about creating a new option for ranged item:

Is bullet affected by gravity?

What will change in the bullet code:

public static ArrowCustomEntity shoot(LivingEntity entity, LivingEntity target) {

...

        entityarrow.setSilent(true);
        entityarrow.setDamage(5);
        entityarrow.setKnockbackStrength(5);

       entityarrow.setNoGravity(true/false);

       entityarrow.setIsCritical(false);
        entity.world.addEntity(entityarrow);

 

Edited by Rooldook on Sun, 11/01/2020 - 08:15
Last seen on 19:42, 24. Mar 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah that would be nice.
Wed, 03/03/2021 - 17:45

yeah that would be nice.