Advertisement
Antonderman

space_suit_detector.lua

Jul 18th, 2024
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.15 KB | None | 0 0
  1. local basalt = require("basalt")
  2.  
  3. local invManager = peripheral.find("inventoryManager")
  4.  
  5. local armor = invManager.getArmor()
  6.  
  7. if (armor[1].name == "ad_astra:netherite_space_boots") {
  8.     print("Boots: ok")
  9. }
  10.  
  11. -- local redstoneIntegrators = peripheral.find("redstoneIntegrator")
  12.  
  13. -- local monitor = peripheral.find("monitor")
  14. -- local main = basalt.createFrame();
  15. -- -- main:setMonitor(monitor)
  16.  
  17. -- local currentStationLabel = main:addLabel()
  18. -- currentStationLabel:setText("You are on:")
  19. -- currentStationLabel:setPosition("parent.w/2 - self.w/2", 2)
  20. -- currentStationLabel:setFontSize(2)
  21.  
  22. -- local stationLabel = main:addLabel()
  23. -- stationLabel:setText("M-Link Factory")
  24. -- stationLabel:setPosition("parent.w/2 - self.w/2", 6)
  25. -- stationLabel:setFontSize(2)
  26.  
  27.  
  28. -- local progressBar = main:addProgressbar()
  29. -- progressBar:setPosition("parent.w/2 - self.w/2", "parent.h/2 - self.h/2")
  30. -- progressBar:setDirection("right")
  31. -- progressBar:setSize(50,3)
  32. -- progressBar:setProgress(50)
  33. -- progressBar:setProgressBar(colors.blue)
  34.  
  35. -- for a,b in pairs(redstoneIntegrators) do
  36. --     print(a)
  37. --     print(b)
  38. -- end
  39.  
  40. -- basalt.autoUpdate()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement