Advertisement
Tag365

Bundt API Map

May 4th, 2015
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. while true do
  2. local width, height = term.getSize()
  3. local nX, nY, nZ = bundt.getTurtlePosition()
  4. local dx, dy = 0, 0
  5. for kx=nX - math.floor(width*.5), nX + math.ceil(width*.5) do
  6. dx = dx + 1
  7. dy = 0
  8. for kz=nZ - math.floor(height*.5), nZ + math.ceil(height*.5) do
  9. dy = dy + 1
  10. term.setCursorPos(dx, dy)
  11. bundt.drawBlockInMap(kx, nY, kz)
  12. end
  13. end
  14. sleep()
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement