KyoriPowered / adventure

A user-interface library, formerly known as text, for Minecraft: Java Edition
https://docs.advntr.dev/
MIT License
678 stars 103 forks source link

Add a name/key to `TranslationArgument` #1037

Closed kezz closed 4 months ago

kezz commented 4 months ago

Whilst unused in vanilla, it would be a pretty handy feature to have. For example, #972 could have named arguments based on the names of a TranslationArgument.

zml2008 commented 4 months ago

I'm not super sure how I feel about this, since it'd go ahead of what the vanilla format can represent at this point in time -- virtual components are imo still the way forward for richer translations.

kezz commented 4 months ago

virtual components are imo still the way forward

I was actually playing about with virtual components on top of #972 and yeah, it does what we'd need for this anyway!