<commit_before>package tehnut.resourceful.crops.util;

import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.registry.GameData;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import tehnut.resourceful.crops.base.Seed;
import tehnut.resourceful.crops.base.SeedBuilder;
import tehnut.resourceful.crops.registry.SeedRegistry;
import tehnut.resourceful.crops.util.serialization.SeedCreator;

import java.awt.*;
import java.util.ArrayList;
import java.util.List;

public class StartupUtils {

    private static List<Seed> defaultSeeds = new ArrayList<Seed>();

    public static void initDefaults() {
        
        // Tier 1
        addDefaultSeedOre(makeSeed("Inky", 1, 4, "dyeBlack", new ItemStack(getOreStack("dyeBlack").getItem(), 8, getOreStack("dyeBlack").getItemDamage()), new Color(22, 22, 22)), "dyeBlack");
        addDefaultSeed(makeSeed("Fleshy", 1, 4, getItemString(Items.rotten_flesh), new ItemStack(Items.rotten_flesh, 8), new Color(255, 160, 136)));
        addDefaultSeed(makeSeed("Feathery", 1, 4, getItemString(Items.feather), new ItemStack(Items.feather, 8), new Color(208, 203, 199)));
        // Tier 2
        addDefaultSeedOre(makeSeed("Tin", 2, 4, "ingotTin", new ItemStack(getOreStack("ingotTin").getItem(), 8, getOreStack("ingotTin").getItemDamage()), new Color(135, 154, 168)), "ingotTin");
        addDefaultSeedOre(makeSeed("Copper", 2, 4, "ingotCopper", new ItemStack(getOreStack("ingotCopper").getItem(), 8, getOreStack("ingotCopper").getItemDamage()), new Color(204, 102, 51)), "ingotCopper");
        addDefaultSeedOre(makeSeed("Aluminum", 2, 4, "ingotAluminum", new ItemStack(getOreStack("ingotAluminum").getItem(), 8, getOreStack("ingotAluminum").getItemDamage()), new Color(198, 206, 130)), "ingotAluminum");
        addDefaultSeedOre(makeSeed("Zinc", 2, 4, "ingotZinc", new ItemStack(getOreStack("ingotZinc").getItem(), 8, getOreStack("ingotZinc").getItemDamage()), new Color(192, 176, 182)), "ingotZinc");
        addDefaultSeed(makeSeed("Coal", 2, 4, getItemString(Items.coal), new ItemStack(Items.coal, 8), new Color(45, 44, 47)));
        addDefaultSeed(makeSeed("Charcoal", 2, 4, getItemString(Items.coal, 1), new ItemStack(Items.coal, 8, 1), new Color(45, 44, 47)));
        addDefaultSeedOre(makeSeed("Saltpeter", 2, 4, "dustSaltpeter", new ItemStack(getOreStack("dustSaltpeter").getItem(), 8, getOreStack("dustSaltpeter").getItemDamage()), new Color(182, 197, 212)), "dustSaltpeter");
        addDefaultSeedOre(makeSeed("Salt", 2, 4, "dustSalt", new ItemStack(getOreStack("dustSalt").getItem(), 8, getOreStack("dustSalt").getItemDamage()), new Color(182, 197, 212)), "dustSalt");
        addDefaultSeed(makeSeed("Leathery", 2, 4, getItemString(Items.leather), new ItemStack(Items.leather, 8), new Color(255, 68, 17)));
        addDefaultSeed(makeSeed("Stringy", 2, 4, getItemString(Items.string), new ItemStack(Items.string, 8), new Color(241, 255, 210)));
        addDefaultSeed(makeSeed("Boney", 2, 4, getItemString(Items.bone), new ItemStack(Items.bone, 8), new Color(255, 240, 205)));
        addDefaultSeed(makeSeed("Slimey", 2, 4, getItemString(Items.slime_ball), new ItemStack(Items.slime_ball, 8), new Color(62, 255, 119)));
        //Tier 3
        addDefaultSeed(makeSeed("Blaze", 3, 4, getItemString(Items.blaze_rod), new ItemStack(Items.blaze_rod, 8), new Color(255, 215, 66)));
        addDefaultSeedOre(makeSeed("Iron", 3, 4, "ingotIron", new ItemStack(getOreStack("ingotIron").getItem(), 8, getOreStack("ingotIron").getItemDamage()), new Color(159, 156, 160)), "ingotIron");
        addDefaultSeedOre(makeSeed("Gold", 3, 4, "ingotGold", new ItemStack(getOreStack("ingotGold").getItem(), 8, getOreStack("ingotGold").getItemDamage()), new Color(255, 255, 0)), "ingotGold");
        addDefaultSeedOre(makeSeed("Lead", 3, 4, "ingotLead", new ItemStack(getOreStack("ingotLead").getItem(), 8, getOreStack("ingotLead").getItemDamage()), new Color(102, 102, 153)), "ingotLead");
        addDefaultSeedOre(makeSeed("Silver", 3, 4, "ingotSilver", new ItemStack(getOreStack("ingotSilver").getItem(), 8, getOreStack("ingotSilver").getItemDamage()), new Color(187, 189, 184)), "ingotSilver");
        addDefaultSeedOre(makeSeed("Nickel", 3, 4, "ingotNickel", new ItemStack(getOreStack("ingotNickel").getItem(), 8, getOreStack("ingotNickel").getItemDamage()), new Color(204, 204, 204)), "ingotNickel");
        addDefaultSeedOre(makeSeed("Mithril", 3, 4, "ingotMithril", new ItemStack(getOreStack("ingotMithril").getItem(), 8, getOreStack("ingotMithril").getItemDamage()), new Color(146, 164, 208)), "ingotMithril");
        addDefaultSeedOre(makeSeed("Osmium", 3, 4, "ingotOsmium", new ItemStack(getOreStack("ingotOsmium").getItem(), 8, getOreStack("ingotOsmium").getItemDamage()), new Color(68, 60, 190)), "ingotOsmium");
        addDefaultSeed(makeSeed("Ender", 3, 4, getItemString(Items.ender_pearl), new ItemStack(Items.ender_pearl, 8), new Color(72, 100, 97)));
        addDefaultSeed(makeSeed("Teary", 3, 4, getItemString(Items.ghast_tear), new ItemStack(Items.ghast_tear, 8), new Color(212, 255, 241)));
        addDefaultSeed(makeSeed("Creepy", 3, 4, getItemString(Items.gunpowder), new ItemStack(Items.gunpowder, 8), new Color(0, 255, 33)));
        addDefaultSeedOre(makeSeed("Glowstone", 3, 4, "dustGlowstone", new ItemStack(getOreStack("dustGlowstone").getItem(), 8, getOreStack("dustGlowstone").getItemDamage()), new Color(233, 255, 84)), "dustGlowstone");
        addDefaultSeedOre(makeSeed("Redstone", 3, 4, "dustRedstone", new ItemStack(getOreStack("dustRedstone").getItem(), 8, getOreStack("dustRedstone").getItemDamage()), new Color(159, 13, 0)), "dustRedstone");
        addDefaultSeedOre(makeSeed("Sulfur", 3, 4, "dustSulfur", new ItemStack(getOreStack("dustSulfur").getItem(), 8, getOreStack("dustSulfur").getItemDamage()), new Color(212, 190, 85)), "dustSulfur");
        addDefaultSeedOre(makeSeed("Lapis", 3, 4, "gemLapis", new ItemStack(getOreStack("gemLapis").getItem(), 8, getOreStack("gemLapis").getItemDamage()), new Color(63, 71, 206)), "gemLapis");
        addDefaultSeedOre(makeSeed("Quartz", 3, 4, "gemQuartz", new ItemStack(getOreStack("gemQuartz").getItem(), 8, getOreStack("gemQuartz").getItemDamage()), new Color(255, 255, 255)), "gemQuartz");
        addDefaultSeedOre(makeSeed("Certus", 3, 4, "crystalCertusQuartz", new ItemStack(getOreStack("crystalCertusQuartz").getItem(), 8, getOreStack("crystalCertusQuartz").getItemDamage()), new Color(168, 204, 208)), "crystalCertusQuartz");
        addDefaultSeedOre(makeSeed("Ruby", 3, 4, "gemRuby", new ItemStack(getOreStack("gemRuby").getItem(), 8, getOreStack("gemRuby").getItemDamage()), new Color(212, 48, 55)), "gemRuby");
        addDefaultSeedOre(makeSeed("Peridot", 3, 4, "gemPeridot", new ItemStack(getOreStack("gemPeridot").getItem(), 8, getOreStack("gemPeridot").getItemDamage()), new Color(130, 212, 108)), "gemPeridot");
        addDefaultSeedOre(makeSeed("Topaz", 3, 4, "gemTopaz", new ItemStack(getOreStack("gemTopaz").getItem(), 8, getOreStack("gemTopaz").getItemDamage()), new Color(212, 143, 101)), "gemTopaz");
        addDefaultSeedOre(makeSeed("Tanzanite", 3, 4, "gemTanzanite", new ItemStack(getOreStack("gemTanzanite").getItem(), 8, getOreStack("gemTanzanite").getItemDamage()), new Color(42, 7, 96)), "gemTanzanite");
        addDefaultSeedOre(makeSeed("Malachite", 3, 4, "gemMalachite", new ItemStack(getOreStack("gemMalachite").getItem(), 8, getOreStack("gemMalachite").getItemDamage()), new Color(59, 255, 226)), "gemMalachite");
        addDefaultSeedOre(makeSeed("Sapphire", 3, 4, "gemSapphire", new ItemStack(getOreStack("gemSapphire").getItem(), 8, getOreStack("gemSapphire").getItemDamage()), new Color(88, 106, 212)), "gemSapphire");
        addDefaultSeedOre(makeSeed("Amber", 3, 4, "gemAmber", new ItemStack(getOreStack("gemAmber").getItem(), 8, getOreStack("gemAmber").getItemDamage()), new Color(212, 121, 60)), "gemAmber");
        addDefaultSeedOre(makeSeed("Apatite", 3, 4, "gemApatite", new ItemStack(getOreStack("gemApatite").getItem(), 8, getOreStack("gemApatite").getItemDamage()), new Color(121, 188, 212)), "gemApatite");
        // Tier 4
        addDefaultSeedOre(makeSeed("Diamond", 4, 4, "gemDiamond", new ItemStack(getOreStack("gemDiamond").getItem(), 8, getOreStack("gemDiamond").getItemDamage()), new Color(58, 242, 239)), "gemDiamond");
        addDefaultSeedOre(makeSeed("Emerald", 4, 4, "gemEmerald", new ItemStack(getOreStack("gemEmerald").getItem(), 8, getOreStack("gemEmerald").getItemDamage()), new Color(87, 242, 111)), "gemEmerald");
        addDefaultSeedOre(makeSeed("Platinum", 4, 4, "ingotPlatinum", new ItemStack(getOreStack("ingotPlatinum").getItem(), 8, getOreStack("ingotPlatinum").getItemDamage()), new Color(30, 208, 243)), "ingotPlatinum");
        addDefaultSeedOre(makeSeed("Yellorium", 4, 4, "ingotYellorium", new ItemStack(getOreStack("ingotYellorium").getItem(), 8, getOreStack("ingotYellorium").getItemDamage()), new Color(142, 160, 19)), "ingotYellorium");
        addDefaultSeedOre(makeSeed("Titanium", 4, 4, "ingotTitanium", new ItemStack(getOreStack("ingotTitanium").getItem(), 8, getOreStack("ingotTitanium").getItemDamage()), new Color(212, 165, 182)), "ingotTitanium");
        addDefaultSeedOre(makeSeed("Desh", 4, 4, "ingotDesh", new ItemStack(getOreStack("ingotDesh").getItem(), 8, getOreStack("ingotDesh").getItemDamage()), new Color(39, 39, 40)), "ingotDesh");
        addDefaultSeedOre(makeSeed("Cobalt", 4, 4, "ingotCobalt", new ItemStack(getOreStack("ingotCobalt").getItem(), 8, getOreStack("ingotCobalt").getItemDamage()), new Color(0, 60, 255)), "ingotCobalt");
        addDefaultSeedOre(makeSeed("Ardite", 4, 4, "ingotArdite", new ItemStack(getOreStack("ingotArdite").getItem(), 8, getOreStack("ingotArdite").getItemDamage()), new Color(255, 102, 0)), "ingotArdite");

        SeedCreator.createJsonFromSeeds(SeedRegistry.seedBuilder, defaultSeeds, "DefaultSeeds");
    }

