04-12-2014, 11:06 PM
Now i have this code:
Output:
http://pastebin.com/3EFuU6a0
But the ID's aren't right. 137 = command block. But there isn't a command block.
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("%i", Area.GetRelBlockType(x, y, z));
if (Area.GetRelBlockType(x, y, z) == E_BLOCK_BOOKCASE)
{
LOG("BookShelf");
}
}
}
}
Output:
http://pastebin.com/3EFuU6a0
But the ID's aren't right. 137 = command block. But there isn't a command block.

