Jump to content

Recommended Posts

Posted

Basically what I'm asking is this, how exactly do I make my mod generate/create a config file in the proper place, i.e the config folder. Never found a proper tutorial for such :(

Member of Aerotech Networks, a Multi-Gaming server.

Also Currently porting the "Rise of the Automatons" minecraft mod

Posted

Ok, I will look into it. Ok, now I have another question. You see, I'm trying to make a custom TallGrassblock drop an item similar to how vanilla tall grass drops seeds. Any help is appreciated.

Member of Aerotech Networks, a Multi-Gaming server.

Also Currently porting the "Rise of the Automatons" minecraft mod

Posted

Well, luckily I found how to make it work utilizing code from the vanilla tallgrass :) But I didn't copy paste it. I typed it by hand, and learned from it, basically I made getItemDropped return null, utilized quanityDroppedWithBonus, and used the getDrops ArrayList to do the drop for my tallgrass like block... And all I really had to change in that was the representation of the "seed" variable xD

Member of Aerotech Networks, a Multi-Gaming server.

Also Currently porting the "Rise of the Automatons" minecraft mod

Posted

Ok, I have now begun making a config file which generates correctly, but I want to try to make it a bit more customized=, like custom categories and such. Any help?

Member of Aerotech Networks, a Multi-Gaming server.

Also Currently porting the "Rise of the Automatons" minecraft mod

Posted

Ok, I have now begun making a config file which generates correctly, but I want to try to make it a bit more customized=, like custom categories and such. Any help?

 

Post exactly what you would like to do and what code you've tried so far.  It is difficult to help with general questions, because my answer to your current question is "just create custom categories and use them".

 

Anyway, the one general hint I'd give is look at the Configuration class and look at all the public methods.  You'll see some things there that might be related to your interest.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

Basically what I want to do is, make it look different, change it's design. Like lets say I don't want it to start looking like this:

 

# Configuration file

####################
# block
####################

And change how this are presented, it's a bit hard to explain to be honest, especially when I have know plan. Mainly going to use this config to disable certain parts of my mod, and possibly have new categories, and I think I have found what I need in the Configuration class to make new categories, but I don't know if it's right or not. 

Member of Aerotech Networks, a Multi-Gaming server.

Also Currently porting the "Rise of the Automatons" minecraft mod

Posted

Okay, I generally follow this tutorial: http://www.minecraftforge.net/wiki/How_to_make_an_advanced_configuration_file

 

You'll see in the "Basic Property Creation and Usage" section that there are advanced methods where you can specify the category when accessing the property, and I think you just need to create your custom ConfigCategory instance prior to using those methods.

 

Not certain but something like:

String myCategoryName = "myCategory";
ConfigCategory myConfigCategory = new ConfigCategory(myCategoryName);
boolean isThisTrue = config.get(myCategoryName, "IsThisTrue", true).getBoolean(true);

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I've been using this modpack for a few days now with no issues, it was working properly just an hour or two ago and now all of a sudden when I try to load it I get this error: 'The game crashed: exception in server tick loop Error: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $' debug log: https://pastebin.com/1htBuhsP crash report: https://pastebin.com/QggHKYDg
    • Everything worked fine until I decided to install supplementaries squared, amendments and a couple other mods like artifacts, and compats for it. I'm having a hard time fixing this, and I get this crash whenever I try to enter a world. Not even a new world is feasible. Any help would be highly appreciated!! https://pastebin.com/7KXYZ6fM
    • Internal Exception: com.google.gson.JsonParseException: Error loading registry data: Unknown element: ResourceKey[minecraft:worldgen/configured_feature / minecraft:crimson_forest_vegetation]   This error is there when i try to join my friends server. We had some mods and it was okay but after 3 days i cant join.
    • It just says the mod i had but i dont have now.. and i didnt even use these mods and it still was crashing with the mods  
    • Hello,   I've been back and forth in emails with some CurseForge support staff on the issue but there's been no progress. In the CurseForge app, I have custom profiles and some public modpacks that will not load no matter what. I've goen through every link sent to me, I've reinstalled Minecraft, reinstalled the launcher, repaired the installations individually, uninstalled and reinstalled the public modpacks, downloaded the latest Java--all of it. But each time, I'm always met with either "java runtime exception", "exit code 1" on the rare occasions Minecraft does launch, or "java is out of date" (which literally cannot be possible since I reinstalled the latest version a few different times.) Making a new profile works, but I want to be able to play the ones I had before.  I had gotten one of the old public Minecraft modpacks to work, the prehistoric one about dinosaurs being featured right now, but then it only worked once. I've tried to retrace my steps and it just would not work. I have genuinely no clue what's going on.
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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