mojira.dev
MC-276573

Spruce boat item translation key misspells "minecaft"

In a survival world by opening a chest in the spruce boat without entering it, a name like Chest or Chest in a spruce boat does not appear Instead appears a code 

Linked issues

Attachments

Comments 2

Looks valid to me, reproducible in singleplayer. Only applies to spruce boats. The translation key is misspelled as "minecaft"

Code analysis (Yarn mappings)

The BoatEntity.Type enum defines boat names separately rather than inheriting from an item as of Minecraft snapshot 24w36a. This is expressed as a translation key defined in the enum constructor.

The line defining spruce boats appears as follows:

SPRUCE(Items.SPRUCE_PLANKS, Items.SPRUCE_BOAT, "spruce", "item.minecaft.spruce_boat"),
SPRUCE(Items.SPRUCE_PLANKS, Items.SPRUCE_BOAT, "spruce", "item.minecaft.spruce_boat"),

To fix the error, the following line should be used instead (note the added r in minecraft):

SPRUCE(Items.SPRUCE_PLANKS, Items.SPRUCE_BOAT, "spruce", "item.minecraft.spruce_boat"),
SPRUCE(Items.SPRUCE_PLANKS, Items.SPRUCE_BOAT, "spruce", "item.minecraft.spruce_boat"),

V10___

rkullenius

Confirmed

Platform

Low

Text

24w36a, 24w37a

24w38a

Retrieved