Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("right")
- ae = peripheral.wrap("left")
- m.clear()
- m.setCursorPos(1,1)
- --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.yellow)
- m.write("Diamants :")
- m.setCursorPos(2, 2)
- m.write(ae.countOfItemType(264, 0))
- m.setCursorPos(2, 4)
- m.setTextColor(colors.yellow)
- m.write("Or :")
- m.setCursorPos(2, 5)
- m.write(ae.countOfItemType(266, 0))
- m.setCursorPos(2, 7)
- m.setTextColor(colors.yellow)
- m.write("Fer :")
- m.setCursorPos(2, 8)
- m.write(ae.countOfItemType(265, 0))
- m.setCursorPos(2, 7)
- m.setTextColor(colors.yellow)
- m.write("Copper :")
- m.setCursorPos(2, 8)
- m.write(ae.countOfItemType(8883, 64))
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment