I havent worked with the MCServer code at all, but please try:
cBlockArea Area;
Area.Read(a_Player.GetWorld(), PosX - 2, PosX + 2, PosY, PosY + 1, PosZ - 2, PosZ + 2);
for (int x = 0; x < 6; x++)
{
for (int y = 0; y < 3; y++)
{
for (int z = 0; z < 6; z++)
{
LOG("%i", Area.GetRelBlockType(x, y, z));
if (Area.GetRelBlockType(x, y, z) == E_BLOCK_BOOKCASE)
{
LOG("BookShelf");
}
}
}
}
And:cBlockArea Area;
Area.Read(a_Player.GetWorld(), PosX - 2, PosX + 2, PosY, PosY + 1, PosZ - 2, PosZ + 2);
for (int x = 0; x < 6; x++)
{
for (int y = 0; y < 3; y++)
{
for (int z = 0; z < 6; z++)
{
LOG("%i", Area.GetBlockType(x, y, z));
if (Area.GetBlockType(x, y, z) == E_BLOCK_BOOKCASE)
{
LOG("BookShelf");
}
}
}
}

