I have an item, it shoots an entity. When the entity hits something, it makes an Explosion(Explosion.java).
But, when I walk into the area it exploded, my player twitches everywhere and I can't jump(same effects as walking into a world hole). Explosion.java also produces fire, but when I walk into it, it binds the fire over my screen(and every mob that walks into it is "burning"), but nothing is being hurt. Also, when I quit and come back into the world, it is as nothing even happened. No burning, no flames anywhere, and no hole from any explosions. Is there any way I can fix this?
Honestly, I don't think any of you get it. I'm not trying to get different code for an explosion. Anything I do; spawn mobs, set blocks, create explosions; nothing works. It's all client side.
Rollback Post to RevisionRollBack
If I helped you then please press the button.
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
But, when I walk into the area it exploded, my player twitches everywhere and I can't jump(same effects as walking into a world hole). Explosion.java also produces fire, but when I walk into it, it binds the fire over my screen(and every mob that walks into it is "burning"), but nothing is being hurt. Also, when I quit and come back into the world, it is as nothing even happened. No burning, no flames anywhere, and no hole from any explosions. Is there any way I can fix this?
onImpact method:
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
{
//spawn lightning
this.worldObj.spawnEntityInWorld(new EntityLightningBolt(this.worldObj, par1.blockX, par1.blockY, par1.blockZ));
Explosion explosion = new Explosion(
this.worldObj,
this,
par1.blockX,
par1.blockY,
par1.blockZ,
1);
explosion.isFlaming = false;
explosion.isSmoking = true;
explosion.doExplosionA();
explosion.doExplosionB(true);
this.setDead();
try that, and maybe thats because your minecraft was laggy
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
this.worldObj.createExplosion(this, par1.blockX, par1.blockY, par1.blockZ, 4, true);
Remove this:
Explosion explosion = new Explosion(
this.worldObj,
this,
par1.blockX,
par1.blockY,
par1.blockZ,
1);
explosion.isFlaming = true;
explosion.isSmoking = true;
explosion.doExplosionA();
explosion.doExplosionB(true);
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
When I do that, it doesn't even make lightning or an explosion.
Be sure to quote my post if you want a reply.
lol @ Cameronazzi copy-pasting my sig into his
Other than that, the code I posted is adapted from the EntityEgg projectile class.