Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {
- ...
- }
- if not #args == 3 then
- print('Usage: bomb <x> <y> <z>')
- end
- local x, y, z = tonumber(args[1]), tonumber(args[2]), tonumber(args[3])
- for i = 1, x do
- turtle.forward()
- end
- for i = 1, y do
- turtle.up()
- end
- if z < 0 then
- turtle.turnLeft()
- else
- turtle.turnRight()
- end
- for i = 1, z do
- turtle.forward()
- end
- rs.setOutput('bottom', true)
- turtle.select(1)
- turtle.placeDown()
- turtle.turnLeft()
- turtle.turnLeft()
- for i = 1, z do
- turtle.forward()
- end
- if z < 0 then
- turtle.turnRight()
- else
- turtle.turnLeft()
- end
- for i = 1, y do
- turtle.down()
- end
- for i = 1, x do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.turnRight()
Advertisement
Add Comment
Please, Sign In to add comment