nomnivore1

Bund.lua

Apr 20th, 2022
647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. function setSignal(side,color,on)
  2.     if (on == true) then
  3.         redstone.setBundledOutput(side,colors.combine(redstone.getBundledOutput(side),color))
  4.     end
  5.     if (on == false) then
  6.         redstone.setBundledOutput(side,colors.subtract(redstone.getBundledOutput(side),color))
  7.     end
  8. end
  9.  
  10. function readSignal(side,color)
  11.  return colors.test(redstone.getBundledInput(side),color)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment