Updating the direction of a redstone-related block through the Block.setPermutation API does not update redstone paths at the same tick. Tested on blocks:
piston
redstone torch
repeater
comparator
observers
steps to reproduce
Create a new permutation with new block direction
Set the permutation immediately at the same tick
expected results
The redstone emission and source paths to change
actual results
Redstone paths didnt change
workarounds
Restarting the world would fix the issue
Setting the block to air first, then the actual permutation in the next tick
related issues
Issue reproduced via the Script API:
MCPE-190505 - Setting a block to a repeater and then changing the cardinal direction permutation doesn't change the input/output of the repeater
Issue reproduced via commands with vanilla redstone blocks:
MCPE-176853 - When replacing observer by setblock or fill, its output direction doesn't change
Issue reproduced with custom blocks' components and the API
MCPE-234647 - Redstone emission not updating across permutation changes
MCPE-229570 - Custom block using minecraft:redstone_producer does not update the redstone signal when toggled via permutations
This issue has been around since 1.21.80 (or maybe further before, as some users reported).
Thank you for helping us improve Minecraft! We saved your files: