Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wired = peripheral.wrap("top")
- monitor = peripheral.wrap("monitor_1")
- monitor.setTextScale(0.5)
- Jars = {}
- Aspects = {}
- Aspects["Aer"] = 1
- Aspects["Alienis"] = 0
- Aspects["Aqua"] = 0
- Aspects["Arbor"] = 0
- Aspects["Auram"] = 0
- Aspects["Bestia"] = 0
- Aspects["Cognitio"] = 0
- Aspects["Corpus"] = 0
- Aspects["Desidia"] = 0
- Aspects["Exanimis"] = 0
- Aspects["Fabrico"] = 0
- Aspects["Fames"] = 0
- Aspects["Gelum"] = 0
- Aspects["Granum"] = 0
- Aspects["Gula"] = 0
- Aspects["Herba"] = 0
- Aspects["Humanus"] = 0
- Aspects["Ignis"] = 0
- Aspects["Infernus"] = 0
- Aspects["Instrumentum"] = 0
- Aspects["Invidia"] = 0
- Aspects["Ira"] = 0
- Aspects["Iter"] = 0
- Aspects["Limus"] = 0
- Aspects["Lucrum"] = 0
- Aspects["Lux"] = 0
- Aspects["Luxuria"] = 0
- Aspects["Machina"] = 0
- Aspects["Messis"] = 0
- Aspects["Metallum"] = 0
- Aspects["Meto"] = 0
- Aspects["Mortuus"] = 0
- Aspects["Motus"] = 0
- Aspects["Ordo"] = 0
- Aspects["Pannus"] = 0
- Aspects["Perditio"] = 0
- Aspects["Perfodio"] = 0
- Aspects["Permutatio"] = 0
- Aspects["Potentia"] = 0
- Aspects["Praecantatio"] = 0
- Aspects["Sano"] = 0
- Aspects["Saxum"] = 0
- Aspects["Sensus"] = 0
- Aspects["Spiritus"] = 0
- Aspects["Telum"] = 0
- Aspects["Tempestas"] = 0
- Aspects["Tempus"] = 0
- Aspects["Tenebrae"] = 0
- Aspects["Terra"] = 0
- Aspects["Tutamen"] = 0
- Aspects["Vacuos"] = 0
- Aspects["Venenum"] = 0
- Aspects["Victus"] = 0
- Aspects["Vinculum"] = 0
- Aspects["Vitrum"] = 0
- Aspects["Vitreus"] = 0
- Aspects["Volatus"] = 0
- function getCons()
- return wired.getNamesRemote()
- end
- function newLine()
- local _, cY = monitor.getCursorPos()
- monitor.setCursorPos(1, cY + 1)
- end
- function searchAspects()
- cons = getCons()
- for k, v in pairs(cons) do
- local jar = peripheral.wrap(v)
- if jar then
- local asp = peripheral.call(v, "getAspects")[1]
- if asp then
- local aspect = asp["name"]
- local count = asp["quantity"]
- if aspect and count then
- Aspects[aspect] = {count}
- end
- end
- end
- end
- end
- function getCount(name)
- if Aspects[name] then
- return Aspects[name]
- else
- return false
- end
- end
- function printAspects()
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.write("+--------------+")
- newLine()
- for k, v in pairs(Aspects) do
- monitor.write(tostring(k)..": "..Aspects[k])
- newLine()
- end
- end
- searchAspects()
- printAspects()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement