Advertisement
ecco7777

CC Node Aspect View

Apr 26th, 2020
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. --node aspect view
  2. sign=peripheral.wrap("front")
  3. node=peripheral.wrap("back")
  4. aspects=node.getAspects()
  5.  
  6. while true do
  7. aspectCount=0
  8. for i=1,#aspects do
  9. aspectCount=aspectCount+node.getAspectCount(aspects[i])
  10. end
  11. sign.setLine(1,aspectCount)
  12. sleep(1)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement