Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local colors = require("colors")
- local bridge = component.openperipheral_bridge
- local table = require("table")
- function EnderPouchSystem(tempX, tempY)
- local startX = tempX
- local startY = tempY
- local endX = tempX + 112
- local paddingIconY = 16 --distance between vertical placement of icons
- local paddingIconX = 16 --distance between horizontal placement of icons
- local paddingTextX = 4 --horizontal additional padding to add text
- local paddingTextY = 5 --vertical additional padding to add text
- --bridge.addBox(startX,startY,endX,paddingIconY + paddingIconY,colors.black,0.2)
- bridge.addIcon(startX,startY,"EnderStorage:enderPouch")
- bridge.addText(startX + paddingIconX + paddingTextX,startY + paddingTextY,"Storage Deposit",0xFFFFFF)
- bridge.addIcon(startX,startY + paddingIconY,"EnderStorage:enderPouch",4095)
- bridge.addText(startX + paddingIconX + paddingTextX,startY + paddingIconY + paddingTextY,"Exchanging pouch",0xFFFFFF)
- end
- function IndividualHud()
- local function TheTrueReaperHUD()
- --Code goes here
- end
- local users = {}
- for i,v in ipairs(bridge.getUsers()) do
- local user = { name = v.name, uuid = v.uuid, surface = bridge.getSurfaceByName( v.name )}
- users[i] = user
- users[v.name] = user
- end
- print(users.name, users.uuid)
- end
- function start()
- bridge.clear()
- --Put functions here(if they are static)
- --Example function()
- --End of static functions
- while true do
- bridge.clear()
- --Put functions here(if they need to be updated every tick)
- EnderPouchSystem(2,30)
- -- ConnectedPlayers()
- IndividualHud()
- --End of ticking functions
- bridge.sync()
- os.sleep(0.1)
- end
- end
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement