#How create explosion?

12 messages · Page 1 of 1 (latest)

plain ether
#

in 1 20 1

iron gyro
#

world.createExplosion

plain ether
#

world.createExplosion(this,this.getX(),this.getY(),this.getZ(),Explosion.DestructionType.DESTROY);

#

wrong

iron gyro
#

Meaning it doesn't work or what?

plain ether
#

Cannot resolve method 'createExplosion(Explosive_dirt_entity, double, double, double, DestructionType)'

iron gyro
#

Make sure you are on the correct logical side (I think it should be used serverside) and make sure you are using the correct parameters

#

Aka use ServerWorld

plain ether
#

Explosion.DestructionType.DESTROY

plain ether
iron gyro
#

Ah that changed yes. Look into TntEntity to see how mojang did

#

I think it's ExplosionType.stuff iirc