    private static Seed makeSeed(String name, int tier, int amount, String input, ItemStack output, Color color) {
        SeedBuilder builder = new SeedBuilder();

        builder.setName(name);
        builder.setTier(tier);
        builder.setAmount(amount);
        builder.setInput(input);
        builder.setOutput(output);
        builder.setColor(color);

        return builder.build();
    }

    private static void addDefaultSeedMod(Seed seed, String modid) {
        if (Loader.isModLoaded(modid))<commit_msg>Skull seeds are now in defaults<commit_after>package tehnut.resourceful.crops.util;

import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.registry.GameData;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import tehnut.resourceful.crops.base.Seed;
import tehnut.resourceful.crops.base.SeedBuilder;
import tehnut.resourceful.crops.registry.SeedRegistry;
import tehnut.resourceful.crops.util.serialization.SeedCreator;

import java.awt.*;
import java.util.ArrayList;
import java.util.List;

public class StartupUtils {

    private static List<Seed> defaultSeeds = new ArrayList<Seed>();

    public static void initDefaults() {
        
        // Tier 1
        addDefaultSeedOre(makeSeed("Inky", 1, 4, "dyeBlack", new ItemStack(getOreStack("dyeBlack").getItem(), 8, getOreStack("dyeBlack").getItemDamage()), new Color(22, 22, 22)), "dyeBlack");
        addDefaultSeed(makeSeed("Fleshy", 1, 4, getItemString(Items.rotten_flesh), new ItemStack(Items.rotten_flesh, 8), new Color(255, 160, 136)));
        addDefaultSeed(makeSeed("Feathery", 1, 4, getItemString(Items.feather), new ItemStack(Items.feather, 8), new Color(208, 203, 199)));
        // Tier 2
        addDefaultSeedOre(makeSeed("Tin", 2, 4, "ingotTin", new ItemStack(getOreStack("ingotTin").getItem(), 8, getOreStack("ingotTin").getItemDamage()), new Color(135, 154, 168)), "ingotTin");
        addDefaultSeedOre(makeSeed("Copper", 2, 4, "ingotCopper", new ItemStack(getOreStack("ingotCopper").getItem(), 8, getOreStack("ingotCopper").getItemDamage()), new Color(204, 102, 51)), "ingotCopper");
        addDefaultSeedOre(makeSeed("Aluminum", 2, 4, "ingotAluminum", new ItemStack(getOreStack("ingotAluminum").getItem(), 8, getOreStack("ingotAluminum").getItemDamage()), new Color(198, 206, 130)), "ingotAluminum");
        addDefaultSeedOre(makeSeed("Zinc", 2, 4, "ingotZinc", new ItemStack(getOreStack("ingotZinc").getItem(), 8, getOreStack("ingotZinc").getItemDamage()), new Color(192, 176, 182)), "ingotZinc");
        addDefaultSeed(makeSeed("Coal", 2, 4, getItemString(Items.coal), new ItemStack(Items.coal, 8), new Color(45, 44, 47)));
        addDefaultSeed(makeSeed("Charcoal", 2, 4, getItemString(Items.coal, 1), new ItemStack(Items.coal, 8, 1), new Color(45, 44, 47)));
        addDefaultSeedOre(makeSeed("Saltpeter", 2, 4, "dustSaltpeter", new ItemStack(getOreStack("dustSaltpeter").getItem(), 8, getOreStack("dustSaltpeter").getItemDamage()), new Color(182, 197, 212)), "dustSaltpeter");
        addDefaultSeedOre(makeSeed("Salt", 2, 4, "dustSalt", new ItemStack(getOreStack("dustSalt").getItem(), 8, getOreStack("dustSalt").getItemDamage()), new Color(182, 197, 212)), "dustSalt");
        addDefaultSeed(makeSeed("Leathery", 2, 4, getItemString(Items.leather), new ItemStack(Items.leather, 8), new Color(255, 68, 17)));
        addDefaultSeed(makeSeed("Stringy", 2, 4, getItemString(Items.string), new ItemStack(Items.string, 8), new Color(241, 255, 210)));
        addDefaultSeed(makeSeed("Boney", 2, 4, getItemString(Items.bone), new ItemStack(Items.bone, 8), new Color(255, 240, 205)));
        addDefaultSeed(makeSeed("Slimey", 2, 4, getItemString(Items.slime_ball), new ItemStack(Items.slime_ball, 8), new Color(62, 255, 119)));
        //Tier 3
        addDefaultSeed(makeSeed("Blaze", 3, 4, getItemString(Items.blaze_rod), new ItemStack(Items.blaze_rod, 8), new Color(255, 215, 66)));
        addDefaultSeedOre(makeSeed("Iron", 3, 4, "ingotIron", new ItemStack(getOreStack("ingotIron").getItem(), 8, getOreStack("ingotIron").getItemDamage()), new Color(159, 156, 160)), "ingotIron");
        addDefaultSeedOre(makeSeed("Gold", 3, 4, "ingotGold", new ItemStack(getOreStack("ingotGold").getItem(), 8, getOreStack("ingotGold").getItemDamage()), new Color(255, 255, 0)), "ingotGold");
        addDefaultSeedOre(makeSeed("Lead", 3, 4, "ingotLead", new ItemStack(getOreStack("ingotLead").getItem(), 8, getOreStack("ingotLead").getItemDamage()), new Color(102, 102, 153)), "ingotLead");
        addDefaultSeedOre(makeSeed("Silver", 3, 4, "ingotSilver", new ItemStack(getOreStack("ingotSilver").getItem(), 8, getOreStack("ingotSilver").getItemDamage()), new Color(187, 189, 184)), "ingotSilver");
        addDefaultSeedOre(makeSeed("Nickel", 3, 4, "ingotNickel", new ItemStack(getOreStack("ingotNickel").getItem(), 8, getOreStack("ingotNickel").getItemDamage()), new Color(204, 204, 204)), "ingotNickel");
        addDefaultSeedOre(makeSeed("Mithril", 3, 4, "ingotMithril", new ItemStack(getOreStack("ingotMithril").getItem(), 8, getOreStack("ingotMithril").getItemDamage()), new Color(146, 164, 208)), "ingotMithril");
        addDefaultSeedOre(makeSeed("Osmium", 3, 4, "ingotOsmium", new ItemStack(getOreStack("ingotOsmium").getItem(), 8, getOreStack("ingotOsmium").getItemDamage()), new Color(68, 60, 190)), "ingotOsmium");
        addDefaultSeed(makeSeed("Ender", 3, 4, getItemString(Items.ender_pearl), new ItemStack(Items.ender_pearl, 8), new Color(72, 100, 97)));
        addDefaultSeed(makeSeed("Teary", 3, 4, getItemString(Items.ghast_tear), new ItemStack(Items.ghast_tear, 8), new Color(212, 255, 241)));
        addDefaultSeed(makeSeed("Creepy", 3, 4, getItemString(Items.gunpowder), new ItemStack(Items.gunpowder, 8), new Color(0, 255, 33)));
        addDefaultSeed(makeSeed("Skelesprout", 3, 2, getItemString(Items.skull), new ItemStack(Items.skull, 1), new Color(159, 164, 155)));
        addDefaultSeed(makeSeed("Brainy", 3, 2, getItemString(Items.skull, 2), new ItemStack(Items.skull, 1, 2), new Color(49, 105, 50)));
        addDefaultSeed(makeSeed("Mindful", 3, 2, getItemString(Items.skull, 3), new ItemStack(Items.skull, 1, 3), new Color(232, 186, 131)));
        addDefaultSeed(makeSeed("Creepots", 3, 2, getItemString(Items.skull, 4), new ItemStack(Items.skull, 1, 4), new Color(71, 178, 74)));
        addDefaultSeedOre(makeSeed("Glowstone", 3, 4, "dustGlowstone", new ItemStack(getOreStack("dustGlowstone").getItem(), 8, getOreStack("dustGlowstone").getItemDamage()), new Color(233, 255, 84)), "dustGlowstone");
        addDefaultSeedOre(makeSeed("Redstone", 3, 4, "dustRedstone", new ItemStack(getOreStack("dustRedstone").getItem(), 8, getOreStack("dustRedstone").getItemDamage()), new Color(159, 13, 0)), "dustRedstone");
        addDefaultSeedOre(makeSeed("Sulfur", 3, 4, "dustSulfur", new ItemStack(getOreStack("dustSulfur").getItem(), 8, getOreStack("dustSulfur").getItemDamage()), new Color(212, 190, 85)), "dustSulfur");
        addDefaultSeedOre(makeSeed("Lapis", 3, 4, "gemLapis", new ItemStack(getOreStack("gemLapis").getItem(), 8, getOreStack("gemLapis").getItemDamage()), new Color(63, 71, 206)), "gemLapis");
        addDefaultSeedOre(makeSeed("Quartz", 3, 4, "gemQuartz", new ItemStack(getOreStack("gemQuartz").getItem(), 8, getOreStack("gemQuartz").getItemDamage()), new Color(255, 255, 255)), "gemQuartz");
        addDefaultSeedOre(makeSeed("Certus", 3, 4, "crystalCertusQuartz", new ItemStack(getOreStack("crystalCertusQuartz").getItem(), 8, getOreStack("crystalCertusQuartz").getItemDamage()), new Color(168, 204, 208)), "crystalCertusQuartz");
        addDefaultSeedOre(makeSeed("Ruby", 3, 4, "gemRuby", new ItemStack(getOreStack("gemRuby").getItem(), 8, getOreStack("gemRuby").getItemDamage()), new Color(212, 48, 55)), "gemRuby");
        addDefaultSeedOre(makeSeed("Peridot", 3, 4, "gemPeridot", new ItemStack(getOreStack("gemPeridot").getItem(), 8, getOreStack("gemPeridot").getItemDamage()), new Color(130, 212, 108)), "gemPeridot");
        addDefaultSeedOre(makeSeed("Topaz", 3, 4, "gemTopaz", new ItemStack(getOreStack("gemTopaz").getItem(), 8, getOreStack("gemTopaz").getItemDamage()), new Color(212, 143, 101)), "gemTopaz");
        addDefaultSeedOre(makeSeed("Tanzanite", 3, 4, "gemTanzanite", new ItemStack(getOreStack("gemTanzanite").getItem(), 8, getOreStack("gemTanzanite").getItemDamage()), new Color(42, 7, 96)), "gemTanzanite");
        addDefaultSeedOre(makeSeed("Malachite", 3, 4, "gemMalachite", new ItemStack(getOreStack("gemMalachite").getItem(), 8, getOreStack("gemMalachite").getItemDamage()), new Color(59, 255, 226)), "gemMalachite");
        addDefaultSeedOre(makeSeed("Sapphire", 3, 4, "gemSapphire", new ItemStack(getOreStack("gemSapphire").getItem(), 8, getOreStack("gemSapphire").getItemDamage()), new Color(88, 106, 212)), "gemSapphire");
        addDefaultSeedOre(makeSeed("Amber", 3, 4, "gemAmber", new ItemStack(getOreStack("gemAmber").getItem(), 8, getOreStack("gemAmber").getItemDamage()), new Color(212, 121, 60)), "gemAmber");
        addDefaultSeedOre(makeSeed("Apatite", 3, 4, "gemApatite", new ItemStack(getOreStack("gemApatite").getItem(), 8, getOreStack("gemApatite").getItemDamage()), new Color(121, 188, 212)), "gemApatite");
        // Tier 4
        addDefaultSeed(makeSeed("Witherwheat", 4, 2, getItemString(Items.skull, 1), new ItemStack(Items.skull, 1, 1), new Color(52, 52, 51)));
        addDefaultSeedOre(makeSeed("Diamond", 4, 2, "gemDiamond", new ItemStack(getOreStack("gemDiamond").getItem(), 8, getOreStack("gemDiamond").getItemDamage()), new Color(58, 242, 239)), "gemDiamond");
        addDefaultSeedOre(makeSeed("Emerald", 4, 2, "gemEmerald", new ItemStack(getOreStack("gemEmerald").getItem(), 8, getOreStack("gemEmerald").getItemDamage()), new Color(87, 242, 111)), "gemEmerald");
        addDefaultSeedOre(makeSeed("Platinum", 4, 2, "ingotPlatinum", new ItemStack(getOreStack("ingotPlatinum").getItem(), 8, getOreStack("ingotPlatinum").getItemDamage()), new Color(30, 208, 243)), "ingotPlatinum");
        addDefaultSeedOre(makeSeed("Yellorium", 4, 2, "ingotYellorium", new ItemStack(getOreStack("ingotYellorium").getItem(), 8, getOreStack("ingotYellorium").getItemDamage()), new Color(142, 160, 19)), "ingotYellorium");
        addDefaultSeedOre(makeSeed("Titanium", 4, 2, "ingotTitanium", new ItemStack(getOreStack("ingotTitanium").getItem(), 8, getOreStack("ingotTitanium").getItemDamage()), new Color(212, 165, 182)), "ingotTitanium");
        addDefaultSeedOre(makeSeed("Desh", 4, 2, "ingotDesh", new ItemStack(getOreStack("ingotDesh").getItem(), 8, getOreStack("ingotDesh").getItemDamage()), new Color(39, 39, 40)), "ingotDesh");
        addDefaultSeedOre(makeSeed("Cobalt", 4, 2, "ingotCobalt", new ItemStack(getOreStack("ingotCobalt").getItem(), 8, getOreStack("ingotCobalt").getItemDamage()), new Color(0, 60, 255)), "ingotCobalt");
        addDefaultSeedOre(makeSeed("Ardite", 4, 2, "ingotArdite", new ItemStack(getOreStack("ingotArdite").getItem(), 8, getOreStack("ingotArdite").getItemDamage()), new Color(255, 102, 0)), "ingotArdite");

        SeedCreator.createJsonFromSeeds(SeedRegistry.seedBuilder, defaultSeeds, "DefaultSeeds");
    }

    private static Seed makeSeed(String name, int tier, int amount, String input, ItemStack output, Color color) {
        SeedBuilder builder = new SeedBuilder();

        builder.setName(name);
        builder.setTier(tier);
        builder.setAmount(amount);
        builder.setInput(input);
        builder.setOutput(output);
        builder.setColor(color);

        return builder.build();
    }

    private static void addDefaultSeedMod(Seed seed, String modid) {
        if (Loader.isModLoaded(modid))
{'fraction_non_alphanumeric': 0.1731552221053113, 'fraction_numerical': 0.051374719795050094, 'mean_word_length': 6.463298053943325, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5215976', 'n_tokens_mistral': 8790, 'n_tokens_neox': 7729, 'n_words': 1451}