Crying Ghasts (Forge)

Crying Ghasts (Forge)

273k Downloads

[1.20.5+] Name tags dropped don't work

donottellmetonottellyou opened this issue ยท 3 comments

commented

Information

Minecraft version: 1.20.5-1.20.6
Modloader: Fabric
Fabric loader version: 0.15.11
Environment: Singleplayer

Mod name: Name Tag Tweaks
Mod version: 3.4

Description

In 1.20.5, changes were made to the datapack format which haven't been added to the Name Tag page on Minecraft Wiki as of yet. (I believe this is the first version with this issue, but I haven't tested it). You can see the full changes here.

image

The change is that minecraft:item_name is no longer used for Name Tag naming. Instead, you must use minecraft:custom_name. As you can see in the following image, the Name Tag with the name of "Ernest", which came from a poor villager, is using item_name. It cannot be used to name anybody else Ernest, because Minecraft treats it like it doesn't have a name (as indeed it doesn't have a custom_name). However, the Name Tag with the name of "frog" (which I named on an anvil) properly uses custom_name, and therefore can be used to name a Mob.

2024-05-09_21 34 25

Note that you can tell if an item has a custom_name as opposed to a item_name, because the custom_name defaults to being italic. I haven't modded Minecraft myself, so I don't know if this is an issue you can fix or if this is because of Fabric Loader's datapack generation.

image
image

Thank you for providing your free mods!

commented

Thank you for opening the issue and for the detailed description of the problem! It was difficult porting all the mods to the new data format. I have just uploaded version 3.5 of Name Tag Tweaks which correctly uses the custom_name field. Appreciate it.

https://curseforge.com/minecraft/mc-mods/name-tag-tweaks/files

commented

I just tested 1.20.4, and it appears that the bug doesn't exist there.

commented

Turns out, custom_name actually was the original tag and is still the default, so not sure why the mod would use the non-default item_name.