**This thread is very outdated**
If I ever get back into running a server Ill post an updated guide for macs if there isnt a better one out there already.
Hey everyone, this forum seems to have little OSX support and Ive seen a few questions asking about being able to run a server on a mac. In order to try and answer some questions regarding that Ive compiled this information.
This is my first guide so if there are parts you dont understand or are confused about, please let me know. Hopefully this guide is not too redundant to the guides already here. This guide also assumes you are like me, aren't computer illiterate, but didn't know how to cd to a file directory before all this.
3/30/2011 EDIT: Jackflakes developed a easy server setup tool for macs. Check it out
Note, this is not all my information, its information Ive gathered from ianfitz100, bwooffitt SpiegalPwns and amberkilloran who were a major help in running my own server. Ive just compiled it together in one place, they are the people with computer smarts.
Index
A. OSX Minecraft Servers
B. Giving more RAM
C. Getting people to connect
D. Mods
E. Java wrappers
F. Map your alpha server
G. Running the server without terminal window.
A. [b]OSX Minecraft servers[/b]
First and foremost you need to download the minecraft_server.jar from the minecraft website and place it in a folder of your conveince. I.E. A folder called “Minecraft” on your desktop.
Now if you try to open the .jar now it will look like this
And if all you want to do is play by yourself or with your friends at your house this is all you need. You’re done.
However, if you want to host this server over the internet and give it more ram to work with heres what you do.
B. [b]Giving more RAM and One click launching[/b]
(All credit for this goes to amberkilloran and the post here)
If you want to skip all this and get the .command file, download it here, but you will have to edit the file so the file path text matches your system, and put it in the same folder as your minecraft_server.jar.
Otherwise you'll have to type
cd /Users/~/Desktop/Minecraft
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
Everytime you want to start the server
Lets get it more ram first. You will need textedit, terminal and the file you had minecraft_server.jar in.
Read this carefully
In text edit type cd then drag the file that your minecraft_server.jar is into [b]terminal[/b] and copy and paste what shows up in terminal.
[b](small typo in the textedit file, should be Users at front, not sers)[/b]
(Note: If you want to run it with more than 1 gig of ram, change the 1024 with 2048 for 2 gigs)
Now your text edit should look like this.
Now save it as whatever you want but it must end in “.command” In this case we’ll name it BootAlphaServer.command. To save the file as command in textedit,(credit for this goes to Ithuraen and his post) press shift+(command)+T or go to Format and select make plain text. Name it BootAlphaServer.command and save. I downloaded my .command file from here.
If you want the .command file, download it here, but you will have to edit the file so the file path text matches your system, and put it in the same folder as your minecraft_server.jar.
Once that is set up, you’re not done yet, go back to terminal and enter
Chmod +x *path to your BootAlphaServer.command* and press enter
Now click on BootAlphaServer.command and the server should boot up.
C. [b]Getting people to connect[/b]
Portforwarding I cant help you with, and unfortunately it is a big pain in the butt to do and theres no single guide to port forward.
[b]Port Forwarding[/b]
is crucial to setting up a server that people outside your network can connect to. You want to open up port 25565 typically for minecraft. To do that you must go to http://portforward.com/ and find yout router model and follow the instructions. Your router model will be somewhere on the actual router.
If you do not know the username and password to your router, and/or your parents are paranoid and wont let you touch it, then you’re out of luck. Becareful when port forwarding!
EDIT: There is a mac app that helps with port forwarding http://www.codingmonkeys.de/portmap/
Im not familiar with it but I hear that it makes port forwarding on macs much simplier. Thanks SpeedyDawg
If you have port forwarded successfully and you want people to connect, go to http://www.whatsmyip.org/ and give your friends the ip that shows up at the top. That’s what everyone will use to connect to your server from outside your home network.
Take a look at your server.properties file and make sure it looks mostly like this (you can turn off pvp/animals/monsters by setting them =false. You can find the serverproperties where ever the minecraft_server.jar is, it is created when you start the server. Open it with textedit and save to make changes.
You want server-ip= to be blank, do [b]NOT[/b] put the ip from http://www.whatsmyip.org/ in the server ip, if you do you’ll get a "failed to bind to port" error when you launch the server.
Your friends should be able to connect now! If you’re on the same network as the server, you connect using the internal ip of the computer hosting the server. You can find that by going to System Preferences > Network. At the top there should be
AirPort is connected to XXXXX and has the IP address 192.168.1.8.
Internal ips can be 192.168.X.X or 10.11.XX.X as well.
Type in the ip you find there in the multiplayer window in minecraft and connect to your server!
There! Now your server is up and running and people are able to connect!
However, have you heard about all these cool mods and wrappers with colored text and anti-grief? How do you get those on your server?
D. [b]Mods[/b]
(Credit for this goes to bwooffitt Source)
EDIT: If you are looking for Bukkit help, please go to this thread!
Lets start with adding mods.
[b]Note for hmod: He has pretty much discontinued his mod, and bukkit will be replacing hmod. I have not worked with bukkit at all yet, but i will see if I can work with it and test it and see how it works on macs. I dont know the status of runecraft, and if superllama is still making it.[/b]
(Make sure you do this while the server is offline)
First, download the mod you want and unzip the file somewhere. (Note, some mods use .rar format, which macs cant open natively. Download RarExanpder to fix that)
Inside the unzipped folder will be a lot of .class files, these are the files you want. Simply drag and drop them into the same directory as your minecraft_server.jar and then open terminal again and
Cd to the minecraft directory
And then type
Jar uvf minecraft_server.jar *list of .class files* and press enter
jar uvf minecraft_server.jar _do.class ao.class bx.class hn.class hx.class ia.class
Thats for superllamas magic mod called "runecraft" Note for Hey0's mod, download it find the Minecraft_mod.jar file, and place it in your minecraft_folder. If you are running simpleserver, go into simpleserver properties and set "AlernatejarFile=Minecraft_Mod.jar" then launch SImpleserver and the mod will be applied. Im not 100% sure how to run hey0 without simpleserver. If I had to guess, launch Minecraft_Mod.jar instead of minecraft_server.jar
[b]Hey0 NO LONGER uses class files to apply the mod, he has his own .jar file now. Use that! If you cant get it to work, check hydriver's workaround in his post here
After pressing enter It will give you this output
And the mod should be applied on your server!
Remember, you cant just type these into terminal without having the .class files in the same folder/directory as your minecraft_server.jar
E. [b]Adding Java Wrappers to your server[/b]
(Partial credit and special thanks goes to SpiegalPwns his wrapper for helping me get the first wrapper installed so I could work from there.)
E.b [b]Oneclick launching Wrappers[/b] SpiegalPwns and Czahriens wrappers will require you to go to terminal and cd to the file and type java jar- [name of wrapper]. Its tedious. So Ive created these files to use for oneclick launching. Oneclick launcher for SpeigalPwns' wrapper Oneclick Launcher for Czahriens wrapper
open the .command file with textedit and edit the filepath to fit your filepath to the folder containing your minecraft_server.jar.
Then open terminal and type chmod +x [path to the .command file] and press enter. Place the .command file where ever you like and you will be able to launch the server with a double click!
Not every java wrapper is installed the same and not all of them work on macs (but as mac users you should be used to that by now :tongue.gif:). I will do a case by case installation guide. These are the wrappers that work on macs. [b]Note: In most cases for installing wrappers you'll want your minecraft_server.jar in its own separate folder on your desktop.[/b]
SpiegalPwns' SimpleServer [b] My favorite wrapper for macs, I'd highly recommend getting this wrapper! Has autobackup and block firewall.[/b]
Download SimpleServer and unzip it. Drag all the files in the SimpleServer folder into the same folder that your minecraft_server.jar is located. Go into terminal and cd to the folder that has minecraft_server.jar and all the files from SimpleServer. Then type
java -jar SimpleServer.jar
It will give you this
Do as it says and press enter. Then type
java -jar SimpleServer.jar
again. It will give some warnings
but dont be alarmed by them.
After that, everytime you want to launch the server again, you have to cd to the folder containing minecraft_server.jar and type
java -jar SimpleServer.jar
Czahrien's Java Wrapper
Download the file and unzip it. Drag all of the files in ServerLauncher_6.0-preview into the same folder as your minecraft_server.jar.
Go into terminal and cd to the folder with minecraft_server.jar in it.
Then type in
Java ServerLauncher
Thats how you'll launch the server from now on.
Thau's osx wrapper Most OSX friendly but lacks features atm
Download the small little app and put it where you like, I'd recommend the desktop. Launch it, and this window should come up
Noq quit the program and simply put your minecraft_server.jar in
/Users/Documents/MinecraftServerSettings/server
Launch Thau's wrapper again, it'll give a bunch of errors but still start.
Quit it completely again
Launch it one last time andall files should be written/created. It will work and give 1gig of ram.
Click on the app to launch your server.
F. [b]Map your alpha server[/b]
So now you've got a pretty good server rolling, but you want to see what it looks like. How do you do that?
There is a shoddy java version of cartographer that actually works. The problem is that its very limited, and will only map the terrain. However if all you want to do is see what your map basically looks like, download it. Place it anywhere you like, in a minecraft folder or where you like. Then make a copy of the world file from your server, and place it in the saves file of minecraft which is
Once there open up the shoddy java version, it will be a simple menu with 5 buttons.
And just click the world number that you named your server. [b]It will give no indication that its done or working[/b], but when it is done a .png file will appear in the same directory as the C.jar. It will look like this.
Right is south, left is north, down is west and top is east. If you ever need to figure out which way is north in game look at the clouds, they always travel north.
If you are waiting 10 minutes for the map to appear (unless its a huge map, and i mean HUGE map) you're waiting too long and restart the C.jar and make sure the world file is placed and named correctly.
Now, if you want more flexibility than that, there is another program. Minecraft topographical survey Its a great alternative to cartograph for macs, thing is I cant get it to work with larger maps. My server map is 15k chunks, and when told to load it gets stuck at 10k chunks. So untill that is fixed, this only works for smaller maps. Its very easy and self explainitory to use. Place the world files in the same place you would place them with cartographer and press render. This program shows its progress and tells you when its done!
Lastly, you should register your server here if you want it to be a public server. You can list your server as private as well and have the port/ip be hidden.
G. Running the server without terminal window (Credit to Tychoid and his post here)
If server admins want to keep their servers running without terminal running as an open window (if terminal is closed, so is the server), they can do this extra step so only the minecraft SMP server window is open:
Make an Applescript -
1) Open Applescript Editor (Applications/Utilities/Applescript Editor)
2) Type in:
Code: Select all
do shell script "/Users/~/Desktop/Minecraft/BootAlphaServer.command"
(directory will differ based on where your .command script is)
3) Save the script and run it from anywhere
Voila - you now have your SMP server running without terminal open.
P.S. In theory, you could completely bypass the whole .command setup using only an Applescript, but I haven't put in the time to figure it out.
I hope that helps!
If you are confused or have any questions or anything to correct or add please let me know! I hope this was helpful!
Nice tutorial :smile.gif: I'm using Thau's GUI for OS X which simplified a lot of things for me, but I have been unable to get any version of Cartographer to work under OS X :sad.gif: Any luck there?
Nice tutorial :smile.gif: I'm using Thau's GUI for OS X which simplified a lot of things for me, but I have been unable to get any version of Cartographer to work under OS X :sad.gif: Any luck there?
Indeed, I know how to get cartographer to work for mac. Ill add it to my guide. There is a shoddy java version he has that actually works. The problem is that its very limited, and will only map the terrain. However if all you want to do is see what it looks like download it, and place it anywhere you like, in a minecraft folder or where you like. Then make a copy of the world file from your server, and place it in the saves file of minecraft which is
Once there open up the shoddy java version, it will be a simple menu with 5 buttons.
And just click the world number that you named your server. It will give no indication that its done or working, but when it is done a .png file will appear in the same directory as the C.jar. It will look like this.
Right is south, left is north, down is west and top is east. If you ever need to figure out which way is north in game look at the clouds, they always travel north.
If you are waiting 10 minutes for the map to appear (unless its a huge map, and i mean HUGE map) you're waiting too long and restart the C.jar and make sure the world file is placed and named correctly.
Now, if you want more flexibility than that, there is another program. Minecraft topographical survey Its a great alternative to cartograph for macs, thing is I cant get it to work with larger maps. My server map is 15k chunks, and when told to load it gets stuck at 10k chunks. So untill that is fixed, this only works for smaller maps. Its very easy and self explainitory to use. Place the world files in the same place you would place them with cartographer and press render. This program shows its progress and tells you when its done!
i have followed your instructions and everything is working fine, including the mods.
however.. i've seen on videos on websites that people can just type in commands in-game via chat to access items and stuff. i can only seem to do this when entering the command in on Terminal. any ideas?
using a Mac
What do you mean exactly? You talking about the /give commands? In terminal you type give <player> <item ID> <amount> right?
In game you would type the same thing but adding a slash. So it would look like this
/give <player> <item id> <amount>
So i would type
/give swook 20 64
and that would give me 64 glass.
Now if you're using Hey0's mod (and maybe llamas mod, I dont know) the syntax changes.
It becomes /give <item id> <amount> (player)
You dont have to type your own name to give you something, it will default to you. Type your a name when you want to give it to someone else.
Using the mod I would type
/give 20 64
and it would give me 64 glass.
If I wanted to give it to a friend, I'd type
/give 20 64 Player2
If you dont know the data values for items, here they are. Source: Minecraft wiki
EDIT: Lol I dont know why but the data values picture changed.
Alternatively you can go here for the link to that picture.
Okay I can't seem to get the BootAlphaServer.command file to work. I can't save it as .command (Mac 10.5.8), and I can't edit the one to download. Any idea what I can do?
Nevermind, I figured it out. Great guide by the way. Will post my outcome soon.
I do have a question regarding mods. I noticed MCAdmin can't be run on a Mac, as it is a .exe
Also I am attempting to change colors, and maybe make new ranks, and don't know how to edit that either. Any help would be appreciated.
Nevermind, I figured it out. Great guide by the way. Will post my outcome soon.
I do have a question regarding mods. I noticed MCAdmin can't be run on a Mac, as it is a .exe
Also I am attempting to change colors, and maybe make new ranks, and don't know how to edit that either. Any help would be appreciated.
Hmmmmm, sorry.
Dont know much about MCadmin or any of his stuff. Havent looked into it at all.
Hey0's mod will let you make colors per usergroup. It looks like it will allow you to also make usergroups. I havent played around with either enough to know for sure. Im sorry I cant provide more information. :sad.gif:
Great guide :smile.gif: Just a question though: How do I get the Cartographer alternative to work for a mac? When I download it, it's a .exe file :sad.gif:
Hey i'm having some trouble, i try to put in "java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui" but it says it cant access it. Same with the .command file. Help!
After some messing around I finally figured out how to make them work. Thanks anyways.
Im sorry I couldn't be of any help. :sad.gif:
Quote from Froggy_00 »
Great guide :smile.gif: Just a question though: How do I get the Cartographer alternative to work for a mac? When I download it, it's a .exe file :sad.gif:
Did you download the shoddy java verion? It should be a jar file. The rest of the instructions are up above. Ask if you have any questions or are confused about the instructions! :smile.gif:
Hey i'm having some trouble, i try to put in "java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui" but it says it cant access it. Same with the .command file. Help!
Where are you trying to put the java -xmx(etc) in? Terminal? Does it say it cant access the file or "no such file or directory"? Whats the exact error you're getting?
Make sure that terminal is in the same folder/directory as the minecraft_server.jar. You cant enter java xmx(etc) without "cd"'ing to the folder containing your minecraft_server.jar.
Do this by going to terminal and typing
cd
then press space then drag the folder (not minecraft_Server.jar) containing your minecraft_server.jar into terminal. You will get something like
cd Users/bob/desktop/minecraftserverfolder
in the terminal. That is the filepath to the folder containing your minecraft server.jar. Once you have
cd *filepath to your folder containing minecraft_Server.jar* press enter
Terminal will now say something like
new-host-5 Minecraft folder *YourAccountOnYourMac*$
that is good, you want that, that means terminal is now in the minecraft server folder.
then put in
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
Press enter and it should launch the server.
I hope this wasn't too confusing. :smile.gif:
As for the .command file, what are you trying to do? Launch it? Which one did you download, the BootAlphaServer.command one?
the hyphens befor Xmx and Xms were small in Terminal, compare
-
–
For some reason it was giving me an error until I deleted the hyphen from copying and typed my own.
Secondly to save as .command file either save from TextEdit go to Format->Make Plain Text (Command+T I think) then you can save as whatever file extension you want.
Thanks again Swook.
Rollback Post to RevisionRollBack
It is pitch black. You are likely to be eaten by a Grue.
Made an account just to post thank you for the easy guide and also two things:
When copying and pasting
the hyphens befor Xmx and Xms were small in Terminal, compare
-
–
For some reason it was giving me an error until I deleted the hyphen from copying and typed my own.
Secondly to save as .command file either save from TextEdit go to Format->Make Plain Text (Command+T I think) then you can save as whatever file extension you want.
Thanks again Swook.
Interesting Ill look into that hyphen thing.
Also thats the first way i tried saving a .command file. however it turns this
cd /Users/~/Desktop/Minecraft\ Folder/Minecraft\ Server
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
into this
So Ive just been using the downloaded command files and editing them to make the one click launchers.
Im glad My guide was useful!
EDIT: Major HERP DERP here. I misread your instructions. THANK YOU SO MUCH for pointing that out to me! Ill edit my guide to reflect that! Thank you!
Hey0's new mod updates aren't working at all with my server, and I'm currently having a lot of problems trying to get the server to actually work. Any idea what this may be?
No Idea, Im having issues with it too. I saw your post in his thread.
Is it giving you a **** ton of spam?
EDIT: I fixed the spam. Server is a different story.
>> Starting SimpleServer RC 5.5
Sep 18, 2010 7:39:54 PM FlatFileSource loadKits
SEVERE: Exception while reading kits.txt
java.lang.ArrayIndexOutOfBoundsException: 2
at FlatFileSource.loadKits(FlatFileSource.java:216)
at FlatFileSource.initialize(FlatFileSource.java:19)
at etc.loadData(etc.java:122)
at bp.<init>(bp.java:7)
at net.minecraft.server.MinecraftServer.<init>(SourceFile:40)
at net.minecraft.server.MinecraftServer.main(SourceFile:471)
2010-09-18 19:39:54 [INFO] Starting minecraft server version 0.2.1
2010-09-18 19:39:54 [INFO] Loading properties
2010-09-18 19:39:54 [SEVERE] Exception while reading kits.txt
java.lang.ArrayIndexOutOfBoundsException: 2
at FlatFileSource.loadKits(FlatFileSource.java:216)
at FlatFileSource.initialize(FlatFileSource.java:19)
at etc.loadData(etc.java:122)
at ReloadThread.run(ReloadThread.java:18)
at java.lang.Thread.run(Thread.java:637)
2010-09-18 19:39:54 [INFO] Starting Minecraft server on 127.0.0.1:25566
2010-09-18 19:39:54 [SEVERE] Exception while reading kits.txt
java.lang.ArrayIndexOutOfBoundsException: 2
at FlatFileSource.loadKits(FlatFileSource.java:216)
at FlatFileSource.initialize(FlatFileSource.java:19)
at etc.loadData(etc.java:122)
at ReloadThread.run(ReloadThread.java:18)
at java.lang.Thread.run(Thread.java:637)
2010-09-18 19:39:55 [INFO] Preparing level "World2"
2010-09-18 19:39:55 [INFO] Preparing start region
2010-09-18 19:39:55 [SEVERE] Exception while reading kits.txt
java.lang.ArrayIndexOutOfBoundsException: 2
at FlatFileSource.loadKits(FlatFileSource.java:216)
at FlatFileSource.initialize(FlatFileSource.java:19)
at etc.loadData(etc.java:122)
at ReloadThread.run(ReloadThread.java:18)
at java.lang.Thread.run(Thread.java:637)
2010-09-18 19:39:55 [SEVERE] Exception while reading kits.txt
java.lang.ArrayIndexOutOfBoundsException: 2
at FlatFileSource.loadKits(FlatFileSource.java:216)
at FlatFileSource.initialize(FlatFileSource.java:19)
at etc.loadData(etc.java:122)
at ReloadThread.run(ReloadThread.java:18)
at java.lang.Thread.run(Thread.java:637)
2010-09-18 19:39:55 [SEVERE] Exception while reading kits.txt
java.lang.ArrayIndexOutOfBoundsException: 2
at FlatFileSource.loadKits(FlatFileSource.java:216)
at FlatFileSource.initialize(FlatFileSource.java:19)
at etc.loadData(etc.java:122)
at ReloadThread.run(ReloadThread.java:18)
at java.lang.Thread.run(Thread.java:637)
Preparing spawn area: 0%
2010-09-18 19:39:55 [SEVERE] Exception while reading kits.txt
java.lang.ArrayIndexOutOfBoundsException: 2
at FlatFileSource.loadKits(FlatFileSource.java:216)
at FlatFileSource.initialize(FlatFileSource.java:19)
at etc.loadData(etc.java:122)
at ReloadThread.run(ReloadThread.java:18)
at java.lang.Thread.run(Thread.java:637)
2010-09-18 19:39:55 [SEVERE] Exception while reading kits.txt
java.lang.ArrayIndexOutOfBoundsException: 2
at FlatFileSource.loadKits(FlatFileSource.java:216)
at FlatFileSource.initialize(FlatFileSource.java:19)
at etc.loadData(etc.java:122)
at ReloadThread.run(ReloadThread.java:18)
at java.lang.Thread.run(Thread.java:637)
2010-09-18 19:39:55 [SEVERE] Exception while reading kits.txt
java.lang.ArrayIndexOutOfBoundsException: 2
at FlatFileSource.loadKits(FlatFileSource.java:216)
at FlatFileSource.initialize(FlatFileSource.java:19)
at etc.loadData(etc.java:122)
at ReloadThread.run(ReloadThread.java:18)
at java.lang.Thread.run(Thread.java:637)
2010-09-18 19:39:55 [SEVERE] Exception while reading kits.txt
java.lang.ArrayIndexOutOfBoundsException: 2
at FlatFileSource.loadKits(FlatFileSource.java:216)
at FlatFileSource.initialize(FlatFileSource.java:19)
at etc.loadData(etc.java:122)
at ReloadThread.run(ReloadThread.java:18)
at java.lang.Thread.run(Thread.java:637)
Preparing spawn area: 4%
For some reason with this new update my .command file can't open up minecraft_server.jar
If I ever get back into running a server Ill post an updated guide for macs if there isnt a better one out there already.
Hey everyone, this forum seems to have little OSX support and Ive seen a few questions asking about being able to run a server on a mac. In order to try and answer some questions regarding that Ive compiled this information.
This is my first guide so if there are parts you dont understand or are confused about, please let me know. Hopefully this guide is not too redundant to the guides already here. This guide also assumes you are like me, aren't computer illiterate, but didn't know how to cd to a file directory before all this.
3/30/2011 EDIT: Jackflakes developed a easy server setup tool for macs. Check it out
Note, this is not all my information, its information Ive gathered from ianfitz100, bwooffitt SpiegalPwns and amberkilloran who were a major help in running my own server. Ive just compiled it together in one place, they are the people with computer smarts.
Index
A. OSX Minecraft Servers
B. Giving more RAM
C. Getting people to connect
D. Mods
E. Java wrappers
F. Map your alpha server
G. Running the server without terminal window.
A. [b]OSX Minecraft servers[/b]
First and foremost you need to download the minecraft_server.jar from the minecraft website and place it in a folder of your conveince. I.E. A folder called “Minecraft” on your desktop.
Now if you try to open the .jar now it will look like this
And if all you want to do is play by yourself or with your friends at your house this is all you need. You’re done.
However, if you want to host this server over the internet and give it more ram to work with heres what you do.
B. [b]Giving more RAM and One click launching[/b]
(All credit for this goes to amberkilloran and the post here)
If you want to skip all this and get the .command file, download it here, but you will have to edit the file so the file path text matches your system, and put it in the same folder as your minecraft_server.jar.
Otherwise you'll have to type
Everytime you want to start the server
Lets get it more ram first. You will need textedit, terminal and the file you had minecraft_server.jar in.
Read this carefully
In text edit type cd then drag the file that your minecraft_server.jar is into [b]terminal[/b] and copy and paste what shows up in terminal.
[b](small typo in the textedit file, should be Users at front, not sers)[/b]
then under that put
java –Xmx1024M –Xms1024M –jar minecraft_server.jar nogui
(Note: If you want to run it with more than 1 gig of ram, change the 1024 with 2048 for 2 gigs)
Now your text edit should look like this.
Now save it as whatever you want but it must end in “.command” In this case we’ll name it BootAlphaServer.command. To save the file as command in textedit,(credit for this goes to Ithuraen and his post) press shift+(command)+T or go to Format and select make plain text. Name it BootAlphaServer.command and save. I downloaded my .command file from here.
If you want the .command file, download it here, but you will have to edit the file so the file path text matches your system, and put it in the same folder as your minecraft_server.jar.
Once that is set up, you’re not done yet, go back to terminal and enter
Chmod +x *path to your BootAlphaServer.command* and press enter
Now click on BootAlphaServer.command and the server should boot up.
C. [b]Getting people to connect[/b]
Portforwarding I cant help you with, and unfortunately it is a big pain in the butt to do and theres no single guide to port forward.
[b]Port Forwarding[/b]
is crucial to setting up a server that people outside your network can connect to. You want to open up port 25565 typically for minecraft. To do that you must go to http://portforward.com/ and find yout router model and follow the instructions. Your router model will be somewhere on the actual router.
If you do not know the username and password to your router, and/or your parents are paranoid and wont let you touch it, then you’re out of luck. Becareful when port forwarding!
EDIT: There is a mac app that helps with port forwarding http://www.codingmonkeys.de/portmap/
Im not familiar with it but I hear that it makes port forwarding on macs much simplier. Thanks SpeedyDawg
If you have port forwarded successfully and you want people to connect, go to
http://www.whatsmyip.org/ and give your friends the ip that shows up at the top. That’s what everyone will use to connect to your server from outside your home network.
Take a look at your server.properties file and make sure it looks mostly like this (you can turn off pvp/animals/monsters by setting them =false. You can find the serverproperties where ever the minecraft_server.jar is, it is created when you start the server. Open it with textedit and save to make changes.
You want server-ip= to be blank, do [b]NOT[/b] put the ip from http://www.whatsmyip.org/ in the server ip, if you do you’ll get a "failed to bind to port" error when you launch the server.
Your friends should be able to connect now! If you’re on the same network as the server, you connect using the internal ip of the computer hosting the server. You can find that by going to System Preferences > Network. At the top there should be
Internal ips can be 192.168.X.X or 10.11.XX.X as well.
Type in the ip you find there in the multiplayer window in minecraft and connect to your server!
There! Now your server is up and running and people are able to connect!
However, have you heard about all these cool mods and wrappers with colored text and anti-grief? How do you get those on your server?
D. [b]Mods[/b]
(Credit for this goes to bwooffitt Source)
EDIT: If you are looking for Bukkit help, please go to this thread!
Lets start with adding mods.
[b]Note for hmod: He has pretty much discontinued his mod, and bukkit will be replacing hmod. I have not worked with bukkit at all yet, but i will see if I can work with it and test it and see how it works on macs. I dont know the status of runecraft, and if superllama is still making it.[/b]
(Make sure you do this while the server is offline)
First, download the mod you want and unzip the file somewhere. (Note, some mods use .rar format, which macs cant open natively. Download RarExanpder to fix that)
Inside the unzipped folder will be a lot of .class files, these are the files you want. Simply drag and drop them into the same directory as your minecraft_server.jar and then open terminal again and
Cd to the minecraft directory
And then type
Jar uvf minecraft_server.jar *list of .class files* and press enter
That is for superllamas mod
Thats for superllamas magic mod called "runecraft"
Note for Hey0's mod, download it find the Minecraft_mod.jar file, and place it in your minecraft_folder. If you are running simpleserver, go into simpleserver properties and set "AlernatejarFile=Minecraft_Mod.jar" then launch SImpleserver and the mod will be applied. Im not 100% sure how to run hey0 without simpleserver. If I had to guess, launch Minecraft_Mod.jar instead of minecraft_server.jar[b]Hey0 NO LONGER uses class files to apply the mod, he has his own .jar file now. Use that! If you cant get it to work, check hydriver's workaround in his post here
After pressing enter It will give you this output
And the mod should be applied on your server!
Remember, you cant just type these into terminal without having the .class files in the same folder/directory as your minecraft_server.jar
E. [b]Adding Java Wrappers to your server[/b]
(Partial credit and special thanks goes to SpiegalPwns his wrapper for helping me get the first wrapper installed so I could work from there.)
E.b [b]Oneclick launching Wrappers[/b] SpiegalPwns and Czahriens wrappers will require you to go to terminal and cd to the file and type java jar- [name of wrapper]. Its tedious. So Ive created these files to use for oneclick launching.
Oneclick launcher for SpeigalPwns' wrapper
Oneclick Launcher for Czahriens wrapper
open the .command file with textedit and edit the filepath to fit your filepath to the folder containing your minecraft_server.jar.
Then open terminal and type chmod +x [path to the .command file] and press enter. Place the .command file where ever you like and you will be able to launch the server with a double click!
Not every java wrapper is installed the same and not all of them work on macs (but as mac users you should be used to that by now :tongue.gif:). I will do a case by case installation guide. These are the wrappers that work on macs. [b]Note: In most cases for installing wrappers you'll want your minecraft_server.jar in its own separate folder on your desktop.[/b]
SpiegalPwns' SimpleServer [b] My favorite wrapper for macs, I'd highly recommend getting this wrapper! Has autobackup and block firewall.[/b]
Download SimpleServer and unzip it. Drag all the files in the SimpleServer folder into the same folder that your minecraft_server.jar is located. Go into terminal and cd to the folder that has minecraft_server.jar and all the files from SimpleServer. Then type
It will give you this
Do as it says and press enter. Then type again. It will give some warnings
but dont be alarmed by them.
After that, everytime you want to launch the server again, you have to cd to the folder containing minecraft_server.jar and type
Czahrien's Java Wrapper
Download the file and unzip it. Drag all of the files in ServerLauncher_6.0-preview into the same folder as your minecraft_server.jar.
Go into terminal and cd to the folder with minecraft_server.jar in it.
Then type in
Thats how you'll launch the server from now on.
Thau's osx wrapper Most OSX friendly but lacks features atm
Download the small little app and put it where you like, I'd recommend the desktop. Launch it, and this window should come up
Noq quit the program and simply put your minecraft_server.jar in
/Users/Documents/MinecraftServerSettings/server
Launch Thau's wrapper again, it'll give a bunch of errors but still start.
Quit it completely again
Launch it one last time andall files should be written/created. It will work and give 1gig of ram.
Click on the app to launch your server.
F. [b]Map your alpha server[/b]
So now you've got a pretty good server rolling, but you want to see what it looks like. How do you do that?
There is a shoddy java version of cartographer that actually works. The problem is that its very limited, and will only map the terrain. However if all you want to do is see what your map basically looks like, download it. Place it anywhere you like, in a minecraft folder or where you like. Then make a copy of the world file from your server, and place it in the saves file of minecraft which is
Users/~/library/Application Support/minecraft/saves
and name it World1 or 2 or 3 or 4 or 5.
Once there open up the shoddy java version, it will be a simple menu with 5 buttons.
And just click the world number that you named your server. [b]It will give no indication that its done or working[/b], but when it is done a .png file will appear in the same directory as the C.jar. It will look like this.
Right is south, left is north, down is west and top is east. If you ever need to figure out which way is north in game look at the clouds, they always travel north.
If you are waiting 10 minutes for the map to appear (unless its a huge map, and i mean HUGE map) you're waiting too long and restart the C.jar and make sure the world file is placed and named correctly.
Now, if you want more flexibility than that, there is another program. Minecraft topographical survey Its a great alternative to cartograph for macs, thing is I cant get it to work with larger maps. My server map is 15k chunks, and when told to load it gets stuck at 10k chunks. So untill that is fixed, this only works for smaller maps. Its very easy and self explainitory to use. Place the world files in the same place you would place them with cartographer and press render. This program shows its progress and tells you when its done!
Lastly, you should register your server here if you want it to be a public server. You can list your server as private as well and have the port/ip be hidden.
G. Running the server without terminal window (Credit to Tychoid and his post here)
If server admins want to keep their servers running without terminal running as an open window (if terminal is closed, so is the server), they can do this extra step so only the minecraft SMP server window is open:
I hope that helps!
If you are confused or have any questions or anything to correct or add please let me know! I hope this was helpful!
Totally New at running servers? Click me!
I wonder if sansavarous is online...
Check out my Let's Play, Now in Season 2! Also, TF2 commentaries!
Awesome generated world?
viewtopic.php?f=35&t=56150
Glad it helped!
Totally New at running servers? Click me!
I wonder if sansavarous is online...
Indeed, I know how to get cartographer to work for mac. Ill add it to my guide. There is a shoddy java version he has that actually works. The problem is that its very limited, and will only map the terrain. However if all you want to do is see what it looks like download it, and place it anywhere you like, in a minecraft folder or where you like. Then make a copy of the world file from your server, and place it in the saves file of minecraft which is
Users/~/library/Application Support/minecraft/saves
and name it World1 or 2 or 3 or 4 or 5.
Once there open up the shoddy java version, it will be a simple menu with 5 buttons.
And just click the world number that you named your server. It will give no indication that its done or working, but when it is done a .png file will appear in the same directory as the C.jar. It will look like this.
Right is south, left is north, down is west and top is east. If you ever need to figure out which way is north in game look at the clouds, they always travel north.
If you are waiting 10 minutes for the map to appear (unless its a huge map, and i mean HUGE map) you're waiting too long and restart the C.jar and make sure the world file is placed and named correctly.
Now, if you want more flexibility than that, there is another program. Minecraft topographical survey Its a great alternative to cartograph for macs, thing is I cant get it to work with larger maps. My server map is 15k chunks, and when told to load it gets stuck at 10k chunks. So untill that is fixed, this only works for smaller maps. Its very easy and self explainitory to use. Place the world files in the same place you would place them with cartographer and press render. This program shows its progress and tells you when its done!
I hope that helps!
Totally New at running servers? Click me!
I wonder if sansavarous is online...
What do you mean exactly? You talking about the /give commands? In terminal you type give <player> <item ID> <amount> right?
In game you would type the same thing but adding a slash. So it would look like this
/give <player> <item id> <amount>
So i would type
/give swook 20 64
and that would give me 64 glass.
Now if you're using Hey0's mod (and maybe llamas mod, I dont know) the syntax changes.
It becomes /give <item id> <amount> (player)
You dont have to type your own name to give you something, it will default to you. Type your a name when you want to give it to someone else.
Using the mod I would type
/give 20 64
and it would give me 64 glass.
If I wanted to give it to a friend, I'd type
/give 20 64 Player2
If you dont know the data values for items, here they are. Source: Minecraft wiki
EDIT: Lol I dont know why but the data values picture changed.
Alternatively you can go here for the link to that picture.
I hope this helped!
Totally New at running servers? Click me!
I wonder if sansavarous is online...
Okay I can't seem to get the BootAlphaServer.command file to work. I can't save it as .command (Mac 10.5.8), and I can't edit the one to download. Any idea what I can do?Nevermind, I figured it out. Great guide by the way. Will post my outcome soon.
I do have a question regarding mods. I noticed MCAdmin can't be run on a Mac, as it is a .exe
Also I am attempting to change colors, and maybe make new ranks, and don't know how to edit that either. Any help would be appreciated.
Hmmmmm, sorry.
Dont know much about MCadmin or any of his stuff. Havent looked into it at all.
Hey0's mod will let you make colors per usergroup. It looks like it will allow you to also make usergroups. I havent played around with either enough to know for sure. Im sorry I cant provide more information. :sad.gif:
Totally New at running servers? Click me!
I wonder if sansavarous is online...
Im sorry I couldn't be of any help. :sad.gif:
Did you download the shoddy java verion? It should be a jar file. The rest of the instructions are up above. Ask if you have any questions or are confused about the instructions! :smile.gif:
Where are you trying to put the java -xmx(etc) in? Terminal? Does it say it cant access the file or "no such file or directory"? Whats the exact error you're getting?
Make sure that terminal is in the same folder/directory as the minecraft_server.jar. You cant enter java xmx(etc) without "cd"'ing to the folder containing your minecraft_server.jar.
Do this by going to terminal and typing
cd
then press space then drag the folder (not minecraft_Server.jar) containing your minecraft_server.jar into terminal. You will get something like
cd Users/bob/desktop/minecraftserverfolder
in the terminal. That is the filepath to the folder containing your minecraft server.jar. Once you have
cd *filepath to your folder containing minecraft_Server.jar* press enter
Terminal will now say something like
new-host-5 Minecraft folder *YourAccountOnYourMac*$
that is good, you want that, that means terminal is now in the minecraft server folder.
then put in
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
Press enter and it should launch the server.
I hope this wasn't too confusing. :smile.gif:
As for the .command file, what are you trying to do? Launch it? Which one did you download, the BootAlphaServer.command one?
Totally New at running servers? Click me!
I wonder if sansavarous is online...
When copying and pasting
the hyphens befor Xmx and Xms were small in Terminal, compare
-
–
For some reason it was giving me an error until I deleted the hyphen from copying and typed my own.
Secondly to save as .command file either save from TextEdit go to Format->Make Plain Text (Command+T I think) then you can save as whatever file extension you want.
Thanks again Swook.
Interesting Ill look into that hyphen thing.
Also thats the first way i tried saving a .command file. however it turns this
into this
So Ive just been using the downloaded command files and editing them to make the one click launchers.
Im glad My guide was useful!
EDIT: Major HERP DERP here. I misread your instructions. THANK YOU SO MUCH for pointing that out to me! Ill edit my guide to reflect that! Thank you!
Totally New at running servers? Click me!
I wonder if sansavarous is online...
Great! Awesome! :biggrin.gif:
However, unless Im missing something, and maybe linux and macs operate the same but this guide is for macs, not linux.
Totally New at running servers? Click me!
I wonder if sansavarous is online...
Hey0's new mod updates aren't working at all with my server, and I'm currently having a lot of problems trying to get the server to actually work. Any idea what this may be?
No Idea, Im having issues with it too. I saw your post in his thread.
Is it giving you a **** ton of spam?
EDIT: I fixed the spam. Server is a different story.
What does it say? Just a bunch of spam?
Totally New at running servers? Click me!
I wonder if sansavarous is online...
No idea, I dont know anything about MCzall or really MC anything.
How did you get MCzall on a mac? Am I missing something?
Totally New at running servers? Click me!
I wonder if sansavarous is online...