Advertisement
BelgianNoise

Untitled

Apr 4th, 2020
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. posOfMonitor = "right"
  2.  
  3. local file = require("items." .. "pumpjack")
  4.  
  5. mon = peripheral.wrap(posOfMonitor)
  6. mon.clear()
  7. mon.setTextScale(2)
  8. line = 1
  9.  
  10. mon.setCursorPos(1,line)
  11.  
  12. mon.write("======= " .. file.itemname .. " ============================")
  13.  
  14. for i, block in ipairs(file.blocks) do
  15.     mon.setCursorPos(1,line + 1)
  16.     mon.write("   - " .. block)
  17.     line = line + 1
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement