Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

These are two topics I was expecting to find tutorials about, but actually didn't find much documentation. Granted, I didn't search THAT much, but I supposed it'd be more easily accessible. These are A) mcmod.info files and B) those handy forge configuration files.

Actually, if you check Viper's github, you'll find a class that is a cheap custom ripoff of Forge's Configuration class. Just compare it with Forge's.

All you need to use is a few functions from the Configuration class, not create a huge class to do what forge already does for you.

There was a great tutorial on that, I think it was part of the Generic Mod tutorial, look for it on forge tutorials in the forum index.

 

For mcmod.info, try opening forge's own mcmod.info, I found it pretty explanatory.

Did I help? Hitting 'Thank You' would be appreciated.

 

Soon, the lost city will rise from the bottom of the ocean, and spread it's technology across Minecraft.

-snip-

it may be a copy of forges version, but it works in the exact same way, and can be used in the same manner, i only copied the code so that i can edit the file how i want, without making any changes to forge and vanilla code

And that makes it a good excuse to show people your square version of the wheel?

If you don't have code that does what people want, you don't show it. Still, if you know how to do that, you can tell them, and if you don't know, you don't say a thing.

Now, every time someone has a problem, you send them to your github, showing off your code, where you proudly reinvent the [square] wheel. And that, kind sir, is not acceptable.

In this particular case, this guy wanted something that is a 5 line solution, and you pointed him to a 525 line file and a class that does nothing besides creating an instance of another class.

 

 

 

@pro_mole: this is an adaptation from the code I use:

 

@PreInit
public void preInit(FMLPreInitializationEvent event) {
	Configuration config = new Configuration(event.getSuggestedConfigurationFile()));
	config.load();
	int block_id = config.get(Configuration.CATEGORY_BLOCK, "property_name", default_block_id).getInt();
	config.save();
}

 

If you have any doubts, feel free to ask me. I'll gladly help.

Did I help? Hitting 'Thank You' would be appreciated.

 

Soon, the lost city will rise from the bottom of the ocean, and spread it's technology across Minecraft.

  • Author

Ok-o, the mcmod files are great help. Maybe document that later.

 

Also, thanks for the configuration tutorial. I saw that one before, but I didn't think "advanced" was what I was looking for.

Nah, it's actually pretty basic :)

The code behind that is advanced stuff, but you don't need to know how it works, just what methods from what classes you need to call.

Did I help? Hitting 'Thank You' would be appreciated.

 

Soon, the lost city will rise from the bottom of the ocean, and spread it's technology across Minecraft.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.