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

ME peripheral problems

Started by 5mCjLRgW2d473dyJtiiTnOr3wu, 18 November 2016 - 11:28 AM
5mCjLRgW2d473dyJtiiTnOr3wu #1
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 on 19 November 2016 - 07:06 PM
The_Cat #2
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 on 19 November 2016 - 10:03 AM
KingofGamesYami #3
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.
5mCjLRgW2d473dyJtiiTnOr3wu #4
Posted 19 November 2016 - 04:10 PM
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.

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 on 19 November 2016 - 03:14 PM