Jump to content




ME peripheral problems


3 replies to this topic

#1 5mCjLRgW2d473dyJtiiTnOr3wu

  • Members
  • 4 posts

Posted 18 November 2016 - 12:28 PM

I'm grabbing a list of all items in the system, and I want to get the display names. It'd seem that p.getItemDetail does that, but I can't get it to return anything but a empty table.

The doc function only says it returns an "Object", not what it contains.
p.getItemDetail({id="minecraft:stone",dmg=0})

Edited by leon26leon26, 19 November 2016 - 08:06 PM.


#2 The_Cat

  • Members
  • 119 posts

Posted 19 November 2016 - 11:02 AM

Look at the example on the ccwiki: http://computercraft...e.getItemDetail - But it can only get in info of blocks in the turtles inventory. (I'm not sure the ME peripheral does so..)

Edited by The_Cat, 19 November 2016 - 11:03 AM.


#3 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 19 November 2016 - 01:34 PM

The page The_Cat linked is completely irrelevent to your problem. Instead, you should follow this tutorial to get your code working.

#4 5mCjLRgW2d473dyJtiiTnOr3wu

  • Members
  • 4 posts

Posted 19 November 2016 - 04:10 PM

View PostThe_Cat, on 19 November 2016 - 11:02 AM, said:

Look at the example on the ccwiki: http://computercraft...e.getItemDetail - But it can only get in info of blocks in the turtles inventory. (I'm not sure the ME peripheral does so..)
That's the turtle API, I'm trying to access a ME Network.

View PostKingofGamesYami, on 19 November 2016 - 01:34 PM, said:

The page The_Cat linked is completely irrelevent to your problem. Instead, you should follow this tutorial to get your code working.
I know how to get the peripheral's functions, but the ingame documentation doesn't tell me what to do.

Edited by leon26leon26, 19 November 2016 - 04:14 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users