Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- rednet.host("xivs","ban")
- function dropAll(f)
- for i = 1,16 do
- turtle.select(i)
- if f == 1 then turtle.drop() end
- if f == 2 then turtle.dropUp() end
- if f == 3 then turtle.dropDown() end
- end
- turtle.select(1)
- end
- function stealAll(f)
- for i = 1,16 do
- turtle.select(i)
- if f == 1 then turtle.suck() end
- if f == 2 then turtle.suckUp() end
- if f == 3 then turtle.suckDown() end
- end
- turtle.select(1)
- end
- while true do
- id,msg = rednet.receive("xivs")
- if msg == "f" then turtle.forward() end
- if msg == "b" then turtle.back() end
- if msg == "u" then turtle.up() end
- if msg == "d" then turtle.down() end
- if msg == "tl" then turtle.turnLeft() end
- if msg == "tr" then turtle.turnRight() end
- if msg == "drop" then dropAll(1) end
- if msg == "dropd" then dropAll(3) end
- if msg == "dropu" then dropAll(2) end
- if msg == "steal" then stealAll(1) end
- if msg == "steald" then stealAll(3) end
- if msg == "stealu" then stealAll(2) end
- if msg == "dig" then turtle.dig() end
- if msg == "digd" then turtle.digDown() end
- if msg == "digu" then turtle.digUp() end
- if msg == "exit" then break end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement