Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local server = 56
- local disk = peripheral.wrap("bottom")
- local data = {}
- local door = "Reacteur_door"
- local isLock = false
- rednet.open("back")
- while true do
- local p = 0
- if disk.isDiskPresent() then
- data["door"] = door
- data["player"] = disk.getDiskLabel()
- data["isLocked"] = false
- rednet.send(server,textutils.serialize(data))
- print("Bonjour "..data["player"])
- disk.ejectDisk()
- rs.setOutput("right", true)
- os.sleep(1.5)
- rs.setOutput("right", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement