Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Random Program (Shuffle) ]]--
- fuel = false
- --[[ Functions ]]--
- function fuel(true)
- if turtle.getFuelLevel() > 20 then
- fuel = true
- end
- function fuel(false)
- if turtle.getFuelLevel() < 5 then
- print("Can Not Continue Dancing, I Need More Fuel!")
- fuel = false
- end
- function shuffle(1)
- while fuel = true do
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward()
- end
- function shuffle(2)
- while true do
- turtle.turnRight()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.turnRight()
- end
- function shuffle(3)
- while fuel = true do
- turtle.up()
- turtle.down()
- end
- end
- end
- --[[ Code ]]--
- print("Dance Master")
- print("1.0")
- write("Dance: ")
- input = read()
- help = read()
- if help == "/help" then
- print("Try: 1 or 2 or 3")
- print("For Dancing")
- sleep(2)
- os.reboot()
- end
- if input == "1" then
- shuffle(1)
- elseif input == "2" then
- shuffle(2)
- elseif input == "3" then
- shuffle(3)
- else
- print("Unknown Dance Move!")
- print("Please Teach Me It?!?!")
- sleep(2)
- shell.run("shuffle")
- end
Advertisement
Add Comment
Please, Sign In to add comment