Skip to content

Commit

Permalink
Add translations for item tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
Provismet committed May 27, 2024
1 parent ddcc2f1 commit fb3d5e3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/generated/assets/additional-armoury/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@
"item.additional-armoury.wooden_mace": "Wooden Mace",
"subtitles.additional-armoury.boomerang.throw": "Throws boomerang",
"subtitles.additional-armoury.staff.cast": "Casts spell",
"tag.item.additional-armoury.daggers": "Daggers",
"tag.item.additional-armoury.enchantable.boomerang": "Boomerang Enchantable",
"tag.item.additional-armoury.enchantable.daggers": "Dagger Enchantable",
"tag.item.additional-armoury.enchantable.maces": "Mace Enchantable",
"tag.item.additional-armoury.enchantable.staff": "Staff Enchantable",
"tag.item.additional-armoury.maces": "Maces",
"tooltip.additional-armoury.dagger_uses": "Remaining Splashes: %1$s",
"upgrade.additional-armoury.endernether_upgrade": "Endernether Upgrade",
"upgrade.additional-armoury.overnether_upgrade": "Overnether Upgrade"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.provismet.AdditionalArmoury.registries.AAItems;
import com.provismet.AdditionalArmoury.registries.AAStatusEffects;

import com.provismet.AdditionalArmoury.utility.AATags;
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import net.fabricmc.fabric.api.datagen.v1.provider.FabricLanguageProvider;
import net.minecraft.component.type.PotionContentsComponent;
Expand Down Expand Up @@ -137,6 +138,13 @@ public void generateTranslations (RegistryWrapper.WrapperLookup registryLookup,
LanguageGenerator.addAdvancement(translationBuilder, "tipped_dagger", "Rogue-Like", "Craft a potion-tipped Dagger");
LanguageGenerator.addAdvancement(translationBuilder, "overnether", "I Am Listening", "Get a full suit of Overnether armor");
LanguageGenerator.addAdvancement(translationBuilder, "endernether", "Part Of The Chorus", "Get a full suit of Endernether armor");

translationBuilder.add(AATags.ItemTags.DAGGERS, "Daggers");
translationBuilder.add(AATags.ItemTags.DAGGER_ENCHANTABLE, "Dagger Enchantable");
translationBuilder.add(AATags.ItemTags.MACES, "Maces");
translationBuilder.add(AATags.ItemTags.MACE_ENCHANTABLE, "Mace Enchantable");
translationBuilder.add(AATags.ItemTags.BOOMERANG_ENCHANTABLE, "Boomerang Enchantable");
translationBuilder.add(AATags.ItemTags.STAFF_ENCHANTABLE, "Staff Enchantable");
}

public static void addDagger (TranslationBuilder translationBuilder, DaggerItem dagger, String basename) {
Expand Down

0 comments on commit fb3d5e3

Please sign in to comment.