I'm trying to get a new sorting system up and running that uses turtles to pull from barrels and place in 1 of 2 ender chests. One goes to my ender pouch, one goes back into the system.
I got all the code working except for one little piece. I cannot get the local arg to be sent via Rednet message. Any ideas?
Code on call Computer
local args = { ... }
amount = tonumber(args)
rednet.send(1, "amount")
Receiving Turtle
rednet.open("right")
while true do
id, msg = rednet.receive()
amount = tonumber(msg)
turtle.suckUp()
turtle.drop(amount)
turtle.dropDown()
end
I'm sure it's just a syntax error on my part but I cannot figure it out.