Posted 12 May 2013 - 05:41 AM
Hi i am new to computercraft and i need some help white the code.
I want to start the machine whit a wireless redstone signal and stop it when its off.
I don't want to have to restart the program every time i stop the signal but i have been unsuccessful in every attempt to make this happen.
The machine is mad of red power and computercraft components from the mudpack ultimate.
This is a scematic of the machine created whit world-edit
http://www.mediafire...6qa66ea96uu0i2m
I would appreciate any help and tips that can make this work.
I want to start the machine whit a wireless redstone signal and stop it when its off.
I don't want to have to restart the program every time i stop the signal but i have been unsuccessful in every attempt to make this happen.
The machine is mad of red power and computercraft components from the mudpack ultimate.
This is a scematic of the machine created whit world-edit
http://www.mediafire...6qa66ea96uu0i2m
y = 0
if redstone.getInput ("top",true) then
y = 0
end
if redstone.getInput ("top",false) then
y = x + 10
end
repeat
redstone.setOutput ("back",true)
sleep (0,8)
redstone.setOutput ("back",false)
redstone.setOutput ("right",true)
sleep (1.0)
redstone.setOutput ("right",false)
sleep (1.0)
redstone.setOutput ("bottom",true)
sleep (1.0)
redstone.setOutput ("bottom",false)
until y == 10
I would appreciate any help and tips that can make this work.