I have the following test script:
static powerRedstoneBlock(block) {
const powered = block.typeId.replace("unpowered", "powered");
const permutations = block.permutation.getAllStates()
block.setType(powered)
for (const [key, value] of Object.entries(permutations)) {
block.setPermutation(block.permutation.withState(key, value));
}
block.setPermutation(block.permutation.withState("redstone_signal", 15));
}
But no matter what I do, I can't get it to cascade/start the chain. It only ever works for one block in the chain. Doing it to repeaters and comparators does nothing except light them up for a second (no signal is emitted to linked redstone). Any ideas, or is having a system that hooks up to redstone a pipe dream still?