Hello,
I am creating a quest where I ask the player to kill x animals. pig, sheep, cow. The animal is drawn randomly. As I am French I would like to retrieve the French name of the randomly chosen animal. I suspect it must be with the 'name' attribute. But I don't know how to proceed.
Example: Example: "Could you kill for 4 pigs for me ?" -> "Pourriez vous tuer pour 4 cochons pour moi ?"
Can you help me?
#(JeanMarie) Retrieval of the name according to the language of the country.
24 messages · Page 1 of 1 (latest)
(JeanMarie) Retrieval of the name according to the language of the country.
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
!t <EntityTag.translated_name>
Returns the localized name of the entity.
Note that this is a magic Denizen tool - refer to !language Denizen Text Formatting.
Returns
ElementTag
about the rest of the message, afaik denizen doesn't have an auto-translator built into it, so you'll have to use custom resourcepacks
Yeah denizen doesn’t have a translator. But someone made a translation module and posted it in #showcase. Maybe that could be of use to you
Message link here: #showcase message
damn, even i forgot about that
yeah I did too since the pace of posts slowed down, but there are some gems in there
If you use a resource pack, you can add your own localization string and call them with this:
!t translate
!t &translate
Returns a special chat code that displays an autotranslated message.
For example: - narrate "Reward: <&translate[item.minecraft.diamond_sword]>"
Be warned that language keys change between Minecraft versions.
Note that this is a magic Denizen tool - refer to !language Denizen Text Formatting.
You can use !tag ElementTag.strip_color to convert the translated output to plain text (pre-translated).
Returns
ElementTag
Merci à tous