Jump to content




Redstone Pulse

computer lua

  • You cannot reply to this topic
2 replies to this topic

#1 J-Nutz

  • Members
  • 14 posts

Posted 01 July 2014 - 05: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. :)

#2 AssossaGPB

  • Members
  • 126 posts
  • LocationFlorida, USA

Posted 01 July 2014 - 06: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.

#3 J-Nutz

  • Members
  • 14 posts

Posted 01 July 2014 - 06: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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users