Advertisement
Guest User

startup.lua

a guest
Dec 4th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.16 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement