Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local depot = peripheral.wrap("left")
- local redstoneOutput = "right"
- while true do
- local item = depot.getItemDetail(1)
- if item and item.count == 1 and string.match(item.name, "stripped") then
- redstone.setOutput(redstoneOutput, false)
- sleep(1)
- else
- redstone.setOutput(redstoneOutput, true)
- sleep(1)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement