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 on 19 November 2016 - 07:06 PM
121 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 on 19 November 2016 - 10:03 AM
3057 posts
Location
United 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 posts
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