Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[Mods] Manually Modify minecraft.jar (MAC) [29/10/10]]


  • Please log in to reply
64 replies to this topic

#1

Jo_shadow

Posted 28 October 2010 - 10:33 PM

TL;DR:
To re-compress minecraft.jar from a folder don't select the folder. Select all the files inside the folder and compress those, then rename Archive.zip as 'minecraft.jar'.


What you want to do

When you want to instal mods on a mac manually you need to modify the contents of the minecraft.jar file, found in /Users/~Library/Application Support/minecraft/bin/minecraft.jar where ~ is your username.

However there seems to be quite a bit of confusion about not being able to re-compress the minecraft.jar file on a Mac without using the terminal.


Really it's very simple:

As most know *.jar files are basically (for our purposes) just *.zip files.

When you right click minecraft.jar you can uncompress it with the build in 'Archive Utility'
However selecting the resulting folder and re-compressing it as a zip file WILL NOT WORK!


Why won't it work?

Here is the folder structure after just zipping the folder and renaming the resulting file:
Posted Image
(screenshot via jaree)
As you can see, because we selected a folder, the jar file contains a folder at the root. Makes sense no?

Here is the original, un-modified minecraft.jar file:
Posted Image
The files here are not in a folder.
(The difference in file count is due to invisible files the mac OS creates in a folder, that can be ignored)

This difference in file structure results in the Minecraft launcher not being able to find the files it needs, thus black screens, crashes, etc.


What you should do

1. Open the folder.
2. Do command+a to select all the files inside.
3. Right click and choose 'compress ... items'.
4. The resulting zip file will be called "Archive.zip" and will still be inside the folder.
5. Move 'Archive.zip' out of the folder to where the original minecraft.jar file was.
6. Rename it as 'minecraft.jar' (accept the prompt that asks you if you really want to do that)
7. Delete the folder.

If done properly this will work.


Alternatively...

If you don't want to deal with this I would suggest using a mod manager like Minecrafter which does all this for you.

Register or log in to remove.

#2

Nurio
    Nurio

    Void Walker

  • Members
  • 1649 posts
  • Location: The Netherlands
  • Minecraft: Nurio

Posted 28 October 2010 - 10:38 PM

Thank you. I'm sure this will help a lot of people. I've seen many people with this problem, but sadly I was never able to really help them, since I do not know much about Macs. I will make sure to direct them to this thread if such a situation occurs again.

Nurio's SplotchBlock Texture Pack - http://www.minecraft...pic.php?t=38671


#3

Jo_shadow

Posted 28 October 2010 - 10:46 PM

Thanks =) Much appreciated.
Hope people can find this topic via the search if they need to.

#4

Donkey Kong

Posted 28 October 2010 - 11:02 PM

And all this time I assumed it was the OS X metafiles mucking things up when it's really a lot simpler!

Thanks, this means I don't have to use the jar tool from the terminal anymore.

#5

Justles
    Justles

    Coal Miner

  • Members
  • 129 posts
  • Location: West Allis WI
  • Minecraft: Justles
  • Xbox:Kidbomber

Posted 28 October 2010 - 11:20 PM

Ah wonderful! Much appreciated mate :tnt:.
Posted Image

If you need a request PM and if I like it , I might do it for free. :)


#6

Jo_shadow

Posted 28 October 2010 - 11:39 PM

Thanks all, glad this was of help =)

Alternatively you can use a mod manager like minecrafter that just does this all for you.

#7

killsbury3

Posted 29 October 2010 - 12:50 AM

honestly, terminal is easier. but some people dont feel comfortable working with code, so thank you for that from my friends and from me. now i wont have to mod their games for them anymore.
Posted Image

#8

dimondmine2

Posted 19 November 2010 - 12:26 AM

Ok the tutorial is great... However, i have one problem. when i download a mod it causes the game to crash. Why is this and how can it be avoided plz make a video tutorial of this as well.

#9

tali
    tali

    Zombie Killer

  • Members
  • 204 posts

Posted 19 November 2010 - 12:48 AM

There is no way to know the answer to your question, so remember to include such information as OS version, Game version, Mod version, error message and the relevant messages from Console(in the Utilities folder).  If your problem is with a specific mod, read the appropriate thread and if your question has not already been answered, post there.

Console is a system log viewer and usually has information that is missing from error messages.
Mod Installing Hack for Mac
Just add a folder name “MCPatches” to your ~/Documents/ folder.
Open inside AppleScript Editor for gritty details.

#10

varnon
    varnon

    Tree Puncher

  • Members
  • 27 posts

Posted 19 November 2010 - 12:54 AM

I'll also add, since there is another thread on the topic, your OS matters.

I was unable to install many mods when I was running OSX 5.8. After upgrading to OSX 6.5 ( a mere 30 $) I have had no problems with any mods. I had the same version of Java on both OS. If you are having problems with mods, consider updating your system. There is very little reason not to do it.

#11

crimsonshot

Posted 19 November 2010 - 02:14 AM

Might want to add in your original post that anybody running OSX 1.5.X will have issues running mods due to java issues. They would have to upgrade to Snow Leopard for them to work correctly.

#12

dimondmine2

Posted 19 November 2010 - 11:36 PM

Ok after cosideration i am going to spend the next hour ducumenting EXACTLY what i do and ill post it soon

#13

dimondmine2

Posted 20 November 2010 - 12:27 AM

Ok here goes
viewtopic.php?f=25&t=63613
The "Switch Between Night and Day (All day/all night added"
useing this mod ^^

1. downloaded mod
2.draged the Ir.class file (mod from download) onto my desktop
3.opened Finder
4. opened library folder
5. opened application support folder
6. opened minecraft folder
7. opened bin folder
8. list of files in bin folder font-weight&ticket=hover, jinput.jar , lwjgl.jar , lwjgl_util.jar , minecraft.backup.jar , minecraft.jar , natives folder , version , {color
9.compressed minecraft.jar
10. double clicked minecraft.jar.zip file
11. a minecraft 2 folder appeared in the bin folder
12. opened minecraft 2 folder
13. dragged Ir.class mod into minecraft 2 folder
14. i get a massage saying "An older item named "Ir.class" allready exists in this location. Do you want to replace it with the newer one you are moveing?" There are two options "Stop" and "Replace"
15. I choose Replace
16. I do the select all command
17. I right click on a random file (while all files are selected) and choose the compress 468 files option
18. i drag archive.zip onto my desktop.
19. I then drag minecraft.jar , minecraft.jar.zip , minecraft 2 folder into the trash
20. i then drag archive.zip into the bin folder then i change archive.zip into minecraft.jar
21. Then i open minecraft
22. once i try to log in minecraft gives me a black screen

SIDE INFORMATION
Computor: MacBook
Version: 10.5.8
Game version. (i believe it is) 1.2.2
no idea what messages from the console are relevent
PLZ HELP ME IVE SPENT OVER 10 HOURS TRYING TO GET MODS ONTO MINECRAFT

#14

tali
    tali

    Zombie Killer

  • Members
  • 204 posts

Posted 20 November 2010 - 01:32 AM

You could be having one of two problems.  First make sure you delete meta-inf's contents.  Next if that doesn't resolve the problem, check console to make sure it's not a version problem.
Mod Installing Hack for Mac
Just add a folder name “MCPatches” to your ~/Documents/ folder.
Open inside AppleScript Editor for gritty details.

#15

Legolas75893
  • Minecraft: Legolas75893

Posted 02 January 2011 - 01:28 PM

Humans Mod:
1.Downloaded Mod
2.Opened folder for mod
3.Replaced the old version of Modloader and Spawnlist with the new ones.
4.Dragged the Modloader and Spawnlist out of their folder in with the other .class files.
5.Selected the contents of the mod folder and copied the items.
6.Went to the bin folder and opened minecraft.jar(as in,Open with...->)
7.Pasted the mod files into the minecraft folder that opened.
8.Compressed the files and folders in the folder,not the folder itself like you said.
9.Changed Archive.zip to minecraft.jar and dragged it out to the bin.
10.Deleted folder.
11.Opened minecraft with a black screen,but then remembered I forgot to delete META-INF contents(wwait contents or folder itself,if contents what do I delete?)
12.Opened the modded minecraft.jar
13.Opened minecraft and got another black screen
Help?
________________
MAC OSX 10.5.8
Beta 1.1_02
And yes,I have used a mod before but it used an auto installer :/

Servers I've Created:
The Plague
______________________________________________________
"Be a man. Fight a zombie."-Legolas75893
"Then again, at 12, you really shouldn't be on 4Chan."-dirminxia


#16

Ob
    Ob

    Tree Puncher

  • Members
  • 36 posts

Posted 06 January 2011 - 04:38 PM

I followed all of this step by step, deleted META-INF but when I run minecraft after login, it just goes and stays black...


I'm on a iMac just so you know... I can't see what is going wrong.. :Skeleton:  I had made a clean minecraft folder to make sure there were no conflictions, and I still get the blackscreen error... It works ob my PC, but my PC is a load of laggy crap, so I don't like using it.

Suggestions or could someone give me their minecraft folder without their worlds?   I bought minecraft during the first two weeks of alpha, just so you know!

#17

mexifelio

Posted 06 January 2011 - 05:45 PM

@legolas and @ob:

RandomGuy27 said:

I saw a post a while back that explained how to get mods to work on 10.5.8 macs.

NOTE: Make a back up of any files that I mention in the instructions as a precaution.

Instructions:
First off make sure you have Java 6 downloaded. (If you haven't done a software update in a while you should)
Go to your minecraft app, right click and choose "Show Package Contents".
Next open the contents folder and open "Info.Plist".
Once it's open look for the line that says
JVMVersion
1.5+
Once you have found it change the 5 in 1.5 to a 6, then save and exit.
Once done with that open a new finder window and go to Mac > System > Library > Frameworks > JavaVM.framework > Resources > Mac OS and then copy the file named "JavaApplicationStub".
Now go back to the contents folder and go into the "MacOS" folder and paste "JavaApplicationStub".
Mods should now work with minecraft. (Reply if they don't, I may be able to help.)

Thanks whoever posted how to do this before, it helped me very much.

Any Mac friends having trouble installing forge on your minecraft_server.jar files? Check out my script that lets you do it easily with one simple click! For more info look here http://www.minecraft...-click-install/

#18

superjail3
  • Location: running from creepers and zombies

Posted 06 January 2011 - 05:48 PM

i think i remember posting this too you when you needed to know? no matter its all good you're just helping people out
Posted Image

Fross said:

It's like Lego, but occasionally a terrorist sneaks in through your window and blows all of your ­ to hell.

#19

mexifelio

Posted 06 January 2011 - 06:12 PM

superjail3 said:

i think i remember posting this too you when you needed to know? no matter its all good you're just helping people out

To me? Prolly not, I am on 10.6.5
Any Mac friends having trouble installing forge on your minecraft_server.jar files? Check out my script that lets you do it easily with one simple click! For more info look here http://www.minecraft...-click-install/

#20

Legolas75893
  • Minecraft: Legolas75893

Posted 06 January 2011 - 06:14 PM

mexifelio said:

@legolas and @ob:

RandomGuy27 said:

I saw a post a while back that explained how to get mods to work on 10.5.8 macs.

NOTE: Make a back up of any files that I mention in the instructions as a precaution.

Instructions:
First off make sure you have Java 6 downloaded. (If you haven't done a software update in a while you should)
Go to your minecraft app, right click and choose "Show Package Contents".
Next open the contents folder and open "Info.Plist".
Once it's open look for the line that says
JVMVersion
1.5+
Once you have found it change the 5 in 1.5 to a 6, then save and exit.
Once done with that open a new finder window and go to Mac > System > Library > Frameworks > JavaVM.framework > Resources > Mac OS and then copy the file named "JavaApplicationStub".
Now go back to the contents folder and go into the "MacOS" folder and paste "JavaApplicationStub".
Mods should now work with minecraft. (Reply if they don't, I may be able to help.)

Thanks whoever posted how to do this before, it helped me very much.
Still doesn't work

Servers I've Created:
The Plague
______________________________________________________
"Be a man. Fight a zombie."-Legolas75893
"Then again, at 12, you really shouldn't be on 4Chan."-dirminxia