Advertisement
giwdul

display_reactor_production_CC

Jul 7th, 2023 (edited)
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. -- display in chat the quantity produced by the reactor at a given tick
  2.  
  3. local chatBot = "§2Jarvis"
  4.  
  5. chatBox = peripheral.find("chatBox")
  6.  
  7. reactor = peripheral.wrap("right")
  8. reactor = reactor.battery()
  9.  
  10. chatBox.sendMessage("Produit par le réacteur /tick : " .. reactor.producedLastTick(), chatBot)
  11. os.sleep(30)
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement