Advertisement
ClydeWasHere

CC2

Jun 23rd, 2022
656
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. total = 15 * 4
  2. while true do
  3.  redstone.setOutput("bottom",false)
  4.  sleep(1)
  5.  redstone.setOutput("bottom",true)
  6.  a = redstone.getAnalogInput("left")
  7.  b = redstone.getAnalogInput("front")
  8.  c = redstone.getAnalogInput("back")
  9.  d = redstone.getAnalogInput("right")
  10.  sum = a + b + c + d
  11.  if (sum == total) then
  12.     redstone.setOutput("top",true)  
  13.  else
  14.     redstone.setOutput("top",false)
  15.   end
  16.  redstone.setOutput("bottom",fa;se)
  17. end
Advertisement
RAW Paste Data Copied
Advertisement