Advertisement
joeyjo33

CC: C bridge

Sep 25th, 2023 (edited)
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | Gaming | 0 0
  1. --get periperals sides or network name
  2.  
  3. monitor = peripheral.find("monitor")
  4. target = peripheral.find("create_target")
  5. textutils.slowPrint("program is running")
  6.  
  7. local x,y = target.getSize()
  8.  
  9. -- clear the target block
  10.  
  11. target.clear()
  12.  
  13. --start main program to establish the bridge between cc: tweaked and create using CC:C bridge mod
  14.  
  15. while(true) do
  16. for i=1,y do
  17. monitor.setCursorPos(1, i)
  18. monitor.write(target.getLine(i))
  19. end
  20. sleep(0.3)
  21. end
Tags: CC: Tweaked
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement