Mojira Archive
MC-248823

The default symbol used for the names of command blocks is untranslatable

The Bug:

The "@" symbol used for the default names of command blocks is untranslatable and is missing a translation key.

This is a problem because every other string throughout the game that contains a singular symbol such as ";" and "=", is translatable, therefore introducing an inconsistency.

Steps to Reproduce:

  • Attempt to search for the existence of this string by using this search filter on the official Minecraft crowdin project.
  • Take note as to whether or not the default symbol used for the names of command blocks is untranslatable.

Observed Behavior:

The default symbol used for the names of command blocks is untranslatable.

Expected Behavior:

The default symbol used for the names of command blocks would be translatable.

Code Analysis:

Code analysis by [Mod] Avoma can be found below.

The following is based on a decompiled version of Minecraft 1.18.1 using MCP-Reborn.

net.minecraft.world.level.BaseCommandBlock.java
public abstract class BaseCommandBlock implements CommandSource {
   ...
   private static final Component DEFAULT_NAME = new TextComponent("@");
   ...

If we look at the above class, we can see that the default symbol used for the names of command blocks is hardcoded, and as a result, is untranslatable. This is evident through the following piece of code:

new TextComponent("@")

Works As Intended

[Mod] Avoma

2022-02-26, 08:15 PM

2022-03-08, 08:16 AM

2022-03-08, 08:16 AM

3

1

Community Consensus

(Unassigned)

1.18.1, 1.18.2 Release Candidate 1, 1.18.2

-