Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitor = peripheral.wrap("right")
- local myVar = getdeck()
- term.write("Welcome to Turbo Lift")
- print()
- write("Enter Deck Number: ")
- return read()
- local commandBlock = peripheral.wrap("bottom")
- while true do
- if getdeck() == "break" then return
- if myVar == "1" then
- commandBlock.setCommand("tp @p[r=2] -211 106 405")
- commandBlock.runCommand()
- elseif myVar == "2" then
- commandBlock.setCommand("tp @p[r=2] -211 113 405")
- commandBlock.runCommand()
- elseif getdeck() == "3" then
- commandBlock.setCommand("tp @p[r=2] -211 120 405")
- commandBlock.runCommand()
- else
- term.clear()
- term.setCursorPos(1,1)
- Print("Invalid Destination Entered")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment