mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Fixed race descriptions
This commit is contained in:
parent
52a4643ece
commit
03bb4f654c
1 changed files with 5 additions and 4 deletions
|
@ -13,6 +13,7 @@ import net.minecraft.server.command.ServerCommandSource;
|
||||||
import net.minecraft.text.MutableText;
|
import net.minecraft.text.MutableText;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
import net.minecraft.util.Formatting;
|
import net.minecraft.util.Formatting;
|
||||||
|
import net.minecraft.util.Identifier;
|
||||||
import net.minecraft.world.GameRules;
|
import net.minecraft.world.GameRules;
|
||||||
|
|
||||||
class SpeciesCommand {
|
class SpeciesCommand {
|
||||||
|
@ -101,11 +102,11 @@ class SpeciesCommand {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int describe(PlayerEntity player, Race species) {
|
static int describe(PlayerEntity player, Race species) {
|
||||||
String name = species.getTranslationKey();
|
Identifier id = Race.REGISTRY.getId(species);
|
||||||
|
|
||||||
player.sendMessage(Text.translatable(String.format("commands.race.describe.%s.1", name)).styled(s -> s.withColor(Formatting.YELLOW)), false);
|
player.sendMessage(Text.translatable(String.format("commands.race.describe.%s.%s.1", id.getNamespace(), id.getPath())).styled(s -> s.withColor(Formatting.YELLOW)), false);
|
||||||
player.sendMessage(Text.translatable(String.format("commands.race.describe.%s.2", name)), false);
|
player.sendMessage(Text.translatable(String.format("commands.race.describe.%s.%s.2", id.getNamespace(), id.getPath())), false);
|
||||||
player.sendMessage(Text.translatable(String.format("commands.race.describe.%s.3", name)).styled(s -> s.withColor(Formatting.RED)), false);
|
player.sendMessage(Text.translatable(String.format("commands.race.describe.%s.%s.3", id.getNamespace(), id.getPath())).styled(s -> s.withColor(Formatting.RED)), false);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue