Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
File for MMB's Multilanguage Support
// Creeper
if (key == "mmb.creeper.type.name") {
return "Type";
}
if (key == "mmb.creeper.type.normal.name") {
return "Normal";
}
if (key == "mmb.creeper.type.charged.name") {
return "Charged";
}
// Iron Golem
if (key == "mmb.ironGolem.type.name") {
return "Type";
}
if (key == "mmb.ironGolem.type.normal.name") {
return "Normal";
}
if (key == "mmb.ironGolem.type.playerCreated.name") {
return "Player Created";
}
if (key == "mmb.ironGolem.actions.name") {
return "Actions";
}
if (key == "mmb.ironGolem.actions.offerFlower.name") {
return "Offer flower";
}
// Sheep
if (key == "mmb.sheep.color.name") {
return "Color";
}
if (key == "mmb.sheep.color.white.name") {
return "White";
}
if (key == "mmb.sheep.color.orange.name") {
return "Orange";
}
if (key == "mmb.sheep.color.magenta.name") {
return "Magenta";
}
if (key == "mmb.sheep.color.lightBlue.name") {
return "Light Blue";
}
if (key == "mmb.sheep.color.yellow.name") {
return "Yellow";
}
if (key == "mmb.sheep.color.lime.name") {
return "Lime";
}
if (key == "mmb.sheep.color.pink.name") {
return "Pink";
}
if (key == "mmb.sheep.color.gray.name") {
return "Gray";
}
if (key == "mmb.sheep.color.lightGray.name") {
return "Light gray";
}
if (key == "mmb.sheep.color.cyan.name") {
return "Cyan";
}
if (key == "mmb.sheep.color.purple.name") {
return "Purple";
}
if (key == "mmb.sheep.color.blue.name") {
return "Blue";
}
if (key == "mmb.sheep.color.brown.name") {
return "Brown";
}
if (key == "mmb.sheep.color.green.name") {
return "Green";
}
if (key == "mmb.sheep.color.red.name") {
return "Red";
}
if (key == "mmb.sheep.color.black.name") {
return "Black";
}
if (key == "mmb.sheep.type.name") {
return "Type";
}
if (key == "mmb.sheep.type.sheared.name") {
return "Sheared";
}
if (key == "mmb.sheep.type.normal.name") {
return "Normal";
}
if (key == "mmb.sheep.age.name") {
return "Age";
}
if (key == "mmb.sheep.age.child.name") {
return "Child";
}
if (key == "mmb.sheep.age.adult.name") {
return "Adult";
}
// Skeleton
if (key == "mmb.skeleton.type.name") {
return "Type";
}
if (key == "mmb.skeleton.type.normal.name") {
return "Normal";
}
if (key == "mmb.skeleton.type.wither.name") {
return "Wither";
}
// Slime
if (key == "mmb.slime.size.name") {
return "Slime Size";
}
// Snow Golem
if (key == "mmb.snowGolem.type.name") {
return "Type";
}
if (key == "mmb.snowGolem.type.normal.name") {
return "Normal";
}
if (key == "mmb.snowGolem.type.derp.name") {
return "Derp";
}
// Villager
if (key == "mmb.villager.profession.name") {
return "Profession";
}
if (key == "mmb.villager.profession.farmer.name") {
return "Farmer";
}
if (key == "mmb.villager.profession.librarian.name") {
return "Librarian";
}
if (key == "mmb.villager.profession.priest.name") {
return "Priest";
}
if (key == "mmb.villager.profession.smith.name") {
return "Smith";
}
if (key == "mmb.villager.profession.butcher.name") {
return "Butcher";
}
if (key == "mmb.villager.age.name") {
return "Age";
}
if (key == "mmb.villager.age.child.name") {
return "Child";
}
if (key == "mmb.villager.age.adult.name") {
return "Adult";
}
// Zombie
if (key == "mmb.zombie.age.name") {
return "Age";
}
if (key == "mmb.zombie.age.child.name") {
return "Child";
}
if (key == "mmb.zombie.age.adult.name") {
return "Adult";
}
// Zombie Villager
if (key == "mmb.zombieVillager.profession.name") {
return "Profession";
}
if (key == "mmb.zombieVillager.profession.farmer.name") {
return "Farmer";
}
if (key == "mmb.zombieVillager.profession.librarian.name") {
return "Librarian";
}
if (key == "mmb.zombieVillager.profession.priest.name") {
return "Priest";
}
if (key == "mmb.zombieVillager.profession.smith.name") {
return "Smith";
}
if (key == "mmb.zombieVillager.profession.butcher.name") {
return "Butcher";
}
if (key == "mmb.zombieVillager.age.name") {
return "Age";
}
if (key == "mmb.zombieVillager.age.child.name") {
return "Child";
}
if (key == "mmb.zombieVillager.age.adult.name") {
return "Adult";
}
else {
return "undefined";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.