1 posts
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!
656 posts
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".
3790 posts
Location
Lincoln, Nebraska
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
40 posts
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.
refAnd i found this just around the corner too:
Forumpost #1Hope this helps a bit!
/sEi
154 posts
Location
London, England
Posted 07 August 2014 - 12:16 AM
Magnet turtle is OpenBlocks IIRC and yes you have to wrap it.