Posted 21 December 2013 - 10:12 AM
So ive been trying to send a message from one turtle to another, but nothing I do seems to work. The turtle that recieves the message is working fine, it does its command after recieving the message,
but the turtle that sends it gets stuck. Im not very experienced with this so I might be missing some stupid mistake, but I can´t figure out what.
According to this : http://computercraft...ednet_%28API%29, the rednet.send command should be set up right. But I still get the "attempt to call nil" error..
I would very much appreciate your help!
(I don´t know how to be all fancy with the post, so a copy/paste is the best I can do)
——————————————————————————————————————
rednet = peripheral.wrap("right")
rednet.open(1)
–Removed a few functions here to keep the topic short, nothing that could ever mess with the rednet..
while true do
while redstone.getInput("back") do
Plant()
rednet.send(33,"plant") –This is the line that reads: "attempt to call nil"
Cut()
DropRefill()
end
sleep(.5)
end
——————————————————————————————————————
but the turtle that sends it gets stuck. Im not very experienced with this so I might be missing some stupid mistake, but I can´t figure out what.
According to this : http://computercraft...ednet_%28API%29, the rednet.send command should be set up right. But I still get the "attempt to call nil" error..
I would very much appreciate your help!
(I don´t know how to be all fancy with the post, so a copy/paste is the best I can do)
——————————————————————————————————————
rednet = peripheral.wrap("right")
rednet.open(1)
–Removed a few functions here to keep the topic short, nothing that could ever mess with the rednet..
while true do
while redstone.getInput("back") do
Plant()
rednet.send(33,"plant") –This is the line that reads: "attempt to call nil"
Cut()
DropRefill()
end
sleep(.5)
end
——————————————————————————————————————