Jump to content




Help me with a redstone problem


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

#1 CardingiSFun

  • Members
  • 42 posts

Posted 18 October 2012 - 10:42 PM

So im using bundled cable and i was wondering how do i send a redstone pulse out of a certain color?

Please help me thanks.

#2 Noodle

  • Members
  • 989 posts
  • LocationSometime.

Posted 18 October 2012 - 10:44 PM

rs.setBundledOutput("SIDE", colors.COLOR)

#3 CardingiSFun

  • Members
  • 42 posts

Posted 18 October 2012 - 10:46 PM

then what would i do? cause im using multiple colors and i want to do multiple outputs from the back cable only

#4 CardingiSFun

  • Members
  • 42 posts

Posted 18 October 2012 - 10:52 PM

Nvm u were right

#5 CardingiSFun

  • Members
  • 42 posts

Posted 18 October 2012 - 11:52 PM

http://i.imgur.com/7ZMzd.png
i get this error and on that line
the code is rs.setBounledOutput("back", colors.white)

#6 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 19 October 2012 - 12:01 AM

View PostCardingiSFun, on 18 October 2012 - 11:52 PM, said:

http://i.imgur.com/7ZMzd.png
i get this error and on that line
the code is rs.setBounledOutput("back", colors.white)
An "attempt to call nil" means that you tried to call a function that doesn't exist.
Most of the time that is a tell-tale sign for a typo.

In your case you tried to call rs.setBounledOutput, when really it should be rs.setBundledOutput.

#7 CardingiSFun

  • Members
  • 42 posts

Posted 19 October 2012 - 12:32 AM

So this is the updated code: rs.setBundledOutput("back", colors.orange)
but i want to make it pulse once just turn on then turn off how would i do that?

#8 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 19 October 2012 - 01:22 AM

View PostCardingiSFun, on 19 October 2012 - 12:32 AM, said:

So this is the updated code: rs.setBundledOutput("back", colors.orange)
but i want to make it pulse once just turn on then turn off how would i do that?

For example:
rs.setBundledOutput("back", colors.orange)  -- set output to orange
sleep(0.5)  -- sleep for half a second
rs.setBundledOutput("back", 0)  -- turn off the output
Mind you though this doesn't preserve the value the output was in before the pulse. It will just turn off the output completely after the pulse.
If you want to preserve the output from what it was before the pulse, then remember to save it to a variable beforehand, or better yet, make use of colors.combine() and colors.subtract().
Also see "help redstone" and "help redpower" for more info.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users