


This one could probably say something, but how do I write it to a file like you did just now. It returns so much at once.

Bump: found this under getStaclnSlot(1)
I got a blood orb in the altar so this seem to work.
Posted 17 January 2016 - 01:12 AM




Posted 17 January 2016 - 01:16 AM
drive.getStackInSlot(1) --# IT actually occurs to me, this probably gives us the exact table that allStacks does, but only the [1] table.
and
drive.getAllStacks()[1].listMethods("properties")
And maybe
drive.getInventoryName()
Edited by Dragon53535, 17 January 2016 - 01:17 AM.
Posted 17 January 2016 - 01:22 AM
while true do tbl = drive.getStackInSlot(1) message = tbl.id print(message) sleep(0.2) end


Edited by fanzypantzy, 17 January 2016 - 01:24 AM.
Posted 17 January 2016 - 01:26 AM
local item = drive.getStackInSlot(1) if type(item) ~= "table" then --#HA! I remembered the " 's print(item.id) print(item.qty) --#The amount inside. end
Edited by Dragon53535, 17 January 2016 - 01:27 AM.
Posted 17 January 2016 - 01:33 AM
Posted 17 January 2016 - 01:34 AM
st,er = pcall(turtle.getStackInSlot,value) if er then -- Yay, no broken program. else val = turtle.getStackInSlot(value) end
Posted 17 January 2016 - 01:37 AM
Mayushii, on 17 January 2016 - 01:34 AM, said:
st,er = pcall(turtle.getStackInSlot,value) if er then -- Yay, no broken program. else val = turtle.getStackInSlot(value) end
local noError,returnVal = pcall(drive.getStackInSlot,1) if noError then --#There was no error, returnVal is now your table, in which it's good. end
Posted 17 January 2016 - 01:46 AM
Posted 17 January 2016 - 01:48 AM
0 members, 1 guests, 0 anonymous users