diff --git a/src/main/java/com/jaquadro/minecraft/storagedrawers/block/BlockDrawers.java b/src/main/java/com/jaquadro/minecraft/storagedrawers/block/BlockDrawers.java index 99476b72e..16241fddb 100644 --- a/src/main/java/com/jaquadro/minecraft/storagedrawers/block/BlockDrawers.java +++ b/src/main/java/com/jaquadro/minecraft/storagedrawers/block/BlockDrawers.java @@ -33,6 +33,7 @@ import net.minecraft.util.math.shapes.VoxelShape; import net.minecraft.util.text.ITextComponent; import net.minecraft.util.text.StringTextComponent; +import net.minecraft.util.text.TranslationTextComponent; import net.minecraft.world.IBlockReader; import net.minecraft.world.World; import net.minecraft.world.storage.loot.LootContext; @@ -331,7 +332,7 @@ else if (StorageDrawers.config.cache.enableDrawerUI) { { @Override public ITextComponent getDisplayName () { - return new StringTextComponent("Drawer UI"); + return new TranslationTextComponent(getTranslationKey()); } @Nullable diff --git a/src/main/java/com/jaquadro/minecraft/storagedrawers/item/ItemKey.java b/src/main/java/com/jaquadro/minecraft/storagedrawers/item/ItemKey.java index bfad9ed5c..13037b631 100644 --- a/src/main/java/com/jaquadro/minecraft/storagedrawers/item/ItemKey.java +++ b/src/main/java/com/jaquadro/minecraft/storagedrawers/item/ItemKey.java @@ -17,6 +17,7 @@ import net.minecraft.util.ActionResultType; import net.minecraft.util.math.BlockPos; import net.minecraft.util.text.ITextComponent; +import net.minecraft.util.text.TextFormatting; import net.minecraft.util.text.TranslationTextComponent; import net.minecraft.world.World; import net.minecraftforge.api.distmarker.Dist; @@ -45,7 +46,7 @@ public boolean canPlayerBreakBlockWhileHolding(BlockState state, World worldIn, @OnlyIn(Dist.CLIENT) public void addInformation (ItemStack stack, @Nullable World worldIn, List tooltip, ITooltipFlag flagIn) { super.addInformation(stack, worldIn, tooltip, flagIn); - tooltip.add(getDescription()); + tooltip.add(getDescription().applyTextStyle(TextFormatting.GRAY)); } @OnlyIn(Dist.CLIENT) diff --git a/src/main/java/com/jaquadro/minecraft/storagedrawers/item/ItemUpgrade.java b/src/main/java/com/jaquadro/minecraft/storagedrawers/item/ItemUpgrade.java index dbbd06cca..89e6c138a 100644 --- a/src/main/java/com/jaquadro/minecraft/storagedrawers/item/ItemUpgrade.java +++ b/src/main/java/com/jaquadro/minecraft/storagedrawers/item/ItemUpgrade.java @@ -4,6 +4,7 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.text.ITextComponent; +import net.minecraft.util.text.TextFormatting; import net.minecraft.util.text.TranslationTextComponent; import net.minecraft.world.World; import net.minecraftforge.api.distmarker.Dist; @@ -42,7 +43,7 @@ public int getUpgradeGroup() { @Override @OnlyIn(Dist.CLIENT) public void addInformation (@Nonnull ItemStack itemStack, @Nullable World world, List list, ITooltipFlag advanced) { - list.add(getDescription()); + list.add(getDescription().applyTextStyle(TextFormatting.GRAY)); } @OnlyIn(Dist.CLIENT) diff --git a/src/main/java/com/jaquadro/minecraft/storagedrawers/item/ItemUpgradeStorage.java b/src/main/java/com/jaquadro/minecraft/storagedrawers/item/ItemUpgradeStorage.java index 0b7bd1449..5d1096f78 100644 --- a/src/main/java/com/jaquadro/minecraft/storagedrawers/item/ItemUpgradeStorage.java +++ b/src/main/java/com/jaquadro/minecraft/storagedrawers/item/ItemUpgradeStorage.java @@ -31,6 +31,6 @@ protected ItemUpgradeStorage (EnumUpgradeStorage level, Item.Properties properti @OnlyIn(Dist.CLIENT) protected ITextComponent getDescription() { int mult = CommonConfig.UPGRADES.getLevelMult(level.getLevel()); - return new TranslationTextComponent(this.getTranslationKey() + ".desc", mult); + return new TranslationTextComponent("item.storagedrawers.storage_upgrade.desc", mult); } } diff --git a/src/main/resources/assets/storagedrawers/lang/en_us.json b/src/main/resources/assets/storagedrawers/lang/en_us.json index 5778e5603..53602f58e 100644 --- a/src/main/resources/assets/storagedrawers/lang/en_us.json +++ b/src/main/resources/assets/storagedrawers/lang/en_us.json @@ -52,17 +52,29 @@ "container.storagedrawers.upgrades": "Upgrades", + "item.storagedrawers.storage_upgrade.desc": "Increases storage by %d times base value", "item.storagedrawers.obsidian_storage_upgrade": "Storage Upgrade (I)", "item.storagedrawers.iron_storage_upgrade": "Storage Upgrade (II)", "item.storagedrawers.gold_storage_upgrade": "Storage Upgrade (III)", "item.storagedrawers.diamond_storage_upgrade": "Storage Upgrade (IV)", "item.storagedrawers.emerald_storage_upgrade": "Storage Upgrade (V)", + "item.storagedrawers.one_stack_upgrade": "Storage Downgrade", + "item.storagedrawers.one_stack_upgrade.desc": "Reduces base storage to a single stack", "item.storagedrawers.void_upgrade": "Void Upgrade", + "item.storagedrawers.void_upgrade.desc": "Destroys excess items", "item.storagedrawers.creative_storage_upgrade": "Creative Storage Upgrade", + "item.storagedrawers.creative_storage_upgrade.desc": "Near-infinite storage", "item.storagedrawers.creative_vending_upgrade": "Creative Vending Upgrade", + "item.storagedrawers.creative_vending_upgrade.desc": "Unlimited item withdrawal", + "item.storagedrawers.conversion_upgrade": "Conversion Upgrade", + "item.storagedrawers.conversion_upgrade.desc": "Auto-converts compatible items", "item.storagedrawers.redstone_upgrade": "Redstone Upgrade", + "item.storagedrawers.redstone_upgrade.desc": "Emits signal for total storage", "item.storagedrawers.min_redstone_upgrade": "Min Redstone Upgrade", + "item.storagedrawers.min_redstone_upgrade.desc": "Emits signal for least full slot", "item.storagedrawers.max_redstone_upgrade": "Max Redstone Upgrade", + "item.storagedrawers.max_redstone_upgrade.desc": "Emits signal for most full slot", + "item.storagedrawers.upgrade_template": "Upgrade Template", "item.storagedrawers.drawer_key": "Drawer Key", "item.storagedrawers.drawer_key.desc": "Locks and unlocks drawers\nHold in off-hand to lock newly-placed drawers", "item.storagedrawers.shroud_key": "Concealment Key",