Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("right")
- ae = peripheral.wrap("bottom")
- m.clear()
- m.setCursorPos(1,1)
- m.setTextScale(2)
- --Call function "centerText("")" to set text
- --Use m.setCursorPos(1,y) to choose placement on screen
- y2 = 1
- while true do
- m.clear()
- m.setCursorPos(2, 1)
- m.setTextColor(colors.lightBlue)
- m.write("Diamants :")
- m.setCursorPos(2, 2)
- m.write(math.ceil(ceilae.countOfItemType(264, 0)))
- m.setCursorPos(2, 4)
- m.setTextColor(colors.yellow)
- m.write("Or :")
- m.setCursorPos(2, 5)
- m.write(math.ceil(ceilae.countOfItemType(266, 0)))
- m.setCursorPos(2, 7)
- m.setTextColor(colors.lightGray)
- m.write("Fer :")
- m.setCursorPos(2, 8)
- m.write(math.ceil(ae.countOfItemType(265, 0)))
- m.setCursorPos(2, 10)
- m.setTextColor(colors.orange)
- m.write("Copper :")
- m.setCursorPos(2, 11)
- m.write(math.ceil(ae.countOfItemType(8883, 64)))
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment