osmarks

Cellmeter

Dec 4th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local c = peripheral.wrap "left"
  2.  
  3. while true do
  4.     local l = c.getRFStored() / c.getRFCapacity()
  5.     redstone.setAnalogOutput("right", l * 15)
  6.     sleep(0.1)
  7. end
Add Comment
Please, Sign In to add comment