SHOW:
|
|
- or go back to the newest paste.
1 | - | print("=======================================") |
1 | + | print("Turtle Label:", os.getComputerLabel()) |
2 | - | print("Turtle Label: ", os.getComputerLabel()) |
2 | + | print("Fuel Remaining:", turtle.getFuelLevel()) |
3 | - | print("Fuel Remaining:", turtle.getFuelLevel()) |
3 | + | |
4 | os.sleep(10) | |
5 | local item = turtle.getItemDetail(14) | |
6 | if item then | |
7 | if (item.name == "computercraft:wireless_modem_normal") then | |
8 | shell.run("equip 14 right") | |
9 | end | |
10 | end | |
11 | ||
12 | rednet.open("right") | |
13 | print("Waiting for command.") | |
14 | senderID, message, protocol = rednet.receive("chop") | |
15 | ||
16 | shell.run(message) |