Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Title: RedstoneInput
- --Version: 1
- --Last Revised: N/A
- --Last Revised By: N/A
- --Author: TangentDelta (alias Hydrogen)
- --Platform: ComputerCraft LUA Virtual Machine
- --Notes: It's going to be part of my PLC program
- local function scan(side, var)
- if redstone.getInput(side) then
- var = true
- print (side)
- else
- var = false
- end
- end
- scan("left", l)
- scan("front", f)
- scan("right", r)
- scan("back", b)
- scan("bottom", bo)
- scan("top", t) --lol, I have no idea if this one even works
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement