Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- me = peripheral.wrap("left")
- myList = me.listAll()
- local swapa
- --print(tostring(myList[2]))
- -- This work
- for i in pairs(myList) do
- for k, l in pairs(myList[i]) do
- if k == "amount" then
- swapa = tostring(l)
- end
- if l == "Redstone" then
- print(l..": "..swapa)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement