Difference between revisions of "Worlds"

From Minetest Wiki
Jump to navigation Jump to search
m (Some copy-editing)
(rename Minetest to Luanti)
 
(16 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== What is a Map? ==
+
{{Languages}}
  
A '''Map''' is a world who contains an environment and/or building(s).
+
A '''world''' contains an environment and/or building(s) you can play in. A world also includes all saved data associated with a world, like player data, mob positions, health, breath, and the like.
 +
 
 +
== Finding worlds ==
 +
See [https://forum.minetest.net/viewforum.php?f=12 Maps] in the [http://forum.minetest.net forums] to find downloads to worlds that others have made.
  
 
== Installation ==
 
== Installation ==
 +
'''To install worlds:''' You have to extract them first. Most of them are in <code>.zip</code>, some of them can be in <code>.7z</code>, <code>.rar</code> or <code>.tar.gz</code> format. To extract archive files other than <code>.zip</code> on Windows, you need [https://7-zip.org/ 7-Zip].
  
'''To install maps :''' you have to extract them first—most of them are in <code>.zip</code>, some of them can be in <code>.rar</code> or <code>.tar.gz</code> format. To extract <code>.tar.gz</code> and <code>.rar</code> files on Windows, you need 7-Zip.
+
For world creators, <code>.7z</code> is the recommended archive format as it is a free format (as compared to <code>.rar</code>) that typically allows for the best compression.
 
 
Put the extracted files in the “<code>worlds</code>” folder of your Minetest installation folder. The files such as <code>env_meta.txt</code> must be directly in the world’s folder (eg. “<code>worlds/my_world/env_meta.txt</code>”).
 
 
 
Often, the compressed file also contains a “<code>mods</code>” folder, his files have to be put into your “<code>mods</code>” folder to show some additional blocks.
 
 
 
* Location of the <code>worlds</code> (aka maps) folder within the folder structure of a run-in-place installation of Minetest, including some of the folders Minetest adds after some usage as client and server, as well as the positions (…) that custom-made content goes. Irrelevant folders are not expanded.
 
<pre>
 
minetest/
 
├── bin/
 
├── builtin/
 
├── cache/
 
├── client/
 
├── doc/
 
├── fonts/
 
├── games/
 
│  ├── minetest_game/
 
│  ├── minimal/
 
│  └── … (installed extra games)
 
├── locale/
 
├── mods/
 
│  └── … (installed extra mods and modpacks)
 
├── textures/
 
│  ├── base/
 
│  │  └── pack/
 
│  └── … (installed extra texturepacks)
 
└── worlds/
 
    └── … (saved worlds. Some with exclusive world mods)
 
</pre>
 
  
== Finding Maps ==
+
Put the extracted files in the “<code>worlds</code>” folder of your Luanti installation folder. To find the folder, select the "About" tab in the main menu and press "Open User Data Directory".
  
* See [https://forum.minetest.net/viewforum.php?f=12 Maps] in the [http://forum.minetest.net Forum]
+
The files such as <code>env_meta.txt</code> '''must''' be in the root of the world’s folder (eg. “<code>worlds/my_world/env_meta.txt</code>”).
  
 +
== World directory content ==
 +
See [https://github.com/minetest/minetest/blob/master/doc/world_format.md world_format.md] in the Luanti source tree.
  
 
== Schem file Creation / Import ==  
 
== Schem file Creation / Import ==  
 
+
A '''schem file (<code>.mts</code>)''' is used to import building(s) into a world with the [https://content.minetest.net/packages/sfan5/worldedit/ WorldEdit mod]. This file can be found in “<code>worlds/<my_world>/schems</code>” folder.
A '''schem file (<code>.mts</code>)''' is used to import building(s) into a world with the [https://forum.minetest.net/viewtopic.php?id=572 WorldEdit mod]. This file can be found in “<code>worlds/<my_world>/schems</code>” folder.
 
 
 
  
 
* To '''create a schem file''' :  
 
* To '''create a schem file''' :  
  
 
# Type in your world name (with WorldEdit activated).
 
# Type in your world name (with WorldEdit activated).
# Grant yourself all [[privileges]]: <code>/grant singleplayer all</code>¹
+
# Grant yourself all [[privileges]]: <code>/grantme all</code>
 
# Press <kbd>F5</kbd> to show the coordinates.
 
# Press <kbd>F5</kbd> to show the coordinates.
 
# Select the area to export by commands with <code>//pos1</code> and <code>//pos2</code> (these positions corresponds to an invisible diagonal of a cuboid selection).
 
# Select the area to export by commands with <code>//pos1</code> and <code>//pos2</code> (these positions corresponds to an invisible diagonal of a cuboid selection).
 
# Create your schem file with <code>//mtschemcreate <name of your schem file></code>. The file will be created into your “<code>worlds/<my_world>/schems</code>” folder.
 
# Create your schem file with <code>//mtschemcreate <name of your schem file></code>. The file will be created into your “<code>worlds/<my_world>/schems</code>” folder.
 
  
 
* To '''import a schem file''' :  
 
* To '''import a schem file''' :  
  
 
# Enter in your world (with WorldEdit activated).
 
# Enter in your world (with WorldEdit activated).
# Grant yourself all privileges: <code>/grant singleplayer all</code>¹
+
# Grant yourself all privileges: <code>/grantme all</code>
 
# Put a schem file into your “<code>worlds/<name of your new world>/schems</code>" folder.
 
# Put a schem file into your “<code>worlds/<name of your new world>/schems</code>" folder.
 
# Press <kbd>F5</kbd> to show the coordinatess.
 
# Press <kbd>F5</kbd> to show the coordinatess.
Line 63: Line 38:
 
# Import your schem file with <code>//mtschemplace <name of your schem file></code>
 
# Import your schem file with <code>//mtschemplace <name of your schem file></code>
  
 
+
== See also ==
¹ (name “singleplayer” by default)
+
* [[Minetestmapper]], a program to draw a 2D map of a Luanti world.
  
 
[[Category:Map]]
 
[[Category:Map]]
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]

Latest revision as of 23:13, 22 October 2024

Languages Language: English • Deutsch • Bahasa Melayu

A world contains an environment and/or building(s) you can play in. A world also includes all saved data associated with a world, like player data, mob positions, health, breath, and the like.

Finding worlds

See Maps in the forums to find downloads to worlds that others have made.

Installation

To install worlds: You have to extract them first. Most of them are in .zip, some of them can be in .7z, .rar or .tar.gz format. To extract archive files other than .zip on Windows, you need 7-Zip.

For world creators, .7z is the recommended archive format as it is a free format (as compared to .rar) that typically allows for the best compression.

Put the extracted files in the “worlds” folder of your Luanti installation folder. To find the folder, select the "About" tab in the main menu and press "Open User Data Directory".

The files such as env_meta.txt must be in the root of the world’s folder (eg. “worlds/my_world/env_meta.txt”).

World directory content

See world_format.md in the Luanti source tree.

Schem file Creation / Import

A schem file (.mts) is used to import building(s) into a world with the WorldEdit mod. This file can be found in “worlds/<my_world>/schems” folder.

  • To create a schem file :
  1. Type in your world name (with WorldEdit activated).
  2. Grant yourself all privileges: /grantme all
  3. Press F5 to show the coordinates.
  4. Select the area to export by commands with //pos1 and //pos2 (these positions corresponds to an invisible diagonal of a cuboid selection).
  5. Create your schem file with //mtschemcreate <name of your schem file>. The file will be created into your “worlds/<my_world>/schems” folder.
  • To import a schem file :
  1. Enter in your world (with WorldEdit activated).
  2. Grant yourself all privileges: /grantme all
  3. Put a schem file into your “worlds/<name of your new world>/schems" folder.
  4. Press F5 to show the coordinatess.
  5. Place a position where you want with command: //pos1
  6. Import your schem file with //mtschemplace <name of your schem file>

See also