Skip to content

Instantly share code, notes, and snippets.

@Nikitaw99
Last active March 23, 2017 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nikitaw99/8d9062e8c3a33a92f1598eed9ed937a3 to your computer and use it in GitHub Desktop.
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
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