You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Component#replaceText does not seem to behave as one would expect, it appears it is appending the resulting replaced component to the original component, but this does not seem to happen on nested hover event TextComponents, I wouldn't know about other components (translatable, NBT, selectors, etc) or any other specifics about this issue (mainly because I want to waste as little time as possible, but I'll gladly try out other possibilities if needed!!).
This is what it looks like for playerprofiles load <profile> as only element in replacements (in the case of the hovered event).
I would expect to see /playerprofiles load <profile> like in the hover message, not /{0}/playerprofiles load <profile>.
Description
Component#replaceText
does not seem to behave as one would expect, it appears it is appending the resulting replaced component to the original component, but this does not seem to happen on nested hover eventTextComponent
s, I wouldn't know about other components (translatable, NBT, selectors, etc) or any other specifics about this issue (mainly because I want to waste as little time as possible, but I'll gladly try out other possibilities if needed!!).This is what it looks like for
playerprofiles load <profile>
as only element inreplacements
(in the case of the hovered event).I would expect to see
/playerprofiles load <profile>
like in the hover message, not/{0}/playerprofiles load <profile>
.Sample Code
Environment info:
The text was updated successfully, but these errors were encountered: