Minecraft is a commercial game very popular with geeks. It's a game about blocks. You can build a computer out of the game thanks to logical switches. There is a parallel world. Zombies, pigs, spiders, sheeps, wolves that you can tame, etc...

+

[[ja:Minecraft]]

−

This wiki page is here to help you install the game :)

−

==Installation==

==Installation==

−

{{AUR|minecraft}} is available in the [[AUR]]. This package includes the official game plus a script for launching it.

+

{{AUR|minecraft}} is available in the [[AUR]]. This package includes the official game launcher plus a script to launch it.

−

==Setting Up Java==

+

Otherwise, just get the launcher on the [https://minecraft.net/download official download site].

−

Minecraft should work out-of-the-box with a couple of the various Java JREs.

−

===openJDK6===

+

==Running Minecraft==

−

Minecraft should just work with openjdk6 in community.

−

# pacman -S openjdk6

−

===openJDK7===

+

If you installed Minecraft from the AUR, you can use the included script:

−

If on openJDK7 minecraft gets stuck in the pause menu, you may be able to get it to work following these instructions:

Replace the following files in .minecraft/bin/ with the corresponding versions in lwjgl-2.8.1/jar

+

==Extras==

−

+

There are several [http://www.minecraftwiki.net/wiki/Programs_and_editors programs and editors] which can make your Minecraft experience a little easier to navigate. The most common of these programs are map generators. Using one of these programs will allow you to load up a Minecraft world file and render it as a 2D image, providing you with a top-down map of the world.

−

jinput.jar

−

lwjgl.jar

−

lwjgl_util.jar

−

−

And from .minecraft/bin/natives/ with lwjgl-2.8.1/natives/linux

−

−

libjinput-linux.so

−

libjinput-linux64.so

−

liblwjgl.so

−

liblwjgl64.so

−

libopenal.so

−

libopenal64.so

−

==Play the game==

+

===AMIDST===

−

Run minecraft with :

+

AMIDST (Advanced Minecraft Interface and Data/Structure Tracking) is a program that aids in the process of finding structures, biomes, and players in Minecraft worlds. It can draw the biomes of a world out and show where points of interest are likely to be by either giving it a seed, telling it to make a random seed, or having it read the seed from an existing world (in which case it can also show where players in that world are).

−

$ java -jar $HOME/.minecraft/minecraft.jar

+

{{aur|amidst}} is available in the [[AUR]].

−

If you want to allocate it more ram, do like this :

+

===mapcrafter===

−

$ java -jar -Xms1024M -Xmx2048M $HOME/.minecraft/minecraft.jar

+

mapcrafter is a fast Minecraft Map Renderer which renders worlds to maps with an 3D-isometric perspective. You can view these maps in any webbrowser and you can host them with a webserver for example for the players of your server. mapcrafter has a simple configuration file format to specify worlds to render, different rendermodes such as day/night/cave and can also render worlds from different rotations. {{aur|mapcrafter-git}} is available in the [[AUR]].

−

==Extras==

−

There are several [http://www.minecraftwiki.net/wiki/Programs_and_editors programs and editors] which can make your Minecraft experience a little easier to navigate. The most common of these programs are map generators. Using one of these programs will allow you to load up a Minecraft world file and render it as a 2D image, providing you with a top-down map of the world.

===Minutor===

===Minutor===

Minutor is described as a minimalistic map generator for Minecraft. Don't let this mislead you, it generates maps of existing worlds, not the other way around. You are provided with a simple GTK based interface for viewing your world. Several rendering modes are available, as well as custom coloring modes and the ability to slice through z-levels. {{aur|minutor}} is available in the [[AUR]].

Minutor is described as a minimalistic map generator for Minecraft. Don't let this mislead you, it generates maps of existing worlds, not the other way around. You are provided with a simple GTK based interface for viewing your world. Several rendering modes are available, as well as custom coloring modes and the ability to slice through z-levels. {{aur|minutor}} is available in the [[AUR]].

==Minecraft Server==

==Minecraft Server==

−

Minecraft is also available as a server, which will allow you to share a world with other players over the Internet. Here's what you'll need to do:

+

There are two AUR packages for easy installation of a minecraft server.

+

For a server compatible with systemd, install {{ic|aur/minecraft-server}} and then enable the service:

+

$ systemctl enable minecraftd

+

$ systemctl start minecraftd

+

* Monitor the minecraft server by running the below command as root:

+

# screen -r

+

(Remember that one can exit screen sessions with {{ic|^A,D}})

+

{{Note|This creates a user called minecraft with a home directory at {{ic|/srv/minecraft}}. Add your user to the {{ic|minecraft}} group to modify minecraft settings.}}

+

+

For a server that uses the legacy rc scripts, install {{ic|aur/minecraft-server}}

+

+

You can also run a dedicated Minecraft server:

* Follow the steps above to install [[Java]]

* Follow the steps above to install [[Java]]

−

* [http://www.minecraft.net/download.jsp Download] the multiplayer beta server jar from the Minecraft site

+

* [http://www.minecraft.net/download.jsp Download] the multiplayer server from the Minecraft site

−

* Just run the jarfile:

+

* Run the server:

+

$ java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui

(You can sub the -Xmx and -Xms values for the amount of memory you want your server to use. A good rule of thumb is one GB per ten users.)

(You can sub the -Xmx and -Xms values for the amount of memory you want your server to use. A good rule of thumb is one GB per ten users.)

−

$ java -jar -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui

* To configure the server, take a look at this [http://www.minecraftwiki.net/wiki/Server.properties wiki page].

* To configure the server, take a look at this [http://www.minecraftwiki.net/wiki/Server.properties wiki page].

===Extras===

===Extras===

−

* You may wish to create a specific folder for the server (/srv/minecraft, for example)

+

* Establishing a Minecraft-specific user is recommended for security. By running Minecraft under an unprivileged user account, anyone who successfully exploits your Minecraft server will only get access to that user account, and not yours.

−

* Establishing a Minecraft-specific user is recommended for security. The reason for this is that Minecraft, being beta software, may still contain security holes. By setting it to a specific, unprivileged user account, anyone who successfully exploits your Minecraft server will have only gotten access to your unprivileged user. (Meaning, do not ever run the server as root!) Here's how:

+

* To leave the server running unattended, look into [[tmux]] or [[screen]].

−

** Use 'adduser' to add the user

+

* You may wish to modify your server, to provide additional features:

−

** Disable that user's individual login by removing the password (you can still 'sudo su - mineserver' to open a shell as the user)

+

** [http://www.minecraftwiki.net/wiki/Programs_and_editors#Server_Wrappers Server Wrappers] are one way to add administrative capabilities.

−

** Set the new user as owner of all the server files (generated on the first run) by running 'chown -R mineserver:nobody /path/to/server'

+

** [http://bukkit.org/ Bukkit] is a powerful modding API, with a wide variety of plugins available.

−

* To leave the server running unattended, take a look into [[tmux]], [http://ss64.com/bash/nohup.html nohup] or [[screen]]

−

* Taking this a step further, you may even decide to create an init script for it, such as [https://github.com/Ahtenus/minecraft-init this one].

−

** (Please note that the script at that link doesn't quite work with Arch entirely. I haven't had the opportunity to troubleshoot it fully yet, but anyone with time and expertise to do so is encouraged to post one on my [[User_talk:DUc0N|talk page]] and I'll find a proper place for it.)

−

* Finally, you may wish to modify your server, to provide additional features:

−

** [http://www.minecraftwiki.net/wiki/Programs_and_editors#Server_Wrappers Server Wrappers] are one way to add administrative capabilities

−

** [http://bukkit.org/ Bukkit] is a powerful modding API, with a wide variety of plugins available

*** If installing the Dynmap plugin, you will need to install fontconfig and libcups to get it to work.

*** If installing the Dynmap plugin, you will need to install fontconfig and libcups to get it to work.

−

* You might even set up a cron job with a [http://www.minecraftwiki.net/wiki/Programs_and_editors#Mappers mapper] to generate periodic maps of your world

+

* You might even set up a cron job with a [http://www.minecraftwiki.net/wiki/Programs_and_editors#Mappers mapper] to generate periodic maps of your world.

−

* ...or you could use [[rsync]] to perform routine backups (though this is one function of the init script above)

Installation

Running Minecraft

If you installed Minecraft from the AUR, you can use the included script:

$ minecraft

Otherwise, you will need to manually launch Minecraft:

$ java -jar Minecraft.jar

Extras

There are several programs and editors which can make your Minecraft experience a little easier to navigate. The most common of these programs are map generators. Using one of these programs will allow you to load up a Minecraft world file and render it as a 2D image, providing you with a top-down map of the world.

AMIDST

AMIDST (Advanced Minecraft Interface and Data/Structure Tracking) is a program that aids in the process of finding structures, biomes, and players in Minecraft worlds. It can draw the biomes of a world out and show where points of interest are likely to be by either giving it a seed, telling it to make a random seed, or having it read the seed from an existing world (in which case it can also show where players in that world are).
amidstAUR is available in the AUR.

mapcrafter

mapcrafter is a fast Minecraft Map Renderer which renders worlds to maps with an 3D-isometric perspective. You can view these maps in any webbrowser and you can host them with a webserver for example for the players of your server. mapcrafter has a simple configuration file format to specify worlds to render, different rendermodes such as day/night/cave and can also render worlds from different rotations. mapcrafter-gitAUR is available in the AUR.

Minutor

Minutor is described as a minimalistic map generator for Minecraft. Don't let this mislead you, it generates maps of existing worlds, not the other way around. You are provided with a simple GTK based interface for viewing your world. Several rendering modes are available, as well as custom coloring modes and the ability to slice through z-levels. minutorAUR is available in the AUR.

Minecraft Server

There are two AUR packages for easy installation of a minecraft server.
For a server compatible with systemd, install aur/minecraft-server and then enable the service:

$ systemctl enable minecraftd
$ systemctl start minecraftd

Monitor the minecraft server by running the below command as root:

# screen -r

(Remember that one can exit screen sessions with ^A,D)

Note: This creates a user called minecraft with a home directory at /srv/minecraft. Add your user to the minecraft group to modify minecraft settings.

For a server that uses the legacy rc scripts, install aur/minecraft-server

Extras

Establishing a Minecraft-specific user is recommended for security. By running Minecraft under an unprivileged user account, anyone who successfully exploits your Minecraft server will only get access to that user account, and not yours.