Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --test commande piston via computercraft
- local sSide = "right"
- local password = "start"
- local opentime = 10
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("taper commande start :")
- local input = read("*")
- if input == password then
- term.clear()
- term.setCursorPos(1,1)
- print("démarrage")
- redstone.setBundledOutput(sSide, colors.black)
- sleep(opentime)
- redstone.setBundledOutput(sSide, 0)
- else
- print("commande erronée")
- sleep(2)
- end
- end
Add Comment
Please, Sign In to add comment