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

Redstone Pulse

Started by J-Nutz, 01 July 2014 - 04:55 PM
J-Nutz #1
Posted 01 July 2014 - 06:55 PM
Hello Guys!

I'm playing a modded Minecraft map and need some help programming a computer to turn on a redstone signal and then turn it off and on again a infinite amount of times.

Any Help is appreciated! Thanks. :)/>
AssossaGPB #2
Posted 01 July 2014 - 07:14 PM

side = "back"

while true do
  rs.setOutput(side, true)
  sleep(0.5)
  rs.setOutput(side, false)
  sleep(0.5)
end

Hope that helps, I recommend you go read the wiki and learn lua if you don't already know it.
J-Nutz #3
Posted 01 July 2014 - 07:29 PM
Thank you very much!

I half way know lua, still in the learning process. :)/>

My program that I wrote looked very similar to yours, I didn't have the second sleep that you have.

Thanks again And I will let you know if I have any issues with it.