Jump to content




Magnet Turtle Tutorial (OpenBlocks)

turtle peripheral help

  • You cannot reply to this topic
1 reply to this topic

#1 DavEdward

  • Members
  • 17 posts

Posted 24 April 2014 - 06:54 PM

I've been looking at the 'magnet turtle' which is created by having OpenBlocks & OpenPeripherials installed.
It looks awesome and there's only one youtube video of it in action with no explaination how it works.

You can use the 'docs' command for a GetMethods on the peripheral on the turtle, but there's otherwise no instructions how to use it.

Could someone possibly put together a basic tutorial and/or simple sample scripts on how to make use of the magnet trutle?
I can see it having many uses as it's like giving a turtle a gravity gun. It can lift and move blocks and entities at a range!

Thanks in advance.

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 25 April 2014 - 02:34 AM

using the docs and the getMethods, you'll find that there's 8 methods, all of which are pretty self-explanatory...

activate — turns on the magnet
deactivate — turns off the magnet
toggle — grab/release entity under magnet
setTarget — args: x, y, z — sets the target for the magnet
getPosition — gets the Turtle's position
isAboveEntity — is the magnet above a grab-able entity
isGrabbing — does the magnet have hold of anything
distance — the distance to the magnet





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users