local op = peripheral.wrap("top")

local c = {x=198, y=100, z=369}
local w = op.getWorld(0)

--for k,v in pairs(w) do
--  print(k)
--end

local unknown = {}

local r = 5

local y = c.y
--for y=c.y-2,c.y+4 do
  --term.setCursorPos(1,1)
  --term.clear()
  --print(tostring(c.y) .. " - " .. tostring(y))
  for x=c.x-r,c.x+r do
    for z=c.z-r,c.z+r do
      local id = w.getBlockID(x, y, z)
      local meta = w.getMetadata(x, y, z)
      local b = tostring(id)
      if meta ~=  nil then
        b = b .. ":" .. tostring(meta)
      end
      if id == 2250 then -- Book case
        print("Removing " .. tostring(x) .. "," .. tostring(y) .. "," .. tostring(z))
        w.setBlock(x,y,z,0,0)
      end
    end
  end
--end

--for k,v in pairs(unknown) do
--  print(v)
--end
