Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local barrel = peripheral.find("me_bridge")
- local monitor = peripheral.find("monitor")
- local w, h = monitor.getSize()
- monitor.setTextScale(0.5)
- local old_term = term.current()
- local imageName = "certus_quartz_crystal_small.nfp"
- local items
- local image1 = paintutils.loadImage(imageName)
- local image2 = paintutils.loadImage(imageName)
- local image3 = paintutils.loadImage(imageName)
- local image4 = paintutils.loadImage(imageName)
- local images = {image1, image2, image3, image4}
- local fallens = {0, 8, -8, -16}
- local imagex = {10, 26, 42, 58}
- function drawImage(image, fallen, x)
- monitor.setTextScale(1.0)
- term.redirect(monitor)
- paintutils.drawImage(image, x, fallen)
- term.redirect(old_term)
- fallen = fallen + 1
- if fallen > h then
- fallen = -16
- end
- term.redirect(old_term)
- return fallen
- end
- while true do
- for i = 1, 4, 1 do
- fallens[i] = drawImage(images[i], fallens[i], imagex[i])
- end
- monitor.setCursorPos((w/2)-10,(h/2)-2)
- print("Total Certus Quartz\n")
- monitor.write("Total Certus Quartz")
- monitor.setCursorPos((w/2)-10,(h/2))
- items = barrel.getItem({name = "ae2:certus_quartz_crystal", count = 1})
- print(items.amount)
- monitor.write("%d", items.amount)
- sleep(0.5)
- monitor.clear()
- end
Advertisement
Add Comment
Please, Sign In to add comment