Differences between revisions 6 and 7
Revision 6 as of 2019-08-10 17:20:11
Size: 4678
Editor: ccts
Comment: revamp of this page (version 5.0.x of minetest, systemd templated unit files...)
Revision 7 as of 2019-08-10 17:23:59
Size: 4683
Editor: ccts
Comment: +also
Deletions are marked like this. Additions are marked like this.
Line 74: Line 74:
DebianPkg:minetest-server package comes with the systemd unit files, available as a template format if you plan to run several servers on the same host. DebianPkg:minetest-server package comes with the systemd unit files, also available as a template format if you plan to run several servers on the same host.

Translation(s): English - Français


Minetest

Minetest is a minecraft-inspired game written from scratch and licensed under the LGPL (version 2.1 or later). It supports both survival and creative modes along with multiplayer support, dynamic lighting, and an "infinite" map generator.

fr/Games/Minetest/minetest_01.png

fr/Games/Minetest/minetest_02.png

Packages

Several Debian packages are available, which you can install depending on your needs.

If you run Debian Stable, you might want to install Minetest from the backports. In short, add backports repositories, then install with apt install -t buster-backports minetest

Note: you cannot connect to a minetest 5.0.x server with a 0.4.x client.

Play

To start the game, just run Applications/Games/Minetest (Gnome) or run:

minetest

Configuration

The location of the configuration files is ~/.minetest (created during the first start of the game).

The configuration file contains minetest.conf player preferences (key, name, server address, ...), it is possible to change these settings in the file or directly from the game.

More details on the page on the minetest wiki.

In-game Commands

Display the in-game console with F10 key.

The available in-game commands are:

  • /status - Get the status of the server: roster, message of the day.

  • /privs - View privileges.

  • /privs <player> - See privileges 'player'. Requires privilege 'privs'.

  • /grant <player> <priv> - Leave a privilege to 'player'. Requires privilege 'privs'.

  • /revoke <player> <priv> - Remove a privilege to 'player'. Requires privilege 'privs'.

  • /time <time> - Set the time of day. 0 and 24000 correspond to midnight, 12000 and 5000 at noon at dawn. (time * 1000) . Requires privilege 'time'.

  • /shutdown - Turn off the server.

  • /setting <name> = <value> - Adds or replaces a parameter in the configuration file. The parameter can not be applied properly before restarting the server.

  • /teleport <x>,<y>,<z> - Teleport to the indicated position. Requires privilege 'teleport'.

Privileges

List of privileges:

  • Build - build/dig
  • Teleport - allow command /#teleport to teleport
  • Settime - authorize the /#time command to set the time
  • Privs - allow commands /#grant and /#revoke to add and remove privileges
  • Shout - to talk with other players.

Setting up a server

Network

For a public internet server, it is necessary that the specified port (30000 UDP by default) is open on the internet box/gateway.

Systemd

minetest-server package comes with the systemd unit files, also available as a template format if you plan to run several servers on the same host.

A Debian-minetest system user is set up right after installation of the package, which is used to run minetest servers. User home is in /var/games/minetest-server.

If you use the default systemd unit, server config file is located at /etc/minetest/minetest.conf. This unit is enabled right after package installation.

systemctl status minetest-server.service

If you plan to use the templated unit, server config file will be located at /etc/minetest/$MYSERVERNAME.conf. You have to enable the corresponding unit.

systemctl enable minetest-server@myservername.service

Server files

Server files, including worlds and their configuration (users registered, world specific settings...) are saved under /var/games/minetest-server/.minetest

Configuration

You can find a commented server configuration file on /usr/share/doc/minetest/minetest.conf.example.gz.

zcat /usr/share/doc/minetest/minetest.conf.example.gz > /etc/minetest/myservername.conf

Interesting parameters start with the Server / Singleplayer section, you may delete client parameters prior to that.

See also


CategoryGame | CategoryGameSimulation