alright so i was working on this project, and i basically wanted the command block to run this command
/execute if block 26 69 45 repeater[powered=true] run setblock 46 74 40 redstone_wire
now if i type this command out normally in the chatbox, it works perfectly fine, however when i insert it into the command block, i face multuple issues-
a ) the command doesn't run on an Impulse, Unconditional, and Always Active command block
b ) the command DOES run on a Repeat, Unconditional, and Always Active command block, but it runs infinitely instead of just once.
someone please help me out as to what exactly i should program the command block to in order for the command to work.
if the repeater on block 26 69 45 is powered, then place redstone wire on the block 46 74 40.)
Just for trial, i also added another command block and set it to
/execute if block 26 69 45 repeater[powered=false] run setblock 46 74 40 air
basically, if the repeater on 26 69 45 is off, it destroys anything in 46 74 40. This command block is also set to Repeat, Unconditional and Always Active, however this command only runs once and not infinite times... whats going on