Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --os.loadAPI("button")
- local essentia = {}
- local jars = peripheral.getNames()
- --local m = peripheral.wrap("right")
- local ess = {}
- local a = peripheral.find("tt_aspectanalyser")
- local c = peripheral.wrap("back")
- function findEss()
- local tempess = {}
- for i = 1,54 do
- if c.getStackInSlot(i) then
- c.puchItem("WEST", i, 1, 1)
- tempess = a.getAspects()
- --print(tempess[1])
- if tempess[2] then
- if tempess[2] == "auram" then
- ess[tempess[1]] = i
- else
- ess[tempess[2]] = i
- end
- else
- ess[tempess[1]] = i
- end
- c.pullItem("WEST", 1, 1, i)
- end
- end
- print(ess["terra"])
- print(ess["fames"])
- print(ess["ignis"])
- end
- function scanEssentia()
- for i, j in ipairs(jars) do
- if peripheral.getType(j) == "tt_aspectContainer"
- asp = peripheral.call(j, "getAspect)
- countasp = peripheral.call(j, "getAspectCount", ****************)
- if countasp > 0 then
- essentia[asp] = math.floor(countasp)
- print(asp[1]..":"..countasp)
- end
- end
- end
- end
- end
- --findEss()
- scanEssentia()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement