mojira.dev
MC-253651

Some advancements'(such as Hot Tourist Destinations) condition names contain colons(:), which causes errors when using target selectors

Take the advancement Hot Tourist Destinations as an example. One of the condition names is "minecraft:basalt_deltas". If I want to detect which  player has completed the condition, I should run the command "execute if entity @s[advancements=
{minecraft:nether/explore_nether={minecraft:basalt_deltas=true}}]" (here I suppose the player as the entity to run the command). If it doesn't report errors and the player has completed the condition, the command should return a 1; however the command DO report errors, being unable to run.

[media]

There are so many problems like this, including Adventuring Time, A Balanced Diet, Two by Two and so on.

I suggest that you should remove "minecraft:", or change the colon(🙂 to dot(.).

This problem caused great trouble while I was editing datapacks. Please fix the bug as soon as possible.

By the way, the bug reporter, I, am Chinese. My English is not good. Maybe there are some grammar mistakes. Hope you could understand.

Environment

Windows 11 (64x)
Minecraft Java Edition 1.19
Java Version: JDK 18 (18.1.1)

Linked issues

Attachments

Comments 4

If you need to include a value with a colon within a command, you should encase it in quotes to ensure that it is interpreted properly.

I've tried putting quotes in many different places looking reasonable, however nothing has worked, it still reported errors. If you don't believe that, please try it on your 1.19 client. If you know the correct command, please tell me.

Thank you for your report!
We're tracking this issue in MC-139908, 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

migrated

(Unassigned)

Unconfirmed

1.19

Retrieved