Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local aspectalyser = peripheral.find("tt_aspectanalyzer")
- if aspectalyser ~= nil then
- print("Aspectalyser found!")
- end
- -- scanning item - should be a button that just scans the current thing in the aspectalyser, adds to definitions --
- function scanItem()
- if aspectalyser.hasItem() then
- local item = aspectalyser.getInventory()
- if aspectalyser.itemHasAspects() then
- local aspectList = aspectalyser.getAspectCount()
- for k,v in pairs(aspectList) do
- print(k, ": ",v)
- end
- end
- end
- end
- scanItem()
Advertisement
Add Comment
Please, Sign In to add comment