I've created a similar system using
buildcraft &
logistics pipes
I'm having trouble with the damm code, logistics pipes uses a request pipe, the request pipe allows me to request a disc from a chest to load into the disk drive
now im trying to automate the play/ eject process using a buildcraft gate (the gate detects when a item is moving through a pipe & when it is not, & provides a redstone singal)
in my case the redstone is constantly on until a item moves through it in which case it turns off.
this is what i have so far:
function os.pullEvent()
local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
if event == "terminate" then
end
return event, p1, p2, p3, p4, p5
end
print("Wooby6 automated jukebox:")
--loop here
if rs.getInput("right") == false and disk.isPresent("top") then
disk.eject("top")
sleep(1)
disk.playAudio("top")
else
sleep(2)
disk.playAudio("top")
end
-- loop end here
but i cant get a loop to keep looking for the rs.getInput("right") == false