Minecraft Blogs / Tutorial

Breaking the language barrier [English & Spanish]

  • 1,038 views, 2 today
  • 6
  • 6
  • 8
Matias35v's Avatar Matias35v
Level 13 : Journeyman Fisherman
4
Select your language:
English
English:
undefined
An idea occured to me for breaking those language barriers that are in the maps, as simple as a command "scoreboard".
It consists of putting a number to each language, in this case;
"1" = English
"2" = Spanish
(In my tests I had problems using the number 0)
To form this alone we would have to put the command:
/scoreboard objectives add language dummy

Later, to make a system in which the player can change the value from "1" to "2" or vice versa, corresponding to his language, such as, for example, a button that says English and executes the command:
/scoreboard players set @a language 1

and one that says Spanish with the following:
/scoreboard players set @a language 2

Breaking the language barrier [English & Spanish]
With this we would have the basis in which the player has already selected his language; now comes the difficult part.
Each time your map shows text from a command block, you will have to have two command blocks connected to the same redstone signal.
Each one of them will be in a different language.
How do we make it that we can see on ourselves the selected language?
For example, if the command were:
/tellraw @a "Hello"

We are going to change it to these two commands :
/tellraw @a[score_language=1] "Hello"
/tellraw @a[score_language_min=2] "Hola"

Breaking the language barrier [English & Spanish]
Thanks for reading
if you have any doubts, discuss it here below
Spanish
Español:
undefined
Se me ocurrió una idea para romper esas barreras de idioma que hay en los mapas, tan simple como un comando "scoreboard".
Consiste en ponerle un numero a cada idioma, en este caso;
"1" = Español
"2" = Ingles
(En mis pruebas tenia problemas usando el numero 0)
Para formar esto solo tendríamos que poner el comando:
/scoreboard objectives add language dummy

Luego hacer un sistema en el que el jugador pueda cambiar el valor de "1" a "2" o viceversa correspondiendo a su idioma, como por ejemplo, un botón que diga Ingles y ejecute el comando:
/scoreboard players set @a language 1

y uno que diga Español con el siguiente:
/scoreboard players set @a language 2


Con esto ya tendríamos la base en el que el jugador ya selecciono su idioma, ahora viene la parte difícil.
Cada vez que tu mapa muestre texto desde un command block, tendras que tenes dos commands blocks conectados a la misma señal de redstone.
Cada uno de ellos estará en un idioma distinto.
¿Como hacemos que solo vean el del idioma que seleccionaron?
Por ejemplo, si el comando era:
/tellraw @a "Hola"

Puede ser cualquier comando que le muestre texto al jugador
Lo vamos a cambiar por estos dos comandos :
/tellraw @a[score_language=1] "Hello"
/tellraw @a[score_language_min=2] "Hola"


Gracias por leer.
Si tienen alguna duda no duden en comentarla aquí abajo.

Maps with this concept


undefined

CreditTranslate: Duolingo :D
Tags

8 Update Logs

Update #8 : by Matias35v 07/17/2018 5:02:36 amJul 17th, 2018

adapt to new minecraft version
LOAD MORE LOGS

Create an account or sign in to comment.

1
04/22/2014 11:25 am
Level 1 : New Explorer
ScorpionDesign
ScorpionDesign's Avatar
I have an idea: why not have two signs: one with the english, one with the spanish on it.
simples.
1
04/22/2014 6:10 pm
Level 13 : Journeyman Fisherman
Matias35v
Matias35v's Avatar
Signs are boring, these new versions, with all tellraw command is more colorful and fun.
1
04/22/2014 10:12 am
Level 75 : Legendary Ninja
Pandasaurus_R
Pandasaurus_R's Avatar
Very good tutorial, but I noticed someone flagged you there and I think it's because of update log abuse. Try not to post so many unecessary updates.
1
04/22/2014 6:12 pm
Level 13 : Journeyman Fisherman
Matias35v
Matias35v's Avatar
Yes, I hope you will forgive me for that, I am new to the community, did not know what was the role that. :S
1
04/21/2014 7:11 am
Level 21 : Expert Pokemon
Epikface
Epikface's Avatar
Going to use this
1
04/21/2014 8:36 am
Level 13 : Journeyman Fisherman
Matias35v
Matias35v's Avatar
:D Nice! When you finish, you could give me the link and I will publish in the blog
1
04/20/2014 6:12 pm
Level 17 : Journeyman Scribe
Mechanical Wolf
Mechanical Wolf's Avatar
This helps a lot for adventure map makers who might wanna add a few language options. Just a note though: in the /tell raw commands you forgot to add the part with @a or @p
1
04/20/2014 6:16 pm
Level 13 : Journeyman Fisherman
Matias35v
Matias35v's Avatar
Thank you, It happened to me while I tried to translate it xD
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome