Advertisement
leonardi

chunktest

Oct 17th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. os.loadAPI("nbt")
  2.  
  3. local x, y, z = -300008, 70, 5186
  4.  
  5. p = peripheral.wrap("right")
  6. worlds = p.getLoadedWorlds()
  7. w = p.getWorld(0)
  8. --print(w)
  9. --print(p.getPeripheralWorldID())
  10. --Create a chest
  11. --w.setBlock(x, y, z, 54, 0)
  12. while true do
  13. ID = w.getBlockID(x, y, z)
  14. print(ID)
  15. sleep(5)
  16. isLoaded = w.isChunkLoaded(x, z)
  17. print(isLoaded)
  18. w.setBlock(x, 70, z, 54, 0)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement