Command blocks can perform a variety of different functions, but they all come with a caveat: they either loop infinitely or execute once. Sure, you can use a repeating command block, add a tick delay, power it for a set amount, use another command block to power it off...etc. With a simply loop quantity, it could be as easy as adding a tag to the end of command text. Something like (loopVar:___) at the end of a line of code could control how many times the code is executed. Assuming it's an impulse block which needs redstone, it would perform the command for that quantity of times, and stop, until the pulse is interrupted and re-received. Something like this could even be baked into the command block UI, into the form of a toggle.
Please sign in to leave a comment.
0 Comments