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

  I have been following some basic tutorials, and I have successfully made a little mod where you use 3 paper to make 3 paper cones, then a paper cone with snow ball and melon slice, gives you a melon slushy.

 

  The mod works perfectly when I run it through Eclipse, but I am lost as to what I need to do for my mod to be in a .zip form to be distributed for use in the \mod folder.

 

  Thanks for any help or links.

From the readme - mcp file inside the mcp directory/docs:

 

3) Modding

- Modify the sourcecode in the "src\minecraft" folder or in the "src\minecraft_server" folder.

 

4) Compile

- Start the "recompile.bat" script in this folder.

 

5) Testing

- To test the modified game, start the "startclient.bat" script

- To test the modified server, start the "startserver.bat" script

 

6) Obfuscation

- Decompile the code, modify and recompile.

- Start "reobfuscate.bat" to start the reobfuscation step, it will automatically detect changed classes and reobfuscate them.

- Your obfuscated classes are now available in "reobf\minecraft" and "reobf\minecraft_server", ready to be injected in MC.

- Make sure to delete the META-INF folder in minecraft.jar, otherwise the game will just black-screen when you start it.

 

So backup the files you have edited, then recompile, reobfuscate the code and everything is ready to go.

Take the files, zip them up and done ;)

If you guys dont get it.. then well ya.. try harder...

  • Author

Thank you so much, it worked, and my mod is now working as a .zip.

 

Only problem now, is that my textures didnt transfer.

 

I'm not entirely sure where I should put them.  I have seen inside the .zip of other mods, and their textures are in neat little folders and such, so I know I shouldnt have to put them in any jar file.

 

Here are the paths on my system...

 

This is where my textures are stored when running the mod through Eclipse

C:\Users\Lance\Desktop\Forge Modding\mcp72\eclipse\Minecraft\bin

 

This is the path I use inside my code to load the txtures

public static String ITEMS_PNG = "/item.png";

public static String BLOCK_PNG = "/block.png";

 

After reobfuscation, my source was outputted in this directory

C:\Users\Lance\Desktop\Forge Modding\mcp72\reobf\minecraft\tutorial

 

So, hopefully this will be enough information for someone to determine where in my .zip file my textures should go, and if I need to change the directory in code where it is loading from.

 

Thanks

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.