Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- -- EssenceControl v2.0.1
- -- Essence-Watchdog and Essence-Autocrafter
- --
- -- written in 07/2021 by Kay Michaelsen
- -- revised in 08/2021 by Kay Michaelsen
- --
- -- added in v2:
- -- complete new GUI
- -- variable number of displays
- -- auto-transfer of crafted items
- --
- mon = {}
- aMon = 0
- mon[1] = peripheral.wrap("monitor_4")
- mon[2] = peripheral.wrap("monitor_35")
- mon[3] = peripheral.wrap("top")
- aMon = 3
- refst1 = peripheral.wrap("left")
- refst2 = peripheral.wrap("refinedstorage_1")
- function MonInit(moni)
- if not (moni == nil) then
- moni.setTextScale(0.5)
- moni.setCursorPos(3,1)
- moni.setBackgroundColor(colors.black)
- moni.setTextColor(colors.white)
- moni.clear()
- moni.setBackgroundColor(colors.blue)
- moni.setTextColor(colors.orange)
- moni.write(" * Pup City Essence-Watchdog & AutoCrafter * ")
- end
- end
- mNr = 0
- for mNr = 1, aMon do
- MonInit(mon[mNr])
- end
- rs = refst1.getItems()
- rp = refst1.getPatterns()
- fUL = {}
- mENGE = {}
- mIN = {}
- pAT = {}
- pOnce = {}
- Anzahl = 0
- iName = {}
- iPos = {}
- pName = {}
- pItem = {}
- pAnz = {}
- AnzP = 0
- PatternName ="-"
- Zeile = 0
- Offset = 0
- fUL[0] = "Name der Essence"
- mENGE[0] = 0
- mIN[0] = 0
- pAT[0] = "Pattern"
- pOnce[0] = false
- pName[0] = "Name Pattern"
- pItem[0] = "Name Item"
- pAnz[0] = 0
- iName[0] = "Name der Essence"
- iPos[0] = 0
- retval = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement