So my block that explodes when broken doesn't deal damage to the player that triggers it (does damage others) and I'm pretty sure it's because of what I declare as the entity.
@Override
public void onBlockDestroyedByPlayer(World world, int x, int y, int z, int meta) {
world.createExplosion(world.getClosestPlayer(x, y, z, meta), (double)x, (double)y, (double)z, 10.0F, false);
}
What should I actually be putting in there? From what I can tell the entity is supposed to be the one that causes the explosion (i.e. the block). I was trying to find something along the lines of "(EntityTile)this" but failed.