Jump to content




redstone API syntax help?


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

#1 YUGATUG

  • Members
  • 56 posts

Posted 14 March 2015 - 01:58 AM

I can't figure out how to get my mining turtle to pulse redstone. I've tried redstone.setOutput(left, true) and redstone.setAnalogOutput(left, 10) in the lua interperater, but both of them gave me syntax errors. I'm am trying to get my mining turtle to pulse a redstone signal of at least 5 to the left for 2 ticks. Does anyone know how to do this?

#2 Bomb Bloke

    Hobbyist Coder

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

Posted 14 March 2015 - 02:28 AM

redstone.setOutput("left", true)  -- Don't forget your quotes.
sleep(0.1)  -- Tenth of a second = 2 MineCraft ticks, or 1 redstone tick.
redstone.setOutput("left", false)


#3 YUGATUG

  • Members
  • 56 posts

Posted 14 March 2015 - 02:51 AM

Thanks!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users