3

I'm trying to run Minecraft in offline mode on OS X while still setting my name to something other than "Player". I found some AppleScript written by Naschroe that may do the job:

property user_name : "Player"

display dialog "Enter A User Name" default answer "" buttons {"Cancel", "Continue"} default button 2
set the user_name to text returned of the result

set UsrApp to (path to current user folder)
set UsrApp_unx to POSIX path of UsrApp

set MineScript to "java -cp " & UsrApp_unx & "Library/Application\\ Support/minecraft/bin/minecraft.jar:" & UsrApp_unx & "Library/Application\\ Support/minecraft/bin/lwjgl.jar:" & UsrApp_unx & "Library/Application\\ Support/minecraft/bin/lwjgl_util.jar:" & UsrApp_unx & "Library/Application\\ Support/minecraft/bin/jinput.jar: -Djava.library.path=" & UsrApp_unx & "Library/Application\\ Support/minecraft/bin/natives -Xmx1024M -Xms512M net.minecraft.client.Minecraft '" & user_name & "'"

do shell script MineScript

But it needs some modifications to work and I can't seem to get it right. How can I modify this script to get Minecraft to work in offline mode, or is there another way to do it?

SevenSidedDie
  • 33,299
  • 17
  • 104
  • 168
kpuffs
  • 31
  • 1
  • 2

6 Answers6

3

Disconnect internet, open minecraft, and click on play offline. Then, if I were you, I would download and install LogmeinHamachi. Once you've set up a new network and invited your friends, you can go to your multiplayer in minecraft and add your ip address. Hamachi will act as something of a port, and enable you to easily host servers in offline mode.

Eugene
  • 63
  • 1
  • 7
2

I came up with slightly smoother alternative to running that AppleScript - I used Automator to create an alternative launcher app that doesn't spawn a Terminal window. It was created on Mountain Lion but I can't think of a reason why it wouldn't work on previous Automator versions.

http://scumble.net/minecraft/MinecraftOfflineAutomatorApp.zip

This also works if you're using Forge to load mods - I discovered the above command causes the mod loader to crash. I make sure the shell is in the minecraft bin directory before starting up the client.

nath
  • 21
  • 3
1

Turn off your WiFi. Turn on Minecraft. Try to log in. Now you should see something like this - bingo!

BINGO

iber
  • 5,808
  • 15
  • 42
  • 71
0

You can either try to add Minecraft to your firewall exceptions or try to login with a wrong username (ex. user: ABC pass: 123) and click "Play Offline" after that.

Joris
  • 1
  • 1
0

You should be able to log in offline if you use the wrong pass word it will ask if you want to log in offline or cancel.

Nosedrool
  • 112
  • 4
0

You could try any number of things to go into offline mode.

  • You could use an invalid username and password (ex. Username:password) then press "play offline". Note that this option will not work anymore since the launcher has been updated.
  • The same solution as above would work if the launcher was not updated. Use an incorrect username and password or turning off your WiFi.
  • The Alpha launcher (where you only need a username) would also work, but cheating is not recommended.