// Path: src/main/java/com/legobmw99/allomancy/Allomancy.java
// @Mod(Allomancy.MODID)
// public class Allomancy {
// 
//     public static final String MODID = "allomancy";
//     public static final CreativeModeTab allomancy_group = new CreativeModeTab(MODID) {
//         @Override
//         public ItemStack makeIcon() {
//             return new ItemStack(CombatSetup.MISTCLOAK.get());
//         }
//     };
// 
//     public static final Logger LOGGER = LogManager.getLogger();
// 
//     public static Allomancy instance;
// 
//     public Allomancy() {
//         instance = this;
//         // Register our setup events on the necessary buses
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(Allomancy::init);
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(Allomancy::clientInit);
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(AllomancyConfig::onLoad);
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(AllomancyConfig::onReload);
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(PowersClientSetup::registerParticle);
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(AllomancerCapability::registerCapability);
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(CombatClientSetup::registerEntityRenders);
// 
//         MinecraftForge.EVENT_BUS.addListener(Allomancy::registerCommands);
//         MinecraftForge.EVENT_BUS.addListener(EventPriority.HIGH, OreGenerator::registerGeneration);
// 
//         // Register all Registries
//         PowersSetup.register();
//         CombatSetup.register();
//         ConsumeSetup.register();
//         MaterialsSetup.register();
//         ExtrasSetup.register();
// 
//         AllomancyConfig.register();
// 
//     }
// 
//     public static Item.Properties createStandardItemProperties() {
//         return new Item.Properties().tab(allomancy_group).stacksTo(64);
//     }
// 
//     public static Item createStandardItem() {
//         return new Item(createStandardItemProperties());
//     }
// 
// 
//     public static MutableComponent addColorToText(String translationKey, ChatFormatting color) {
//         MutableComponent lore = new TranslatableComponent(translationKey);
//         return addColor(lore, color);
//     }
// 
//     public static MutableComponent addColorToText(String translationKey, ChatFormatting color, Object... fmting) {
//         MutableComponent lore = new TranslatableComponent(translationKey, fmting);
//         return addColor(lore, color);
//     }
// 
//     private static MutableComponent addColor(MutableComponent text, ChatFormatting color) {
//         text.setStyle(text.getStyle().withColor(TextColor.fromLegacyFormat(color)));
//         return text;
//     }
// 
//     public static void clientInit(final FMLClientSetupEvent e) {
//         PowersSetup.clientInit(e);
//     }
// 
//     public static void registerCommands(final RegisterCommandsEvent e) {
//         PowersSetup.registerCommands(e);
//     }
// 
//     public static void init(final FMLCommonSetupEvent e) {
//         PowersSetup.init(e);
//         MaterialsSetup.init(e);
//         Network.registerPackets();
//     }
// }


import com.legobmw99.allomancy.Allomancy;
import net.minecraft.data.DataGenerator;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.forge.event.lifecycle.GatherDataEvent;
package com.legobmw99.allomancy.datagen;


@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class DataGenerators {

    @SubscribeEvent
    public static void gatherData(GatherDataEvent event) {
        DataGenerator generator = event.getGenerator();
        if (event.includeServer()) {
            generator.addProvider(new Recipes(generator));
            generator.addProvider(new LootTables(generator));
// Path: src/main/java/com/legobmw99/allomancy/Allomancy.java
// @Mod(Allomancy.MODID)
// public class Allomancy {
// 
//     public static final String MODID = "allomancy";
//     public static final CreativeModeTab allomancy_group = new CreativeModeTab(MODID) {
//         @Override
//         public ItemStack makeIcon() {
//             return new ItemStack(CombatSetup.MISTCLOAK.get());
//         }
//     };
// 
//     public static final Logger LOGGER = LogManager.getLogger();
// 
//     public static Allomancy instance;
// 
//     public Allomancy() {
//         instance = this;
//         // Register our setup events on the necessary buses
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(Allomancy::init);
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(Allomancy::clientInit);
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(AllomancyConfig::onLoad);
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(AllomancyConfig::onReload);
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(PowersClientSetup::registerParticle);
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(AllomancerCapability::registerCapability);
//         FMLJavaModLoadingContext.get().getModEventBus().addListener(CombatClientSetup::registerEntityRenders);
// 
//         MinecraftForge.EVENT_BUS.addListener(Allomancy::registerCommands);
//         MinecraftForge.EVENT_BUS.addListener(EventPriority.HIGH, OreGenerator::registerGeneration);
// 
//         // Register all Registries
//         PowersSetup.register();
//         CombatSetup.register();
//         ConsumeSetup.register();
//         MaterialsSetup.register();
//         ExtrasSetup.register();
// 
//         AllomancyConfig.register();
// 
//     }
// 
//     public static Item.Properties createStandardItemProperties() {
//         return new Item.Properties().tab(allomancy_group).stacksTo(64);
//     }
// 
//     public static Item createStandardItem() {
//         return new Item(createStandardItemProperties());
//     }
// 
// 
//     public static MutableComponent addColorToText(String translationKey, ChatFormatting color) {
//         MutableComponent lore = new TranslatableComponent(translationKey);
//         return addColor(lore, color);
//     }
// 
//     public static MutableComponent addColorToText(String translationKey, ChatFormatting color, Object... fmting) {
//         MutableComponent lore = new TranslatableComponent(translationKey, fmting);
//         return addColor(lore, color);
//     }
// 
//     private static MutableComponent addColor(MutableComponent text, ChatFormatting color) {
//         text.setStyle(text.getStyle().withColor(TextColor.fromLegacyFormat(color)));
//         return text;
//     }
// 
//     public static void clientInit(final FMLClientSetupEvent e) {
//         PowersSetup.clientInit(e);
//     }
// 
//     public static void registerCommands(final RegisterCommandsEvent e) {
//         PowersSetup.registerCommands(e);
//     }
// 
//     public static void init(final FMLCommonSetupEvent e) {
//         PowersSetup.init(e);
//         MaterialsSetup.init(e);
//         Network.registerPackets();
//     }
// }


// Path: src/main/java/com/legobmw99/allomancy/datagen/DataGenerators.java
import com.legobmw99.allomancy.Allomancy;
import net.minecraft.data.DataGenerator;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.forge.event.lifecycle.GatherDataEvent;

package com.legobmw99.allomancy.datagen;


@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class DataGenerators {

    @SubscribeEvent
    public static void gatherData(GatherDataEvent event) {
        DataGenerator generator = event.getGenerator();
        if (event.includeServer()) {
            generator.addProvider(new Recipes(generator));
            generator.addProvider(new LootTables(generator));
            BlockTags blocktags = new BlockTags(generator, Allomancy.MODID, event.getExistingFileHelper());