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

No digging down!?

Question

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.

Link to post
Share on other sites

2 answers to this question

Recommended Posts

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.