public void tick()
	{
		light = Main.world.light.getShadow((int)x / Tile.tileSize, (int)y / Tile.tileSize);

		life++;
		if(isCollidingWithPlayer()) Main.player.hurt(0.3F, DeathCause.GRAVITY);
		if(!isCollidingWithBlock(new Point((int) x + 2, (int) (y + height)), new Point((int) (x + width - 2), (int) (y + height))))
		{
			y += velocity;
			if(velocity < maxVelocity) velocity += 0.1;
			isFalling = true;
			isOnGround = false;
		}
		else
		{
			isFalling = false;
			isOnGround = true;
			velocity = 0.1;
		}

		if(isOnGround || !isFalling)
		{
			Main.world.setBlock((int)(x / Tile.tileSize), (int)(y / Tile.tileSize), blockid);
			if(blockid == Block.chest.blockID)
			{
				((ChestBlock)Main.world.getBlock((int)(x / Tile.tileSize), (int)(y / Tile.tileSize))).newChest(((ChestBlock)Main.world.getBlock((int)(x / Tile.tileSize), (int)(y / Tile.tileSize))).getUniqueChest(), (int)(x / Tile.tileSize), (int)(y / Tile.tileSize));
				if(items != null)
				{
					for(int i = 0; i < items.length; i++)
					{
						if(items[i] != null) ChestBlock.setChestContains((int)(x / Tile.tileSize), (int)(y / Tile.tileSize), i, items[i]);
					}
				}
			}
			despawnEntity();
		}
	}