Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = { ... }
- if #args ~= 1 then
- print( "Usage: fwd <param1>" )
- print( "-------------------" )
- print( "Moves forward <param1> blocks." )
- else
- times = tonumber(args[1])
- if turtle.getFuelLevel() >= times then
- print( "Not enough fuel.")
- else
- for i=1,times do
- turtle.forward()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement