Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap("right")
- function listen()
- local event,player, message = os.pullEvent("chat")
- if player == "hdt80bro" then
- if message == "forward" then
- p = peripheral.wrap("right")
- p.say("Going forward")
- rednet.broadcast("TS Forward")
- elseif message == "back" then
- p = peripheral.wrap("right")
- p.say("Going back")
- rednet.broadcast("TS Backward")
- elseif message == "left" then
- p = peripheral.wrap("right")
- p.say("Turning left")
- rednet.broadcast("TS TurnLeft")
- elseif message == "right" then
- p = peripheral.wrap("right")
- p.say("Turning right")
- rednet.broadcast("TS TurnRight")
- elseif message == "place" then
- p = peripheral.wrap("right")
- p.say("Placed a block")
- rednet.broadcast("TS PlaceBlock")
- elseif message == "attack" then
- p = peripheral.wrap("right")
- p.say("ATTACK!!!!")
- rednet.broadcast("TS Attack")
- elseif message == "dig" then
- p.say("Digging")
- rednet.broadcast("TS Dig")
- elseif message == "up" then
- p.say("Going up")
- rednet.broadcast("TS Up")
- elseif message == "down" then
- p.say("Goind down")
- rednet.broadcast("TS Down")
- end
- end
- end
- listen()
- shell.run("voiceControl")
Advertisement
Add Comment
Please, Sign In to add comment