Advertisement
BelgianNoise

Untitled

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