This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rednet.open("back") | |
write("ID:") | |
id = tonumber(read()) | |
write("Command:") | |
command = read() | |
rednet.send(id, command) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local speaker = peripheral.find('speaker') | |
os.sleep(0.75) | |
speaker.playNote('snare', 3.0, 18) | |
os.sleep(0.125) | |
speaker.playNote('snare', 3.0, 18) | |
os.sleep(0.25) | |
speaker.playNote('snare', 3.0, 18) | |
os.sleep(0.125) | |
speaker.playNote('snare', 3.0, 18) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rednet.open("back") | |
while true do | |
local id, message = rednet.receive() | |
if message == "play" then | |
shell.run("rick.lua") | |
end | |
print(("Computer %d sent message %s"):format(id, message)) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 14-21 | |
rednet.send(14,"play") | |
rednet.send(15,"play") | |
rednet.send(16,"play") | |
rednet.send(17,"play") | |
rednet.send(18,"play") | |
rednet.send(19,"play") | |
rednet.send(20,"play") | |
rednet.send(21,"play") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blocksMovedUp = 0 | |
while true do | |
--refuel | |
if turtle.getFuelLevel() < 1000 then | |
for i = 1, 16 do | |
if turtle.getItemDetail(i).name == "minecraft:coal" then | |
turtle.select(i) | |
turtle.refuel() | |
print("refueling") | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rednet.open("right") | |
print(os.getComputerID()) | |
while true do | |
local id, message = rednet.receive() | |
print(message) | |
if message == "excavate" then | |
shell.run("bg","excavate","5") | |
end | |
if message == "stopExcavate" then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rednet.open("left") | |
while true do | |
local id, message = rednet.receive() | |
print(("Computer %d sent message %s"):format(id, message)) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--ssh server | |
rednet.open("left") | |
while true do | |
local id, message = rednet.receive() | |
shell.run(message) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--ssh server | |
rednet.open("left") | |
while true do | |
local id, message = rednet.receive() | |
print(message) | |
shell.run(message) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0eNqcvd2uNMlxZfkudf11I/zfXa8yKAzIbk4PAYlFFElgBEHvPnlKOpkpVS6zveNCBZFSreNhYeHpvu3v33764z//409//fXPf/n7T//0bz/9+X/98pe//fRP/9e//fS3P/+fv/zhn7/+u7//61//9NM//fTnv//pX3768dNf/vAvX//pb7/88x9+/R9//cNf/vTPP/37j5/+/Jf//af/76d/Kv/+84+f/vSXv//573/+039gfvsP//p//+Uf//LHP/36+H/4CPjx019/+dvj3/nlL19/78HZV/mf48dP//rTP7XR/uf493//8TtSVUk9IzWVtDJSF0nlykhDJbWMNFXSzEhLJZ2MtEVSrRnpqKSRkcqlonaKUr28pV5eVDdvqZsX1c9b6udFdfSeOnpRPb2nnl5UV++pqxfV13vq60V19pE6e1G9faTeXlVvH6m3V9XbZ76nq94+U2+vqrfP1Nur6u0r9faqevtKvb2q3r5Sb6+qt6/U26vq7Tv19qp6+069vanevlNvb6q3n9Tbm+rtJz/CqN5+Um9vorefK/X2NlRU6u3t5e1/+F//6x//8o9//sPff/n1E2p+gz5ilorZIUb08pMf9NpRUamN+iU+XAlt1IuKCW3URe8+NbVRbyoqt5Hq3TXdNbvq3TXdNbu4l5+W7pp9qah01+yql7d01+yql/d01xyXikp3zVFUVLprDtXbR371U719pN4+VG8fqbcP1dtH6u1D9faZevtQvX2m3j5Ub5+ptw/V21fq7VP19pV6+1S9faXePlVv36m3T9Xbd650qN6+U2+fqrfv1Nun6u0n9fapevtJvX2q3n5Sb5+it5crF/XWJbNSf19FZqUOv6rKyk98q8ms1OVXl1m5vDdkVur0a6qsXOJby9eMJ6DevP4ff/zb3//w27/+STP+5vz741/405//z//7x1/+8euXoL3Xj7nbz5/YRzs27+cNZX6URi8Vs0OMeIjfX7JngKkqpoaYpmJ6iOkqJjbxUDGxicUr6a6xiZf |
OlderNewer