SHOW:
|
|
- or go back to the newest paste.
| 1 | rednet.open("right")
| |
| 2 | while true do | |
| 3 | event, id, text = os.pullEvent() | |
| 4 | if event == "rednet_message" then | |
| 5 | print(text) | |
| 6 | - | end |
| 6 | + | end |
| 7 | if text=="1" then | |
| 8 | turtle.drop(1) | |
| 9 | elseif text=="2" then | |
| 10 | turtle.drop(2) | |
| 11 | elseif text=="3" then | |
| 12 | turtle.drop(3) | |
| 13 | elseif text=="4" then | |
| 14 | turtle.drop(4) | |
| 15 | elseif text=="5" then | |
| 16 | turtle.drop(5) | |
| 17 | elseif text=="6" then | |
| 18 | turtle.drop(6) | |
| 19 | elseif text=="7" then | |
| 20 | turtle.drop(7) | |
| 21 | elseif text=="8" then | |
| 22 | turtle.drop(8) | |
| 23 | elseif text=="9" then | |
| 24 | turtle.drop(9) | |
| 25 | elseif text=="10" then | |
| 26 | turtle.drop(10) | |
| 27 | elseif text=="11" then | |
| 28 | turtle.drop(11) | |
| 29 | elseif text=="12" then | |
| 30 | turtle.drop(12) | |
| 31 | elseif text=="13" then | |
| 32 | turtle.drop(13) | |
| 33 | elseif text=="14" then | |
| 34 | turtle.drop(14) | |
| 35 | elseif text=="15" then | |
| 36 | turtle.drop(15) | |
| 37 | elseif text=="16" then | |
| 38 | turtle.drop(16) | |
| 39 | elseif text=="17" then | |
| 40 | turtle.drop(17) | |
| 41 | elseif text=="18" then | |
| 42 | turtle.drop(18) | |
| 43 | elseif text=="19" then | |
| 44 | turtle.drop(19) | |
| 45 | elseif text=="20" then | |
| 46 | turtle.drop(20) | |
| 47 | else | |
| 48 | print("coucou")
| |
| 49 | end |