Mojira Archive
MC-248838

The secret message displayed when executing "Searge" in command blocks is untranslatable

The Bug:

The secret message "#itzlipofutzli" displayed when executing "Searge" in command blocks is untranslatable and is missing a translation key.

This is a very trivial issue and doesn't affect regular gameplay in any shape, however, is an inconsistency nonetheless.

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 secret message displayed when executing "Searge" in command blocks is untranslatable.

Observed Behavior:

The secret message displayed when executing "Searge" in command blocks is untranslatable.

Expected Behavior:

The secret message displayed when executing "Searge" in 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 {
   ...
   public boolean performCommand(Level $l) {
      if (!$l.isClientSide && $l.getGameTime() != this.lastExecution) {
         if ("Searge".equalsIgnoreCase(this.command)) {
            this.lastOutput = new TextComponent("#itzlipofutzli");
            ...

If we look at the above class, we can see that the secret message displayed when executing "Searge" in command blocks is hardcoded, and as a result, is untranslatable. This is evident through the following piece of code:

new TextComponent("#itzlipofutzli")

Works As Intended

[Mod] Avoma

2022-02-27, 05:41 PM

2022-03-01, 08:16 AM

2022-03-01, 08:16 AM

0

1

Confirmed

(Unassigned)

1.18.1, 1.18.2 Release Candidate 1

-