Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
Debugger

Redstone Bundle clearity

Question

Posted

The wiki and the example has me confused. I would like to use the setBundle like the setOutput if at all possible., The wiki makes it look like it can, until the example.

http://ocdoc.cil.li/component:redstone

setBundledOutput(side: number, color: number, value: number): number

 So I have

setBundledOutput(sides.west, color.green, value.200)

I'm not sure how to add the strength of the redstone signal.

Any help would be grateful. 

Thank you kindly.

 

 

4 answers to this question

Recommended Posts

  • 0
Posted

The table containing bundled Colour values is colors. If using the lua prompt you can simply do conponent.redstone.setBundledOutput(sides.west, colors.green, 200) but if using a program you must require it.

	local colors = require("colors")
	local sides = require("sides")
	local rs = require("component").redstone
	rs.setBundledOutputsides.west, colors.green, 200)
	

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.