The code I use is:
Code:
m = peripheral.wrap("right")
data = m.get(front)
function power()
check()
sleep(.1)
end
function check()
if data["Full Energy"] == true then
--change to "No Energy" for the other turtle
turtle.dig() else
sleep(2)
end
data = m.get("front")
end
while true do
power()
end
Now please realise that I am useless at Lua (this is my second set of code) and so probably has a few (many) mistakes in it or can be done simpler. This is the code from the turtle that gets the "Full Energy" redstone cell, the one that gets the "No Energy" redstone cell is a little different and I have thrown that bit into the code.
The turtles I have used are Gate Reader Engineering Turtles. The require a gate reader to make. The problem is that you have to get both the programs running when you log in or if they are un chunk loaded. I think I would like to use a seperate gate reader and put a wireless modem on the turtles to start them up from my base but do not know the code to do that yet.
In the picture it goes.... redstone cell > turtle > transposer > ender chest > filter (reads the cells if they are empty or full) > deployer. The timer is on a 2 sec setup., not that it matters.
Its not the most compact, I think you could fit the timer in between the tubes and make them redstone tubes so that you could remove the wiring.