Advertisement
colhaydutu

steampunk stripped wood filter

Apr 19th, 2024 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. local depot = peripheral.wrap("left")
  2. local redstoneOutput = "right"
  3.  
  4. while true do
  5. local item = depot.getItemDetail(1)
  6.  
  7. if item and item.count == 1 and string.match(item.name, "stripped") then
  8. redstone.setOutput(redstoneOutput, false)
  9. sleep(1)
  10. else
  11. redstone.setOutput(redstoneOutput, true)
  12. sleep(1)
  13. end
  14.  
  15. sleep(1)
  16. end
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement