This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
toric55's profile picture

help with css sensors inventory manager?

Started by toric55, 20 January 2014 - 08:45 PM
toric55 #1
Posted 20 January 2014 - 09:45 PM
hi, I'm new here, and although i have a grasp on the logic am much of the syntax of lua, i have done very little actual utility programing. so i decided to try to improve my MFR tree farm. (tekkit) what i want to do is detect when an inventory (specifically, a planter,) has more than one or twi stacks in it, and if it does, send a redstone signal. the problem is, i can't seem to find any examples for using css sensors. the ret of the code could be a simple loop like this:


while inventoryStacks <2 do
    restone.setOutput(back,true)
    sleep(1)
    redstone.setOutput(back,false)
end
[/CODE

am i missing anything? and is there any way to have this continue after i relog on the world? (like some sort of redstone contraption to startup the computer if this is the startup program?)
CometWolf #2
Posted 21 January 2014 - 12:14 AM
Css? You mean ocs?