Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- print("Computercraft Turtle Client")
- print("---------------------------")
- print("I - Tunnel SLANTED DOWN")
- print("O - Tunnel FORWARD")
- print("P - Tunnel SLANTED UP")
- print("J - Dig DOWN")
- print("K - Dig FORWARD")
- print("L - Dig UP")
- print("B - Place DOWN")
- print("N - Place FORWARD")
- print("M - Place UP")
- print("Z - Attack DOWN")
- print("X - Attack FORWARD")
- print("C - Attack UP")
- while true do
- --Broadcasting
- local event, key = os.pullEvent("char")
- --Basic Movement
- if key == "w" then
- rednet.broadcast("forward")
- end
- if key == "a" then
- rednet.broadcast("left")
- end
- if key == "s" then
- rednet.broadcast("backward")
- end
- if key == "d" then
- rednet.broadcast("right")
- end
- if key == "q" then
- rednet.broadcast("up")
- end
- if key == "e" then
- rednet.broadcast("down")
- end
- --More Actions
- if key == "i" then
- rednet.broadcast("tunnelDown")
- end
- if key == "o" then
- rednet.broadcast("tunnelForward")
- end
- if key == "p" then
- rednet.broadcast("tunnelUp")
- end
- if key == "j" then
- rednet.broadcast("digDown")
- end
- if key == "k" then
- rednet.broadcast("digForward")
- end
- if key == "l" then
- rednet.broadcast("digUp")
- end
- if key == "b" then
- rednet.broadcast("placeDown")
- end
- if key == "n" then
- rednet.broadcast("placeForward")
- end
- if key == "m" then
- rednet.broadcast("placeUp")
- end
- if key == "z" then
- rednet.broadcast("attackDown")
- end
- if key == "x" then
- rednet.broadcast("attackForward")
- end
- if key == "c" then
- rednet.broadcast("attackUp")
- end
- if key == "x" then
- return
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement