04-12-2014, 10:48 PM
Currently i'm working on the bookshelves checking.
What is wrong? PosX etc.. are the Enchantment Table Position.
cBlockArea Area;
Area.Read(a_Player.GetWorld(), PosX - 2, PosX + 2, PosY, PosY + 1, PosZ - 2, PosZ + 2);
for (int x = 0; x < 7; x++)
{
for (int y = 0; y < 2; y++)
{
for (int z = 0; z < 7; z++)
{
LOG(Printf("%i", Area.GetBlockType(x, y, z)).c_str());
if (Area.GetBlockType(x, y, z) == E_BLOCK_BOOKCASE)
{
LOG("BookShelf");
}
}
}
}
What is wrong? PosX etc.. are the Enchantment Table Position.

