diff options
-rw-r--r-- | door.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/door.lua b/door.lua new file mode 100644 index 0000000..2c3be24 --- /dev/null +++ b/door.lua @@ -0,0 +1,13 @@ +local ps={peripheral.find"redstone_integrator"} + +local function set(v) + for _,v in ipairs(ps) do + v.setOutput("top",v) + end + +while true do + set(true) + os.sleep(2) + set(false) + os.sleep(2) +end |