mojira.dev
MC-68503

Redstone testfor command forever active

I was trying to make an bow with command blocks that would create fire around where the arrow landed. I had some command blocks set up with these exact commands commands in this order:
/clear @p minecraft:bow 1
/testfor @e[type=Arrow]
/kill @e[type=Arrow]
/give @p minecraft:bow
The commands work, but one time only. From the testfor command onwards, the comparator and repeaters dont turn off, so the command can only be run once. I can fix it manually everytime by going into the command block and pressing "Done" and the repeaters turn off. I don't know if this was intended, but without a signal going in to it, there shouldn't be any repeaters powered.

Linked issues

Attachments

Comments 5

The first screenshot is of the command block line.
The second is of the command running after I shot an arrow.
The third is the problem, when the command is run, the repeaters stay lit.

Invalid. This is not a bug, the output of a testfor chang only when the block is powered.
If you shoot another arrow, your bow will be cleared and the output of the second command block will be reset.
Two solutions:

  • You put the testfor in your clock

  • You add a /blockdata after the testfor to reset the SuccessCount value

That doesn't work. I shoot the bow a second time and The second half doesn't go through. If I put the test for in the clock, then any arrow will be deleted (fire arrow later). I want it so that only arrows fired from a specific bow to be like that. A normal bow will have Unbreakable tag on it so it's not affected.

I didn't understand the second one u wrote, but I get it now. I'll try that

Duplicate of MC-57933 – Working as Intended

Brandon Leon

(Unassigned)

Unconfirmed

Minecraft 14w34d

Retrieved