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
Quote
swing(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. Returns true if successful (may take time depending on block being interacted with - e.g.. Obsidian takes time to mine). Returns false 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 the component.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.
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.
I wanted to dig (or "swing" ) the block below the robot, which, (partially) according to the wiki, would be
but it dug the block in front of the robot. Partially because it says
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:
If there's any other information which could be useful, just tell me.
Link to post
Share on other sites