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

Some errors are not printed to console

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 18w20c, 1.16.1, 1.17.1, 1.18.1, 1.19.1
    • None
    • Confirmed
    • Commands, Networking

      When running certain commands in the server console at an entity's position some errors are not printed, but if the command succeeds it will print the output properly.

       

      Example:

      All of the following commands are to be run from the server console:

       

      execute at @p run data get block ~ ~ ~
      

      Unless the player is standing inside a block entity, this message should print the error "The target block is not a block entity", instead nothing prints at all. If the player is standing in a block entity, it will print the data of the block as expected.

      data get block ~ ~ ~

      Prints the proper error:

      [16:42:24] [Server thread/INFO]: The target block is not a block entity
      execute positioned as @p run data get entity @e[limit=1,name=non_existant]

      Unless an entity named "non_existant" exists, nothing will print.

      data get entity @e[limit=1,name=non_existant]

      Prints the proper error:

      [16:45:44] [Server thread/INFO]: No entity was found

      However, if the position is not tied to an entity, the output seems to be unaffected:

      execute in the_nether positioned 8 75 -15 run data get block ~ ~ ~
      [16:46:29] [Server thread/INFO]: The target block is not a block entity
      

       

       

      Considering this is the console running these commands, these error messages should always be displayed, regardless of nature of how they are ran.

       

      Not sure exactly which prior snapshots I'm referring to, but in earlier 1.13 snapshots, this behavior did not exist. The errors would print correctly regardless of position.

            Unassigned Unassigned
            nigathan Scott
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: