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