NiallDoherty

EngineControl

Apr 28th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cell = peripheral.wrap("thermalexpansion:storage_cell_0")
  2. capacity = cell.getRFCapacity()
  3.  
  4. while true do
  5.     if cell.getRFStored() == capacity then
  6.         redstone.setAnalogOutput("left", 0)
  7.     elseif cell.getRFStored() < capacity / 5 then
  8.         redstone.setAnalogOutput("left", 5)
  9.     end
  10.     sleep(20)
  11. end
Add Comment
Please, Sign In to add comment