This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Kbryce's profile picture

magnet turtle help!

Started by Kbryce, 06 August 2014 - 05:33 AM
Kbryce #1
Posted 06 August 2014 - 07:33 AM
I have been searching and searching, but I can't find a single documentation on what the api is for the magnet turtle… I know how to get the methods but I can't use them. like one of the methods is just called activate, but i have tried EVERYTHING! turtle.activate(), activate(), activate, etc… Please someone help me, I would really like to know how to use the magnet turtles!
flaghacker #2
Posted 06 August 2014 - 10:37 PM
Can you tell us what mod is adding the magnet turtle?

It's probably peripheral based, use this code:

local magnet = peripheral.wrap(sSide)
magnet.activate()
Where sSide is the side the magnet is physically appearing on the turtle.

For more information about peripherals, check out the wiki page about peripheral.wrap(), or search in Google "computercraft peripheral tutorial".
Cranium #3
Posted 06 August 2014 - 11:59 PM
I'm just going to move this to the Ask A Pro section for ya.

EDIT: also, I think he's right. I believe you have to wrap the peripheral directly.
Edited on 06 August 2014 - 10:01 PM
sEi #4
Posted 07 August 2014 - 12:12 AM
They actually come from the "OpenBlock" mod, they act the same as the crane item in OpenBlock, which is used to lift blocks and entity.
ref

And i found this just around the corner too:

Forumpost #1

Hope this helps a bit!

/sEi
hilburn #5
Posted 07 August 2014 - 12:16 AM
Magnet turtle is OpenBlocks IIRC and yes you have to wrap it.