Mojira Archive
MC-253638

The symbols used within shulker box tooltips to show random loot table contents are untranslatable

The Bug:

The "???????" symbols that are used within shulker box tooltips to show random loot table contents are missing a translation key. Every other string throughout the game that contains the "?" symbol allows it to be correctly translatable, therefore introducing an inconsistency.

If you wish to display this string of text in-game, you can run the following command provided below and observe the tooltip of the shulker box.

/give @s minecraft:shulker_box{BlockEntityTag:{LootTable:"minecraft:chests/simple_dungeon"}}

Steps to Reproduce:

  1. Attempt to search for the existence of this string by using this search filter on the official Minecraft crowdin project.
  2. Take note as to whether or not the symbols used within shulker box tooltips to show random loot table contents are untranslatable.

Observed Behavior:

The symbols used within shulker box tooltips to show random loot table contents are untranslatable.

Expected Behavior:

The symbols used within shulker box tooltips to show random loot table contents 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.19.1 Release Candidate 1 using Mojang mappings.

net.minecraft.world.level.block.ShulkerBoxBlock.java
public class ShulkerBoxBlock extends BaseEntityBlock {
   ...
   @Override
   public void appendHoverText(ItemStack itemStack, @Nullable BlockGetter blockGetter, List<Component> list, TooltipFlag tooltipFlag) {
      super.appendHoverText(itemStack, blockGetter, list, tooltipFlag);
      CompoundTag compoundTag = BlockItem.getBlockEntityData(itemStack);
      if (compoundTag != null) {
         if (compoundTag.contains("LootTable", 8)) {
            list.add(Component.literal("???????"));
         }
         ...

If we look at the above class, we can see that the symbols used within shulker box tooltips to show random loot table contents are hardcoded, and as a result, are untranslatable. This is evident through the following line of code:

list.add(Component.literal("???????"));

Fixed

[Mod] Avoma

[Mojang] slicedlime

2022-06-27, 09:26 AM

2023-09-01, 11:26 AM

2023-09-01, 11:26 AM

4

2

Confirmed

Low

Internationalisation

shulker_box, translatability

1.19 - 1.20.11.19, 1.19.1 Release Candidate 1, 1.19.1 Pre-release 2, 1.19.1 Pre-release 5, 1.19.1 Release Candidate 2, 1.19.1, 1.19.2, 22w43a, 22w45a, 1.19.3, 1.19.4, 1.20.1

1.20.2 Pre-release 1