Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- function DropAll()
- print("Drop all")
- for i=1, 16 do
- turtle.dropDown()
- turtle.select(i)
- end
- end
- function PickUp()
- DropAll()
- print("Picking up...")
- turtle.select(1)
- turtle.dig()
- end
- function PlaceDown()
- print("Placing down...")
- turtle.select(1)
- turtle.place()
- end
- if #args > 1 or #args < 1 then
- print("Invalid number of arguments.")
- else
- action = args[1]
- if action == "Pick" then
- PickUp()
- elseif action == "Place" then
- PlaceDown()
- elseif action == "Drop" then
- DropAll()
- else
- print("No valid action: Pick - Place - Drop")
- end
- end
Advertisement
RAW Paste Data
Copied
Advertisement