Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- print("t para roca, y para arena")
- local event, key = os.pullEvent("char")
- if key == "t" then
- print("roca")
- peripheral.call("back", "transmit", 3, 1, "2200")
- end
- if key == "y" then
- print("arena")
- peripheral.call("back", "transmit", 3, 1, "0")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement