Mob Instant Explosion

Started by RoboWorks on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mob Instant Explosion

So I have tried everything but I can't make this work. I want the mob to run at the player and as soon as it gets in range of one block it instantly blows up. I have made it to work like a creeper but I need it to blow up instantly instead of a hissing delay. Is there any way to do it?

 

Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to code that in.  I
Tue, 01/31/2017 - 19:07

You need to code that in.  I can maybe point you in the right direction if you are using 1.7.10.  I am not good with anything over 1.7.10

Joined Nov 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I am using 1.7.10  
Tue, 01/31/2017 - 19:32

I am using 1.7.10

 

Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:I am using 1.7.10 
Tue, 01/31/2017 - 22:20

@#2  You can use either array list or BoundingBox

Joined Nov 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:I am using 1.7.10 
Tue, 01/31/2017 - 22:46

I did it using this code:

public void onCollideWithPlayer(EntityPlayer entityplayer) {
          
               world.createExplosion((Entity) null, posX, posY, posZ, 1F, true);
          }