ravneravn

Redstone mob spawner

Jul 5th, 2022
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. local receiving_signal
  2.  
  3. While true do
  4.  
  5. if redstone.getInput("left") then
  6. receiving_signal = true
  7. elseif redstone.getInput("right") then
  8. receiving_signal = true
  9. elseif redstone.getInput("front") then
  10. receiving_signal = true
  11. elseif redstone.getInput("back") then
  12. receiving_signal = true
  13. else
  14. receiving_signal = false
  15. end
  16.  
  17. if receiving_signal == true then
  18. redstone.setOutput("top", true)
  19. else
  20. redstone.setOutput("top", false)
  21. end
  22.  
  23. end
Advertisement
Add Comment
Please, Sign In to add comment