Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-228548

Result count of the command block include "execute if entity @e" is not reflected normally in the redstone comparator's power level

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.17
    • None
    • Windows 10 version 20H2 (OS build 19042,1052)
      Java 16.0.1.9.1
    • Unconfirmed

      I'm Japanese. Sorry wrong English.

      Result count of the command block include "execute if entity @e" is not reflected normally in the redstone comparator's power level.

      What I expected to happen was...:
      I thought that when I entered "execute if entity @e[distance=..10]" in the command block and output it with the comparator, it would output one player and one item, that is, output level 2, like until 1.12's "testfor @e[r=10]".

      What actually happened was...:
      Output level 1 regardless of the number of entities.

      Steps to Reproduce:
      1. Place Repeating command block.
      2. In the Repeating command block, write "execute if entity @e[distance=..10]" and change mode "Always Active"
      3. Place the Redstone comparator so that the Repeating command block is located behind the Redstone comparator
      4. Line up Redstone dust from the Redstone comparator
      5. Spawn any number of entities within range(distance)

            Unassigned Unassigned
            kohonayoshi kohonayoshi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: