Entity type tags suggestions don't work in target selectors
The Bug
This was found while messing around in a 1.17.1 single-player world with target selectors and entity type tags.

As you can see, the minecraft:raiders tag doesn't offer completions in singleplayer.
Steps to Reproduce
- Paste the following command into chat without executing it.
/kill @e[type=#minecraft:raid
- Hit the TAB key in an attempt to suggest the "#minecraft:raiders" entity type tag.
- Look at the command suggestions list.
- Take note as to whether or not entity type tags are suggested in command suggestions.
Observed Behavior
Entity type tags are not suggested in command suggestions.
Expected Behavior
Entity type tags would be suggested in command suggestions.
Potential Fix
I fixed the issue using a modified server with the attached patch. The issue stems from the silent failure of commands with target selector with invalid entity tags attached to the "type" option. I fixed it by throwing a parse exception if the tag wasn't found.
With my fix applied on a modified server, I got

Created Issue:
Entity type tags suggestions don't work in target selectors
This was found while messing around in a 1.17.1 single-player world with target selectors and entity type tags.
As you can see, the minecraft:raiders tag doesn't offer completions in singleplayer.
I fixed the issue using a modified server with the attached patch. The issue stems from the silent failure of commands with target selector with invalid entity tags attached to the "type" option. I fixed it by throwing a parse exception if the tag wasn't found.
With my fix applied on a modified server, I got
Environment
Java 16.0.2
This was found while messing around in a 1.17.1 single-player world with target selectors and entity type tags.
As you can see, the minecraft:raiders tag doesn't offer completions in singleplayer.
I fixed the issue using a modified server with the attached patch. The issue stems from the silent failure of commands with target selector with invalid entity tags attached to the "type" option. I fixed it by throwing a parse exception if the tag wasn't found.
With my fix applied on a modified server, I got
The Bug
This was found while messing around in a 1.17.1 single-player world with target selectors and entity type tags.
As you can see, the minecraft:raiders tag doesn't offer completions in singleplayer.
Potential Fix
I fixed the issue using a modified server with the attached patch. The issue stems from the silent failure of commands with target selector with invalid entity tags attached to the "type" option. I fixed it by throwing a parse exception if the tag wasn't found.
With my fix applied on a modified server, I got
The Bug
This was found while messing around in a 1.17.1 single-player world with target selectors and entity type tags.
As you can see, the minecraft:raiders tag doesn't offer completions in singleplayer.
Potential Fix
I fixed the issue using a modified server with the attached patch. The issue stems from the silent failure of commands with target selector with invalid entity tags attached to the "type" option. I fixed it by throwing a parse exception if the tag wasn't found.
With my fix applied on a modified server, I got
The Bug
This was found while messing around in a 1.17.1 single-player world with target selectors and entity type tags.
As you can see, the minecraft:raiders tag doesn't offer completions in singleplayer.
Steps to Reproduce
- Paste the following command into chat without executing it.
/kill @e[type=#minecraft:raid- Hit the TAB key in an attempt to suggest the "#minecraft:raiders" entity type tag.
- Look at the command suggestions list.
- Take note as to whether or not entity type tags are suggested in command suggestions.
Observed Behavior
Entity type tags are not suggested in command suggestions.
Expected Behavior
Entity type tags would be suggested in command suggestions.
Potential Fix
I fixed the issue using a modified server with the attached patch. The issue stems from the silent failure of commands with target selector with invalid entity tags attached to the "type" option. I fixed it by throwing a parse exception if the tag wasn't found.
With my fix applied on a modified server, I got
Java 16.0.2
is duplicated by
is duplicated by
is duplicated by
Duplicate of MC-235045
Thank you for your report!
We're tracking this issue in MC-235045, 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
– I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Thank you for your report!
We're actually already tracking this issue in MC-235045, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote or any additional information to the main ticket it would be appreciated.
Please be sure to use the search feature before creating a ticket to see if the issue has already been reported.
Quick Links:
📓 Bug Tracker Guidelines – 🛠 Community Support – 📧 Mojang Support – ✍️ Feedback and Suggestions – 💬 Mojira Discord
Thank you for your report!
We're actually already tracking this issue in MC-235045, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote or any additional information to the main ticket it would be appreciated.
Please be sure to use the search feature before creating a ticket to see if the issue has already been reported.
Quick Links:
📗 Tracker Guidelines | 🛠 Community Support | 📧 Mojang Support | 🔑 Account Support | ✍️ Feedback Discord
– I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit
Can confirm this behavior. Also affects 21w42a. Here are some extra details regarding this problem.
The Bug:
Entity type tags are not suggested in command suggestions.
Steps to Reproduce:
Observed Behavior:
Entity type tags are not suggested in command suggestions.
Expected Behavior:
Entity type tags would be suggested in command suggestions.
Can still reproduce this behavior on 1.18.1
Confirmed for 22w14a. They suggest, but only if =! is used. Regardless of = or =!, typing a # removes them from suggestions. Hopefully they fix this because I’m sure it’s useful and also it’s unlike other commands that support tags (like /locate and /locatebiome which both support and suggest tags just fine).
Still affects 1.20-rc1