Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- #################################
- -- vars
- -- #################################
- args = { ... }
- motor = peripheral.wrap("bottom")
- -- #################################
- -- main
- -- #################################
- if args[1] ~= nil then
- if args[2] ~= nil and tonumber(args[2]) > 0 then
- if args[1] == "down" then
- motor.move(0, false, false)
- elseif args[1] == "up" then
- motor.move(1, false, false)
- end
- else
- print("no Cycles defined or <= 0 !")
- end
- else
- print("no dir defined !")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement