Difference between revisions of "Minecraft"

From ArchWiki
Jump to: navigation, search
(Split LWJGL into its own section, add note about NVidia incompatibilities)
(AMIDST: Added section under "Extras".)
(18 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
[[ja:Minecraft]]
 
[[ja:Minecraft]]
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...
 
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 plus a script for launching it.
  
==Setting Up Java==
+
Otherwise, just get the [https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar Minecraft jar file].
Minecraft should work out-of-the-box with a couple of the various Java JREs.
+
 
+
===OpenJDK6===
+
Minecraft should 'just work' with OpenJDK6. Install it from community:
+
# pacman -S openjdk6
+
 
+
===OpenJDK7===
+
OpenJDK7 works with Minecraft too:
+
# pacman -S jre7-openjdk
+
 
+
===LWJGL===
+
If Minecraft has issues (sticky keys, stuck on pause menu, etc.), you can force it to use the newest version of LWJGL.
+
{{warning|The OpenGL implementation provided by at least some proprietary [[NVIDIA]] drivers ({{pkg|nvidia-304xx}}) is incompatible with the version of LWJGL that minecraft provides.
+
For these systems, it may be necessary to update LWJGL for minecraft to run, or switch to the {{pkg|noveau}} driver.}}
+
 
+
*Download LWJGL 2.8.4 from [http://sourceforge.net/projects/java-game-lib/files/Official%20Releases/LWJGL%202.8.4/lwjgl-2.8.4.zip/download here]
+
*Replace the following files in .minecraft/bin/ with the corresponding versions in lwjgl-2.8.4/jar
+
 
+
jinput.jar
+
lwjgl.jar
+
lwjgl_util.jar
+
*Replace the following files in .minecraft/bin/natives/ with lwjgl-2.8.4/natives/linux
+
libjinput-linux.so
+
libjinput-linux64.so
+
liblwjgl.so
+
liblwjgl64.so
+
libopenal.so
+
libopenal64.so
+
  
 
==Running Minecraft==
 
==Running Minecraft==
Line 42: Line 11:
  
 
Otherwise, you will need to manually launch Minecraft:
 
Otherwise, you will need to manually launch Minecraft:
  $ java -jar $HOME/.minecraft/minecraft.jar
+
  $ java -jar Minecraft.jar
  
To allocate more RAM to the game, include Xms and Xmx arguments:
+
==Extras==
$ java -jar -Xms1024M -Xmx2048M $HOME/.minecraft/minecraft.jar
+
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.
  
You can change these depending on the amount of RAM that you have. The Xms argument specifies the minimum amount of RAM to allocate to the program, and the Xmx argument specifies the maximum amount.
+
===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).
 +
{{aur|amidst}} 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]].
Line 56: Line 25:
 
==Minecraft Server==
 
==Minecraft Server==
 
There are two AUR packages for easy installation of a minecraft server.  
 
There are two AUR packages for easy installation of a minecraft server.  
For a server compatible with systemd, install {{ic|aur/minecraft-server-systemd}} and then enable the service:
+
For a server compatible with systemd, install {{ic|aur/minecraft-server}} and then enable the service:
 
  $ systemctl enable minecraftd
 
  $ systemctl enable minecraftd
 
  $ systemctl start minecraftd
 
  $ systemctl start minecraftd
Line 82: Line 51:
 
* 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.
 
* ...or you could use [[rsync]] to perform routine backups.
 
==Mods==
 
 
* Terrafirmacraft : http://www.terrafirmacraft.com
 
* Technic pack / Tekkit : http://www.technicpack.net
 
* List of mods : http://www.minecraftforum.net/topic/1434593-list-of-mods-for-146147-and-from-132-onward/#t
 
 
  
 
==Useful links==
 
==Useful links==
Line 96: Line 58:
 
* Data values (useful in multiplayer mode) : http://www.minecraftwiki.net/wiki/Data_values
 
* Data values (useful in multiplayer mode) : http://www.minecraftwiki.net/wiki/Data_values
 
* Reddit community : http://www.reddit.com/r/minecraft
 
* Reddit community : http://www.reddit.com/r/minecraft
* MineTest Tutorial : http://gotux.net/arch-linux/minetest-game-server/
 
  
 
[[Category:Gaming]]
 
[[Category:Gaming]]

Revision as of 15:18, 10 September 2013

Installation

minecraftAUR is available in the AUR. This package includes the official game plus a script for launching it.

Otherwise, just get the Minecraft jar file.

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.

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

You can also run a dedicated Minecraft server:

  • Follow the steps above to install Java
  • Download the multiplayer server from the Minecraft site
  • 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.)

  • To configure the server, take a look at this wiki page.

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.
  • To leave the server running unattended, look into tmux or screen.
  • You may wish to modify your server, to provide additional features:
    • Server Wrappers are one way to add administrative capabilities.
    • 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.
  • You might even set up a cron job with a mapper to generate periodic maps of your world.
  • ...or you could use rsync to perform routine backups.

Useful links