summaryrefslogtreecommitdiff
path: root/door.lua
blob: 4c489fb1ad1fc7e2b65aae8abbc059d9faa8b10c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local ps={peripheral.find"redstone_integrator"}

local function set(b)
	for _,v in ipairs(ps) do
		v.setOutput("top",b)
	end
end

while true do
	set(true)
	os.sleep(2)
	set(false)
	os.sleep(2)
end