Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print ("IntelliScan v1.0")
- print ("")
- print ("Scanning for Goggles of Revealing peripheral...")
- peripheralLeft = peripheral.isPresent("Left")
- if peripheralLeft == true then
- print ("Goggles of Revealing detected on left face of Turtle.")
- peripheral.wrap("Left")
- elseif peripheralLeft == false then
- peripheralRight = peripheral.isPresent("Right")
- sleep(1)
- if peripheralRight == true then
- print ("Goggles of Revealing detected on right face of Turtle.")
- peripheral.wrap("Right")
- elseif peripheralRight == false then
- peripheralTop = peripheral.isPresent("Top")
- sleep(1)
- if peripheralTop == true then
- print ("Goggles of Revealing detected on top face of Turtle.")
- peripheral.wrap("Top")
- elseif peripheralTop == false then
- peripheralBottom = peripheral.isPresent("Bottom")
- sleep(1)
- if peripheralBottom == true then
- print ("Goggles of Revealing detected on bottom face of Turtle.")
- peripheral.wrap("Bottom")
- elseif peripheralBottom == false then
- peripheralBack = peripheral.isPresent("Back")
- sleep(1)
- if peripheralBack == true then
- print ("Goggles of Revealing detected on back face of Turtle.")
- peripheral.wrap("Back")
- elseif peripheralBack == false then
- peripheralFront = peripheral.isPresent("Front")
- sleep(1)
- if peripheralFront == true then
- print ("Goggles of Revealing detected on front face of Turtle.")
- peripheral.wrap("Front")
- elseif peripheralFront == false then
- print ("No Goggles of Revealing peripherals were detected on any of the Turtle's faces. Please make sure the Turtle has the Goggles of Revealing peripheral on one of it's faces.")
- sleep(1)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- if peripheralLeft == true
- or peripheralRight == true
- or peripheralTop == true
- or peripheralBottom == true
- or peripheralBack == true
- or peripheralFront == true then
- print ("| SCAN |")
- local event XY = os.pullEvent("mouse_click")
- XY = X..","..Y
- if XY == "1, 3"
- or XY == "2, 3"
- or XY == "3, 3"
- or XY == "4, 3"
- or XY == "5, 3"
- or XY == "6, 3"
- or XY == "7, 3"
- or XY == "8, 3" then
- print ("Scanning...")
- sleep(2)
- m.getAuraNode()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement