Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- while true do
- sender, message = rednet.receive()
- side, amount = message:match("([^,]+),([^,]+)")
- numAmount = tonumber(amount)
- if side == "right" then print(side) end
- print(side.." "..amount)
- for i=1, numAmount do
- redstone.setOutput(side, true)
- sleep(1)
- redstone.setOutput(side, false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement