mojira.dev
MC-129985

Some errors are not printed to console

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.

Linked issues

Comments 3

Can confirm in 1.17.1.

Can confirm in 1.18.1.

Thank you for your report!
We're tracking this issue in MC-125823, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Scott

(Unassigned)

Confirmed

Commands, Networking

Minecraft 18w20c, 1.16.1, 1.17.1, 1.18.1, 1.19.1

Retrieved