Translations
This commit is contained in:
parent
450b7d4205
commit
1dc2fea7e2
3 changed files with 7 additions and 1 deletions
|
@ -58,7 +58,7 @@ public class BaseAnvilItem extends BlockItem implements ItemModelProvider {
|
|||
BaseAnvilBlock block = (BaseAnvilBlock) ((BaseAnvilItem) itemStack.getItem()).getBlock();
|
||||
int maxValue = block.getMaxDurability() * 3;
|
||||
float damage = maxValue - destruction;
|
||||
String percents = String.format(Locale.ROOT, "%.0F%%", damage);
|
||||
String percents = String.format(Locale.ROOT, "%.0f%%", damage);
|
||||
list.add(new TranslatableComponent("message.bclib.anvil_damage").append(": " + percents));
|
||||
}
|
||||
}
|
||||
|
|
3
src/main/resources/assets/bclib/lang/en_us.json
Normal file
3
src/main/resources/assets/bclib/lang/en_us.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"message.bclib.anvil_damage": "§cDamage"
|
||||
}
|
3
src/main/resources/assets/bclib/lang/ru_ru.json
Normal file
3
src/main/resources/assets/bclib/lang/ru_ru.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"message.bclib.anvil_damage": "§cПовреждение"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue