#(JeanMarie) Retrieval of the name according to the language of the country.

24 messages · Page 1 of 1 (latest)

zealous iris
#

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?

novel sandalBOT
#

(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>

exotic kayak
#

!t <EntityTag.translated_name>

marble rapidsBOT
exotic kayak
#

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

hollow quartz
#

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

exotic kayak
#

damn, even i forgot about that

hollow quartz
#

yeah I did too since the pace of posts slowed down, but there are some gems in there

paper tulip
#

If you use a resource pack, you can add your own localization string and call them with this:

#

!t translate

marble rapidsBOT
# paper tulip !t translate
Cannot Specify Searched Tag

Multiple possible tags: <&translate[<key>]>, <EntityTag.translated_name>, <MaterialTag.translated_name>, <&translate[<key>].with[<text>|...]>.

paper tulip
#

!t &translate

marble rapidsBOT
# paper tulip !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

zealous iris
#

Merci à tous