Last active
March 23, 2017 18:49
-
-
Save Nikitaw99/8d9062e8c3a33a92f1598eed9ed937a3 to your computer and use it in GitHub Desktop.
sample microcontroller program for opencomputers minecraft mod. when it receives a redstone signal in the front, it beeps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local rs = component.proxy(component.list("redstone")()) | |
while true do | |
if rs.getInput(3) > 0 then | |
computer.beep() | |
end | |
computer.pullSignal() | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment