Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function left ()
- redstone.setOutput("left", (not redstone.getOutput("left")))
- end
- function right ()
- redstone.setOutput("right", (not redstone.getOutput("right")))
- end
- function up ()
- redstone.setOutput("top", (not redstone.getOutput("up")))
- end
- function down ()
- redstone.setOutput("bottom", (not redstone.getOutput("down")))
- end
- function front ()
- redstone.setOutput("front", (not redstone.getOutput("front")))
- end
- function back ()
- redstone.setOutput("back", (not redstone.getOutput("back")))
- end
- arg = {...}
- arg[1]=arg[1]+0
- if (arg[1]==4) then
- left()
- end
- if (arg[1]==2) then
- right()
- end
- if (arg[1]==5) then
- up()
- end
- if (arg[1]==6) then
- down()
- end
- if (arg[1]==1) then
- front()
- end
- if (arg[1]==3) then
- back()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement