Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.nightmarecreatures.main;
- import cpw.mods.fml.common.event.FMLPreInitializationEvent;
- import net.minecraftforge.common.config.Configuration;
- public class Config {
- public static int basespawn;
- public static int hollowspawnrate;
- public static int mulrogspawnrate;
- public static int shalrogspawnrate;
- public static int lesserbalrogspawnrate;
- public static int skulkerspawnrate;
- public static int jakkerspawnrate;
- public static int kogulspawnrate;
- public static int phantasmspawnrate;
- public static int shudimspawnrate;
- public static int hauntspawnrate;
- public static int walkingnestspawnrate;
- public static int driderspawnrate;
- public static int werskspawnrate;
- public static int hellmultiplier;
- public static int hollowID;
- public static int mulrogID;
- public static int shalrogID;
- public static int lesserbalrogID;
- public static int skulkerID;
- public static int jakkerID;
- public static int kogulID;
- public static int kogulruntID;
- public static int phantasmID;
- public static int shudimID;
- public static int hauntID;
- public static int walkingnestID;
- public static int spiderlingID;
- public static int driderID;
- public static int werskID;
- public static int wersklingID;
- public static int egghollowID;
- public static int eggmulrogID;
- public static int eggshalrogID;
- public static int egglesserbalrogID;
- public static int eggskulkerID;
- public static int eggjakkerID;
- public static int eggkogulID;
- public static int eggkogulruntID;
- public static int eggphantasmID;
- public static int eggshudimID;
- public static int egghauntID;
- public static int eggwalkingnestID;
- public static int eggspiderlingID;
- public static int eggdriderID;
- public static int eggwerskID;
- public static int eggwersklingID;
- public static void preinit(FMLPreInitializationEvent event)
- {
- Configuration config = new Configuration(event.getSuggestedConfigurationFile());
- config.load();
- config.setCategoryComment(Configuration.CATEGORY_GENERAL, "The spawn weight values are multiplied by the base spawn weight for all mobs. \n"
- + "The hell multiplier is used to multiply the spawns of certain mobs in the nether. \n"
- + "The value range for individual spawn wieghts is 0-100 inclusive.");
- basespawn = config.getInt("Base Spawn Weight: ", Configuration.CATEGORY_GENERAL, 10, 0, 100, "The minimum value is 0 and the maximum is 100.");
- hollowspawnrate = config.getInt("Hollow Spawn Weight: ", Configuration.CATEGORY_GENERAL, 8, 0, 10, "");
- mulrogspawnrate = config.getInt("Mulrog Spawn Weight: ", Configuration.CATEGORY_GENERAL, 4, 0, 100, "");
- shalrogspawnrate = config.getInt("Shalrog Spawn Weight: ", Configuration.CATEGORY_GENERAL, 3, 0, 100, "");
- lesserbalrogspawnrate = config.getInt("Wersk Spawn Weight: ", Configuration.CATEGORY_GENERAL, 2, 0, 100, "");
- skulkerspawnrate = config.getInt("Skulker Spawn Weight: ", Configuration.CATEGORY_GENERAL, 8, 0, 100, "");
- jakkerspawnrate = config.getInt("Jakker Spawn Weight: ", Configuration.CATEGORY_GENERAL, 7, 0, 100, "");
- kogulspawnrate = config.getInt("Kogul Spawn Weight: ", Configuration.CATEGORY_GENERAL, 6, 0, 100, "");
- phantasmspawnrate = config.getInt("Phantasm Spawn Weight: ", Configuration.CATEGORY_GENERAL, 4, 0, 100, "");
- shudimspawnrate = config.getInt("Shudim Spawn Weight: ", Configuration.CATEGORY_GENERAL, 3, 0, 100, "");
- hauntspawnrate = config.getInt("Haunt Spawn Weight: ", Configuration.CATEGORY_GENERAL, 2, 0, 100, "");
- walkingnestspawnrate = config.getInt("Walking Nest Spawn Weight: ", Configuration.CATEGORY_GENERAL, 7, 0, 100, "");
- driderspawnrate = config.getInt("Drider Spawn Weight: ", Configuration.CATEGORY_GENERAL, 6, 0, 100, "");
- werskspawnrate = config.getInt("Wersk Spawn Weight: ", Configuration.CATEGORY_GENERAL, 7, 0, 100, "");
- hellmultiplier = config.getInt("Hell Multiplier: ", Configuration.CATEGORY_GENERAL, 2, 1, 3, "The minimum value is 1 and the maximum is 3.");
- config.setCategoryComment(Configuration.CATEGORY_GENERAL, "These will determine the ids for the mobs. The maximum value is 2000");
- hollowID = config.getInt("Hollow ID: ", Configuration.CATEGORY_GENERAL, 0, 0, 2000, "");
- mulrogID = config.getInt("Mulrog ID: ", Configuration.CATEGORY_GENERAL, 1, 0, 2000, "");
- shalrogID = config.getInt("Shalrog ID: ", Configuration.CATEGORY_GENERAL, 2, 0, 2000, "");
- lesserbalrogID = config.getInt("Lesser Balrog ID: ", Configuration.CATEGORY_GENERAL, 3, 0, 2000, "");
- skulkerID = config.getInt("Skulker ID: ", Configuration.CATEGORY_GENERAL, 4, 0, 2000, "");
- jakkerID = config.getInt("Jakker ID: ", Configuration.CATEGORY_GENERAL, 5, 0, 2000, "");
- kogulID = config.getInt("Kogul ID: ", Configuration.CATEGORY_GENERAL, 6, 0, 2000, "");
- kogulruntID = config.getInt("Kogul ID: ", Configuration.CATEGORY_GENERAL, 7, 0, 2000, "");
- phantasmID = config.getInt("Phantasm ID: ", Configuration.CATEGORY_GENERAL, 8, 0, 2000, "");
- shudimID = config.getInt("Shudim ID: ", Configuration.CATEGORY_GENERAL, 9, 0, 2000, "");
- hauntID = config.getInt("Haunt ID: ", Configuration.CATEGORY_GENERAL, 10, 0, 2000, "");
- walkingnestID = config.getInt("Walking Nest ID: ", Configuration.CATEGORY_GENERAL, 11, 0, 2000, "");
- spiderlingID = config.getInt("Spiderling ID: ", Configuration.CATEGORY_GENERAL, 12, 0, 2000, "");
- driderID = config.getInt("Drider ID: ", Configuration.CATEGORY_GENERAL, 13, 0, 2000, "");
- werskID = config.getInt("Wersk ID: ", Configuration.CATEGORY_GENERAL, 14, 0, 2000, "");
- wersklingID = config.getInt("Werskling ID: ", Configuration.CATEGORY_GENERAL, 15, 0, 2000, "");
- config.setCategoryComment(Configuration.CATEGORY_GENERAL, "These determine the item IDs for spawn eggs. The maximum value is 2000.");
- egghollowID = config.getInt("Hollow ID: ", Configuration.CATEGORY_GENERAL, 600, 0, 2000, "");
- eggmulrogID = config.getInt("Mulrog ID: ", Configuration.CATEGORY_GENERAL, 601, 0, 2000, "");
- eggshalrogID = config.getInt("Shalrog ID: ", Configuration.CATEGORY_GENERAL, 602, 0, 2000, "");
- egglesserbalrogID = config.getInt("Lesser Balrog ID: ", Configuration.CATEGORY_GENERAL, 603, 0, 2000, "");
- eggskulkerID = config.getInt("Skulker ID: ", Configuration.CATEGORY_GENERAL, 604, 0, 2000, "");
- eggjakkerID = config.getInt("Jakker ID: ", Configuration.CATEGORY_GENERAL, 605, 0, 2000, "");
- eggkogulID = config.getInt("Kogul ID: ", Configuration.CATEGORY_GENERAL, 606, 0, 2000, "");
- eggkogulruntID = config.getInt("Kogul ID: ", Configuration.CATEGORY_GENERAL, 607, 0, 2000, "");
- eggphantasmID = config.getInt("Phantasm ID: ", Configuration.CATEGORY_GENERAL, 608, 0, 2000, "");
- eggshudimID = config.getInt("Shudim ID: ", Configuration.CATEGORY_GENERAL, 609, 0, 2000, "");
- egghauntID = config.getInt("Haunt ID: ", Configuration.CATEGORY_GENERAL, 610, 0, 2000, "");
- eggwalkingnestID = config.getInt("Walking Nest ID: ", Configuration.CATEGORY_GENERAL, 611, 0, 2000, "");
- eggspiderlingID = config.getInt("Spiderling ID: ", Configuration.CATEGORY_GENERAL, 612, 0, 2000, "");
- eggdriderID = config.getInt("Drider ID: ", Configuration.CATEGORY_GENERAL, 613, 0, 2000, "");
- eggwerskID = config.getInt("Wersk ID: ", Configuration.CATEGORY_GENERAL, 614, 0, 2000, "");
- eggwersklingID = config.getInt("Werskling ID: ", Configuration.CATEGORY_GENERAL, 615, 0, 2000, "");
- config.save();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment