Ranged item new option - Is bullet affected by gravity?

Started by Rooldook on Sun, 11/01/2020 - 08:14

Topic category: Feature requests and ideas for MCreator

Last seen on 15:57, 25. Jan 2021
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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