View difference between Paste ID: eyavxhek and TDzXsJYt
SHOW: | | - or go back to the newest paste.
1-
local e = commands.testforblock("-125 64 253 minecraft:lever 10")
1+
local e = commands.testforblock("-128 67 251 minecraft:lever 11")
2
3
while true do
4
if e then
5-
commands.setblock("-127 64 256 minecraft:redstone_torch")
5+
commands.setblock("-127 64 249 minecraft:redstone_torch")
6
sleep(2)
7
os.reboot()
8
else
9-
commands.setblock("-127 64 256 minecraft:air")
9+
commands.setblock("-127 64 249 minecraft:air")
10
sleep(2)
11
os.reboot()
12
end
13
end