+ lang file

This commit is contained in:
Glitchlabs
2026-06-26 21:21:21 +02:00
parent e308b64f7a
commit 4c4e80da97
71 changed files with 68 additions and 855 deletions
@@ -37,5 +37,7 @@ public class DataGenerators {
generator.addProvider(event.includeClient(), new ModItemModelProvider(packOutput, existingFileHelper));
generator.addProvider(event.includeClient(), new ModBlockStateProvider(packOutput, existingFileHelper));
generator.addProvider(event.includeClient(), new ModLanguageProvider(packOutput));
}
}
@@ -0,0 +1,44 @@
package ovh.glitchlabs.ornamentum.datagen;
import net.minecraft.data.PackOutput;
import net.neoforged.neoforge.common.data.LanguageProvider;
import ovh.glitchlabs.ornamentum.Ornamentum;
import ovh.glitchlabs.ornamentum.blocks.ModBlocks;
import ovh.glitchlabs.ornamentum.items.ModItems;
public class ModLanguageProvider extends LanguageProvider {
public ModLanguageProvider(PackOutput output) {
super(output, Ornamentum.MODID, "en_us");
}
@Override
protected void addTranslations() {
// Blocks
add(ModBlocks.LIME_GLOW_STAINED_GLASS.get(), "Lime Glow Stained Glass");
add(ModBlocks.WHITE_GLOW_STAINED_GLASS.get(), "White Glow Stained Glass");
add(ModBlocks.GRAY_GLOW_STAINED_GLASS.get(), "Gray Glow Stained Glass");
add(ModBlocks.LIGHT_GRAY_GLOW_STAINED_GLASS.get(), "Light Gray Glow Stained Glass");
add(ModBlocks.BLACK_GLOW_STAINED_GLASS.get(), "Black Glow Stained Glass");
add(ModBlocks.BROWN_GLOW_STAINED_GLASS.get(), "Brown Glow Stained Glass");
add(ModBlocks.RED_GLOW_STAINED_GLASS.get(), "Red Glow Stained Glass");
add(ModBlocks.ORANGE_GLOW_STAINED_GLASS.get(), "Orange Glow Stained Glass");
add(ModBlocks.YELLOW_GLOW_STAINED_GLASS.get(), "Yellow Glow Stained Glass");
add(ModBlocks.GREEN_GLOW_STAINED_GLASS.get(), "Green Glow Stained Glass");
add(ModBlocks.CYAN_GLOW_STAINED_GLASS.get(), "Cyan Glow Stained Glass");
add(ModBlocks.LIGHT_BLUE_GLOW_STAINED_GLASS.get(), "Light Blue Glow Stained Glass");
add(ModBlocks.BLUE_GLOW_STAINED_GLASS.get(), "Blue Glow Stained Glass");
add(ModBlocks.PURPLE_GLOW_STAINED_GLASS.get(), "Purple Glow Stained Glass");
add(ModBlocks.MAGENTA_GLOW_STAINED_GLASS.get(), "Magenta Glow Stained Glass");
add(ModBlocks.PINK_GLOW_STAINED_GLASS.get(), "Pink Glow Stained Glass");
// Items
//add(ModItems.EXAMPLE_ITEM.get(), "Example Item");
// Creative Tab
//add("creativetab.ornamentum.ornamentum_tab", "Ornamentum");
// Messages
//add("message.ornamentum.test", "Hello World!");
}
}