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
relates to 1
Attachments
Comments 2
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"),
Looks valid to me, reproducible in singleplayer. Only applies to spruce boats. The translation key is misspelled as "minecaft"