- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
[xieve]
-
Content Count
6 -
Joined
-
Last visited
Posts posted by [xieve]
-
-
I was just looking in the wrong place. Please delete.
-
Maybe you could do three outputs like this:
The one in the middle would fire both outputs at the same time, and you could still only fire one with the left and right ones.
-
Oh, I only searched the component API.
That works. Thank you!
-
Hmm. What about an adapter connected to your computer adjacent to a command block? That would need two extra blocks, but seems like the best way for what you want. In the new wiki, sadly, there's (yet?) no documentation on the CommandBlock component, but in the old one, to be precise, here, is a page about it, and the methods probably still work.
EDIT: They DO work, but this needs to be activated in the config file first. (enableCommandBlockDriver=true)
EDIT2: What do you mean by "it outputs the commands" though? -
I wanted to dig (or "swing" ) the block below the robot, which, (partially) according to the wiki, would be
local component = require("component") local sides = require("sides") component.robot.swing(sides.down)
but it dug the block in front of the robot. Partially because it says
Quoteswing(side:number):boolean[, string]
Lets the robot use the currently equipped item in the tool slot against the block or space directly in front of the robot. Returnstrue
if successful (may take time depending on block being interacted with - e.g.. Obsidian takes time to mine). Returnsfalse
if the operation fails with a description of why it failed.Now what I think is that the
side:number
was accidentally added there, and thecomponent.swing()
function actually has no input value, which would just result in ignoring any passed values. Though I'm not sure if I should do a feature request on this, maybe I just did something wrong.
Here go my specs:- Minecraft 1.10.2
- Forge 12.18.3.2185
- OpenComputers 1.6.2.7
If there's any other information which could be useful, just tell me.
Help with Computronics rack components
in Programming
Posted
I never dealt with computronics, but what you need to do to let a script take args is the following:
This would print the args, e.g.:
would print
So, as you can see, {...} is an array-style table.
And, btw, to access certain values do args[<number>] without <>.