I have recently added features to a datapack that powers redstone, but i implemented it in a way i am not satisfied with: turning redstone wires into redstone blocks and back again, via setblock. I have not played with other developers' datapacks before so i am unfamiliar with the methods they use to power redstone, but i am assuming they have better ways i am unfamiliar with, just due to the sheer bad-ness of using redstone blocks and setblock. i'd be suprised if this was really the best way. So i'd like to ask what way other datapack developers actually tend to use, so i can hopefully update my pack with a better way.
i thought setting the powered parameter on repeaters would work but it doesnt seem to, nor setting that on wires or comparators.
i'm hoping to support minecraft 26.1.1 and higher.
my end goal is to just power redstone wires and stuff without relying on a method that can accidentally mess up player builds.