Jump to content

Recommended Posts

Posted

I am wondering how I can go about rearranging everything in my config in the order I would like.

It seems forge is automatically arranging everything alphabetically.

It's still perfectly functional but things are just out of logical order.

 

"copper ore" {
    I:"Average veins per chunk"=50
    B:"Generate Copper Ore"=true
    I:"Max Y"=128
    I:"Max vein size"=8
    I:"Min Y"=0
    I:"Minimum vein size"=3
}

 

public class ooConfig 
{
public static boolean generate_Copper;
public static int veins_Copper;
public static int minveinSize_Copper;
public static int maxveinSize_Copper;
public static int minY_Copper;
public static int maxY_Copper;

public static void config()
{
	Configuration config = new Configuration(new File("config/OreOverhaul.cfg"));
	config.load();

		generate_Copper              = config.get("Copper Ore",             "Generate Copper Ore",                true).getBoolean();
		veins_Copper                 = config.get("Copper Ore",             "Average veins per chunk",              20).getInt();
		minveinSize_Copper           = config.get("Copper Ore",             "Minimum vein size",                     3).getInt();
		maxveinSize_Copper           = config.get("Copper Ore",             "Max vein size",                         .getInt();
		minY_Copper                  = config.get("Copper Ore",             "Min Y",                                 0).getInt();
		maxY_Copper                  = config.get("Copper Ore",             "Max Y",                               128).getInt();

	config.save();
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.