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 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 hellmultiplier;
- 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, "");
- 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, "");
- hellmultiplier = config.getInt("Hell Multiplier", Configuration.CATEGORY_GENERAL, 2, 1, 3, "The minimum value is 1 and the maximum is 3.");
- config.save();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment