I am trying to get a tesseract out of my ME system …
First, I print out all items which are inside the ME system.
The following code gives me the following result:
Code:
function GetItemsME()
local ME = peripheral.wrap("back")
local items = ME.getAvailableItems()
for k, v in pairs(items) do
for a, b in pairs(v) do
print("a: "..a.." b: "..tostring(B)/>.." ")
if a == "fingerprint" then
for c,d in pairs(B)/> do
print("c: "..c.. " d: "..d.." ")
end
end
end
end
end
Result:
a: is_fluid b: false
a: size b: 1
a: is_item b: true
a: is_craftable b: false
a: fingerprint b: table: 10d1dddb
c: id d: ThermalExpansion:Tesseract
c: dmg d: 0
c: nbt_hash d: 4e4dd2b38b5a3599de9179dfa08246a6
now: I am trying to pull out the item to a chest.
this is the code:
function PutToChest()
local ME = peripheral.wrap("back")
fingerprint = {id = "ThermalExpansion:Tesseract", dmg = 0}
ME.exportItem(fingerprint,"down",1)
end
but then the errormessage appears:
test:32: Can't find item fringerprint
ThermalExpansion:Tesseract:0:null
if I do the same with cobblestone, everything is working fine.
I figured out, that it does not work with items, with have nbt_hash.
how can I change that? and what is nbt_hash?
also: is there a possibility to get more information about the items?
Thanks a lot!