public void onUpdate()
    {
        if (isEntityAlive())
        {
            lastActiveTime = timeSinceIgnited;
            int i = getCreeperState();

            if (i > 0 && timeSinceIgnited == 0)
            {
                worldObj.playSoundAtEntity(this, "random.fuse", 1.0F, 0.5F);
            }

            timeSinceIgnited += i;

            if (timeSinceIgnited < 0)
            {
                timeSinceIgnited = 0;
            }

            if (timeSinceIgnited >= 30)
            {
                timeSinceIgnited = 30;

                if (!worldObj.isRemote)
                {
                    if (getPowered())
                    {
                        worldObj.createExplosion(this, posX, posY, posZ, 6F);
                    }
                    else
                    {
                        worldObj.createExplosion(this, posX, posY, posZ, 3F);
                    }

                    setDead();
                }
            }
        }

        super.onUpdate();
    }