Skip to content

Instantly share code, notes, and snippets.

osLoadAPI("json")
file = fs.open("playerDB.txt", "r")
fileStr = file.readAll()
file.close()
jsonObj = json.decode(fileStr)
for key, value in pairs(jsonObj) do
if key == "player" then
local playerObj = value
local myid = os.computerID()
local doorList = { 11,13 }
local passwordForDoor = { "notch","minecraft" }
mon=peripheral.wrap("top")
print("Access Terminal")
rednet.open("left")
print("Computer id for Access Terminal is "..tostring(myid))
@Quader
Quader / turtle_scan.lua
Created August 25, 2014 20:55
turtle scan
--EN:
--This program will create a virtual map of
--an specified area. This map can be used for
--copying this area somewhere else.
--
--Download BuildArea from http://pastebin.com/45dc4FG2
--CZ:
--Tenhle program naskenuje danou oblast a vytvori
--virtualni mapu. Tu muze pouzit program BuildArea