Jump to content




redstone loops clock output



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

#1 Karaktar

  • Members
  • 37 posts

Posted 23 August 2017 - 12:56 AM

hi need help cant figure this crap out i use to understand these damn things but not anymore apparently all im trying to do is write 2 programs one that out puts a pulse on one side so many times and one that outputs a pulse on a diff side so many times simple right except i suck or they suck or well something sucks and it aint cool

#2 Karaktar

  • Members
  • 37 posts

Posted 23 August 2017 - 03:45 AM

so this is what i have been trying

for i = 1,10 do
redstone.setoutput("left" "true")
sleep(1)
redstone.setoutput("left" "false")
sleep(1)
end

#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 23 August 2017 - 07:59 AM

Seems you're missing a comma after your "left"s.

#4 The Crazy Phoenix

  • Members
  • 136 posts
  • LocationProbably within 2 metres of my laptop.

Posted 23 August 2017 - 03:32 PM

It should be ("left", true) and ("left", false). Missing commas and true/false is a boolean, not a string.

Edited by The Crazy Phoenix, 23 August 2017 - 03:32 PM.


#5 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 23 August 2017 - 03:38 PM

Also, redstone.setoutput is not a valid redstone command - redstone.setOutput is. You need to capitalize the 'o's in output.

#6 Karaktar

  • Members
  • 37 posts

Posted 23 August 2017 - 11:49 PM

great thanks guys got it working now would it be hard to have the program remember what number its on after a reboot since the damn things reboot after every move

#7 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 23 August 2017 - 11:59 PM

What do you mean by "move"? Are you trying to make an elevator out of Redstone In Motion or somesuch?

#8 The Crazy Phoenix

  • Members
  • 136 posts
  • LocationProbably within 2 metres of my laptop.

Posted 24 August 2017 - 11:34 AM

Either use some form of world sensor or store the current index in a file.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users