#Use chat component outside chat

1 messages · Page 1 of 1 (latest)

torpid arch
#

How to use chat component outside of chat?

on jump:
    set {_ingredient} to translate component from iron sword
    send component {_ingredient} to player
    give iron sword named "%{_ingredient}%" to player

send component {_ingredient} to player will send translated name, but
give iron sword named "%{_ingredient}%" to player gives an iron sword named "Iron Sword" instead of being translated. 🤔

knotty silo
#

Really cool question, I have no idea about this but don't you have to specify how to translate, ig language

torpid arch
# knotty silo Really cool question, I have no idea about this but don't you have to specify ho...

No, the point of translate component is to translate to the language of the client viewing the text, that's the whole purpose of this.
It's like having a vanilla Iron Sword in your inventory, if it wasn't renamed in an anvil, then it will be in your language. If my Minecraft is Chinese, I will see "澤拉茲尼·米茨", if it's in Russian, I will see "Желязный меч", while for you it will be "épée de fer" because you are playing the game in French.

dry kite
#

Oh that is really interesting! I didn't know about that, I guess I need to hurry and finish school then read all the new Minecraft stuff.

torpid arch
dry kite
#

Thanks for sharing, I just didn't really know about the translating component, but it is pretty cool!