Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --!refuel
- --This is a user friendly refueling program
- print("In a second I will scan my inventory for fuel and use EVERYTHING I find.")
- print("")
- sleep(1.5)
- print("Is this ok (Y/N)? ")
- print("")
- local x=read()
- if x=="Y" or "y" then
- for i=1, 16 do
- turtle.select(i)
- turtle.refuel()
- end
- elseif x=="N" or "n" then
- print("Terminating program")
- else
- print("Unable to decipher input, ending program, please try again")
- end
- sleep(0.2)
- channel=os.getComputerID()
- modem.transmit(channel, 128, "Minion "..os.getComputerLabel().." has finished refueling, Sir!")
Advertisement
Add Comment
Please, Sign In to add comment