Advertisement
fantadada

cube_test_energ

Apr 7th, 2023
1,064
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. rednet.open("bottom")
  2. p = peripheral.wrap("back")
  3.  
  4. local id = //
  5. local id_cube = //
  6.  
  7. term.clear()
  8. term.setBackgroundColor(colors.gray)
  9. term.setCursorPos(24,9)
  10. term.write("Controlleur cube_"..id_cube)
  11.  
  12.  
  13. while true do
  14.  
  15.  
  16.     rednet.send(id, "rect_"..id_cube.."_Ftemp"..p.getEnergy())
  17.     rednet.send(id, "rect_"..id_cube.."_Ftemp"..p.getMaxEnergy())
  18.  
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement