Entity Subtype for custom bullets

Started by VuFlub on

Topic category: Help with modding (Java Edition)

Last seen on 03:52, 28. Jul 2023
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity Subtype for custom bullets
Fri, 03/12/2021 - 22:34 (edited)

I'm trying to make a bullet that explodes while flying without blowing up the bullet in mid air. I used this code here 

if ((((entityiterator instanceof PlayerEntity) == (false)) && ((entityiterator instanceof ArrowEntity) == (false)))) {
                    if (world instanceof World && !((World) world).isRemote) {
                        ((World) world).createExplosion(null, (int) (entityiterator.getPosX()), (int) (entityiterator.getPosY()),
                                (int) (entityiterator.getPosZ()), (float) 1, Explosion.Mode.NONE);

 

But it will still explode even if I select sub type as arrow. Which really doesn't make sense because isn't the bullet just a arrow entity? Basically what I'm trying to say is there a sub type for custom arrows entities.

Edited by VuFlub on Fri, 03/12/2021 - 22:34
Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
show the procedure and where…
Sat, 03/13/2021 - 08:34

show the procedure and where its being called.