##inativo para ativo
##repeater delay 0
execute  if block ~ ~ ~-1 unpowered_repeater ["direction"= 0, "repeater_delay"= 0] run setblock ~ ~ ~-1 powered_repeater ["direction"= 0, "repeater_delay"= 0]

execute  if block ~ ~ ~1 unpowered_repeater ["direction"= 2, "repeater_delay"= 0] run setblock ~ ~ ~1 powered_repeater ["direction"= 2, "repeater_delay"= 0]

execute  if block ~1 ~ ~ unpowered_repeater ["direction"= 1, "repeater_delay"= 0] run setblock ~1 ~ ~ powered_repeater ["direction"= 1, "repeater_delay"= 0]

execute  if block ~-1 ~ ~ unpowered_repeater ["direction"= 3, "repeater_delay"= 0] run setblock ~-1 ~ ~ powered_repeater ["direction"= 3, "repeater_delay"= 0]

##repeater delay 1
execute  if block ~ ~ ~-1 unpowered_repeater ["direction"= 0, "repeater_delay"= 1] run setblock ~ ~ ~-1 powered_repeater ["direction"= 0, "repeater_delay"= 1]

execute  if block ~ ~ ~1 unpowered_repeater ["direction"= 2, "repeater_delay"= 1] run setblock ~ ~ ~1 powered_repeater ["direction"= 2, "repeater_delay"= 1]

execute  if block ~1 ~ ~ unpowered_repeater ["direction"= 1, "repeater_delay"= 1] run setblock ~1 ~ ~ powered_repeater ["direction"= 1, "repeater_delay"= 1]

execute  if block ~-1 ~ ~ unpowered_repeater ["direction"= 3, "repeater_delay"= 1] run setblock ~-1 ~ ~ powered_repeater ["direction"= 3, "repeater_delay"= 1]

##repeater delay 2
execute  if block ~ ~ ~-1 unpowered_repeater ["direction"= 0, "repeater_delay"= 2] run setblock ~ ~ ~-1 powered_repeater ["direction"= 0, "repeater_delay"= 2]

execute  if block ~ ~ ~1 unpowered_repeater ["direction"= 2, "repeater_delay"= 2] run setblock ~ ~ ~1 powered_repeater ["direction"= 2, "repeater_delay"= 2]

execute  if block ~1 ~ ~ unpowered_repeater ["direction"= 1, "repeater_delay"= 2] run setblock ~1 ~ ~ powered_repeater ["direction"= 1, "repeater_delay"= 2]

execute  if block ~-1 ~ ~ unpowered_repeater ["direction"= 3, "repeater_delay"= 2] run setblock ~-1 ~ ~ powered_repeater ["direction"= 3, "repeater_delay"= 2]

##repeater delay 3
execute  if block ~ ~ ~-1 unpowered_repeater ["direction"= 0, "repeater_delay"= 3] run setblock ~ ~ ~-1 powered_repeater ["direction"= 0, "repeater_delay"= 3]

execute  if block ~ ~ ~1 unpowered_repeater ["direction"= 2, "repeater_delay"= 3] run setblock ~ ~ ~1 powered_repeater ["direction"= 2, "repeater_delay"= 3]

execute  if block ~1 ~ ~ unpowered_repeater ["direction"= 1, "repeater_delay"= 3] run setblock ~1 ~ ~ powered_repeater ["direction"= 1, "repeater_delay"= 3]

execute  if block ~-1 ~ ~ unpowered_repeater ["direction"= 3, "repeater_delay"= 3] run setblock ~-1 ~ ~ powered_repeater ["direction"= 3, "repeater_delay"= 3]

##ativo para ativo
##repeater delay 0
execute  if block ~ ~ ~-1 powered_repeater ["direction"= 0, "repeater_delay"= 0] run setblock ~ ~ ~-1 powered_repeater ["direction"= 0, "repeater_delay"= 0]

execute  if block ~ ~ ~1 powered_repeater ["direction"= 2, "repeater_delay"= 0] run setblock ~ ~ ~1 powered_repeater ["direction"= 2, "repeater_delay"= 0]

execute  if block ~1 ~ ~ powered_repeater ["direction"= 1, "repeater_delay"= 0] run setblock ~1 ~ ~ powered_repeater ["direction"= 1, "repeater_delay"= 0]

execute  if block ~-1 ~ ~ powered_repeater ["direction"= 3, "repeater_delay"= 0] run setblock ~-1 ~ ~ powered_repeater ["direction"= 3, "repeater_delay"= 0]

##repeater delay 1
execute  if block ~ ~ ~-1 powered_repeater ["direction"= 0, "repeater_delay"= 1] run setblock ~ ~ ~-1 powered_repeater ["direction"= 0, "repeater_delay"= 1]

execute  if block ~ ~ ~1 powered_repeater ["direction"= 2, "repeater_delay"= 1] run setblock ~ ~ ~1 powered_repeater ["direction"= 2, "repeater_delay"= 1]

execute  if block ~1 ~ ~ powered_repeater ["direction"= 1, "repeater_delay"= 1] run setblock ~1 ~ ~ powered_repeater ["direction"= 1, "repeater_delay"= 1]

execute  if block ~-1 ~ ~ powered_repeater ["direction"= 3, "repeater_delay"= 1] run setblock ~-1 ~ ~ powered_repeater ["direction"= 3, "repeater_delay"= 1]

##repeater delay 2
execute  if block ~ ~ ~-1 powered_repeater ["direction"= 0, "repeater_delay"= 2] run setblock ~ ~ ~-1 powered_repeater ["direction"= 0, "repeater_delay"= 2]

execute  if block ~ ~ ~1 powered_repeater ["direction"= 2, "repeater_delay"= 2] run setblock ~ ~ ~1 powered_repeater ["direction"= 2, "repeater_delay"= 2]

execute  if block ~1 ~ ~ powered_repeater ["direction"= 1, "repeater_delay"= 2] run setblock ~1 ~ ~ powered_repeater ["direction"= 1, "repeater_delay"= 2]

execute  if block ~-1 ~ ~ powered_repeater ["direction"= 3, "repeater_delay"= 2] run setblock ~-1 ~ ~ powered_repeater ["direction"= 3, "repeater_delay"= 2]

##repeater delay 3
execute  if block ~ ~ ~-1 powered_repeater ["direction"= 0, "repeater_delay"= 3] run setblock ~ ~ ~-1 powered_repeater ["direction"= 0, "repeater_delay"= 3]

execute  if block ~ ~ ~1 powered_repeater ["direction"= 2, "repeater_delay"= 3] run setblock ~ ~ ~1 powered_repeater ["direction"= 2, "repeater_delay"= 3]

execute  if block ~1 ~ ~ powered_repeater ["direction"= 1, "repeater_delay"= 3] run setblock ~1 ~ ~ powered_repeater ["direction"= 1, "repeater_delay"= 3]

execute  if block ~-1 ~ ~ powered_repeater ["direction"= 3, "repeater_delay"= 3] run setblock ~-1 ~ ~ powered_repeater ["direction"= 3, "repeater_delay"= 3]