-
Minetest version 5.6 or above.
If you don't have Minetest installed, you can download it from the official Minetest website.
-
Capture the Flag game for Minetest.
You can install the game from either the Minetest in-game ContentDB or from the ContentDB website.
Once you downloaded the .zip file from the ContentDB website, extract the .zip file and move the folder inside it to
[Minetest folder]/games
. -
WorldEdit mod for Minetest (optional).
Although this is optional, it is recommended that you install WorldEdit. Creating maps requires you to build the borders and barriers of the map manually. This tool speeds the process up and is also helpful when building other desired map structures.
You can install WorldEdit from either the Minetest in-game ContentDB or from the ContentDB website.
Once you download the .zip file from the ContentDB website, extract the .zip file and move the folder inside it to
[Minetest folder]/mods
.
-
A map shouldn't be too big or too small. The size of a map can vary depending on the terrain and structures that the map will have. With a typical map size, players should be able to reach the middle of the map with a full sprint bar before running out of sprint. A maximum of
230 x 230
blocks in surface area is recommended. -
If you are making a map for the official CTF server, it is important to note that your map should be unique and not similar to the maps that already exist in the game.
"The design of a map should encourage differing gameplay and tactics." - -sniper-
-
The map design shouldn't give any team advantages (such as having a better position or more resources). All teams should have an equal chance of winning.
-
Using certain mods on the world the map-making takes place might cause unpredicted problems to the finished map. Switching Minetest or CTF game versions in the midst of the map-making process might also cause problems.
-
Open Minetest and select the
Capture the Flag
game. -
Create a new world. You can use any mapgen. If you would like to use generated terrain, you can choose the
v7
orflat
mapgen. If you plan on building the terrain/structures yourself, you can choose thesinglenode
mapgen. -
After you click
Create
, uncheckEnable Damage
and checkCreative Mode
. Creative mode will enablemapedit
mode. -
If you would like to use WorldEdit, click
Select Mods
, selectWorldEdit
, and clickEnable modpack
. -
Click
Save
and play the world.
-
Grant yourself the "ctf_map_editor" priv by running
/grantme ctf_map_editor
. You can also use/grantme all
to grant yourself "ctf_map_editor" and all the other privs that will be useful while making a map, such as fly, noclip, fast, etc. -
You can hit Esc on your keyboard and click
Change Keys
to see your controls (such as how to fly, noclip, etc.). -
Tip: Run
/time 12000
and/set -n time_speed 0
if you want to disable nighttime while building the map./time 12000
/set -n time_speed 0
-
To use WorldEdit, first, you must select an area where your actions occur.
-
You can use the
WorldEdit Wand tool
to select your area. To select your area, you select the two opposite corners of the area. Left-click a node with the tool to make the node the first corner, and right-click to set the second. -
An alternative method is to stand at the point you would like to select and run
//1
in chat to set the first corner and//2
to set the second. -
The area within will be selected.
-
Remember to backup your world before risky operations!
-
Open your inventory. Under the
Crafting
tab, an earth icon is hidden behind the crafting options. Click it to open the WorldEdit GUI. -
These are the tools that you can use to alter the nodes within your selected area. You can experiment with the options.
-
To set the area you've selected earlier with a certain type of node, click
Set Nodes
, type in the name of the node you would like to set in the field, clickSearch
or press enter, and clickSet Nodes
. -
If you've selected a large area, WorldEdit might warn you in chat. Type
//y
in chat to continue. -
To replace a certain node type with another one in your selected area, select
Replace Nodes
. In the first field, type in the node you would like to replace; in the second field, type in the node you would like to replace with. -
To only place nodes where there are no nodes, you can replace
air
with the node you want to use.
It is your choice to build the barriers first or the map first. For this example, we are going to build the barriers first.
-
This is optional and only applies if you're using generated terrain.
-
It might be hard to place the outer barriers when the terrain outside your map area blocks your view.
-
To get rid of the extra terrain, first, select the area your map will be in with WorldEdit.
-
Once you select the area, run
//mtschemcreate <any name>
. For example://mtschemcreate map_terrain
-
You can copy the exported schems to a singlenode world and place the terrain there. But to keep it simple, you can just fly up in the air and place the terrain in the sky.
-
Enable fly, fly up, and find a suitable place. Place a corner with WorldEdit by running
//1
in chat. Then, run//mtschemplace <your schem name>
. For example://mtschemplace map_terrain
-
With that, your terrain should be placed there successfully. If you're unhappy with the result, you can go back down, pick another terrain, and do it again.
-
To make the bottom of the map indestructible so that players can't escape, select the bottom layer of your map and replace it with any indestructible node through the WorldEdit GUI, or the command
//s <node itemstring>
. For example://s ctf_map:ind_stone
To see the itemstring of a node when hovering over it inside your inventory, you can go to settings, search for "append", and enable
Append item name
.You can find a list of commonly used itemstrings during map making here.
-
Your outer barriers can be placed outside your map area, override the outer slice of your map, or leave parts of the map terrain/structures outside the barrier.
-
To place the outer barrier, select the area where the barrier will be with WorldEdit (this area should only be one node thick) and set it to
Indestructible Barrier Glass
(ctf_map:ind_glass
) or any type of indestructible node. Many nodes have indestructible variants, which you can use. You can place it using the WorldEdit GUI, or through the command//s <node itemstring>
. For example://s ctf_map:ind_glass
This method will penetrate the terrain/structures if you have some within your selected area.
-
To replace the terrain with a type of indestructible node and everything that is not terrain with the barrier glass like the image below, you can replace-inverse air with your indestructible node and then replace air with
Indestructible Barrier Glass
. -
To do that, select the area where the barrier will be with WorldEdit and replace-inverse air with your indestructible node through the WorldEdit GUI or using
//ri air <node itemstring>
. For example://ri air ctf_map:ind_stone
-
Then, without selecting a new area, replace
air
withIndestructible Barrier Glass
using the WorldEdit GUI, or through the command://r air ctf_map:ind_glass
-
After finishing your first barrier wall, proceed to build the other 3 sides of the barrier.
-
You can also make a roof using any type of indestructible node such as
Indestructible Barrier Glass
, but if you set your map area correctly later on, players shouldn't be able to escape through the roof. So, you do not necessarily need to add a roof.
-
If you are using the singlenode mapgen, players will not be able to move around without noclip. You have to set the area you want players to move in to
air
using WorldEdit. To do that, you can use the command://s air
-
When building your map, you can add any structure you want. Many blocks have indestructible variants, which you can use for builds you don't want players to destroy (use the admin pickaxe to break indestructible blocks).
-
You should also add the following:
-
Indestructible blocks under the position of the flag (the flag will be added later). The minimum surface area for this indestructible platform is
5x5
blocks (the flag should be in the middle). -
Team chests for each team. You can find them as a node in the inventory.
-
Optional: ores (such as iron, diamond, or mese ores). The number of ores for each team should be about the same to ensure that no team has an advantage (please note that mapgens such as v7 and flat come with ores).
-
- Your build-time barrier should be in the middle of the map. It is fine if it can't be precisely in the middle.
You can press F5 to show your current coordinates.
- The
Indestructible Red Barrier Glass
will disappear once build-time is over, so your build-time wall should not replace any part of the map terrain/structures. - To do this, select the area where the build-time barrier wall will be with WorldEdit (you can include terrain/structures in the selection too; don't worry they won't be replaced), and run:
//r air ctf_map:ind_glass_red
- If there are stone nodes within the barrier wall, you can replace them with
Indestructible Red Barrier Stone
, which will turn into normal stone once the match starts. To do this, maintain the same selected area as before and run://r default:stone ctf_map:ind_stone_red
- If there is water within the barrier wall, you can replace it with
Indestructible Water Barrier Glass
, which will turn into water once the match starts. To do this, maintain the same selected area as before and run://r default:water_source ctf_map:ind_water
- If there is lava within the barrier wall, you can replace it with
Indestructible Lava Barrier Stone
, which will turn into lava once the match starts. To do this, maintain the same selected area as before and run://r default:lava_source ctf_map:ind_lava
- If there are still breakable nodes within the barrier wall, you can leave them there, because if you set your team-zones correctly later on, players should be teleported back to base if they cross the barrier wall.
-
After you finished building your map, run the following command in chat:
/ctf_map editor
-
Click
Create New Map
. -
Follow the instructions given to you in chat and select the area your map is in, just like how you would select the area with WorldEdit. You can either punch a node to select or stand where you want to select and run the following command:
/ctf_map here
Make sure you selected your entire map and make sure you did not select any extra space. If you have decided to leave some terrain/structures outside your outer glass barrier, include them too.
-
After selecting your map area, run
/ctf_map editor
in chat again. This will open the Map Editor. -
Check
Map Enabled
unless you don't want to make the map available for play. If you are making the map for the official server, you will check this. -
In the license field, add the license of your map. Every map must have a license. The official CTF server will only accept free culture licenses like
CC BY-SA 4.0
. Please note that some CC licenses, such asCC BY-ND
are not free. You can find a list of CC licenses here.From the ctf_map README:
You can append any attribution you need to give to the
license
field (For example: If you modified someone's map or used one of their builds you'd list their name and what map/build of theirs that you modified/used). If you want to give more information, you can use theOther Info
field.Please make sure you know what you are doing when choosing a license.
-
In the
Folder Name
field, type in the name you want the map folder to be. For example, if your map name is "My Map", it is recommended for you to name the foldermy_map
. -
Give players a hint about your map in the
Map Hint
field, such as where the treasures/ores are. -
Use
Other Info
for additional information about the map. You can leave this empty. -
In the
Map Name
field, type in the name of your map. For example, "My Map". -
In the
Map Author(s)
field, type in the name(s) of the author(s) of your map. -
From the ctf_map README:
initial_stuff
are the items given to players at their (re)spawn. Theinitial_stuff
field is located in themap.conf
file. At least a pickaxe and some torches should be given in the map'sinitial_stuff
.An example of
initial_stuff
value that registers a stone pickaxe, 30 cobblestones, 5 torches and a pistol is given below.default:pick_stone,default:cobble 30,default:torch 5,ctf_ranged:pistol_loaded
-
Map Treasures
is optional. You can leave this field untouched. From the ctf_map README:(
Map Treasures
is) a list of treasures that can be added specifically for your map that don't end up in chests by default.Format:
[name];[min_count];[max_count];[max_stacks];[rarity];[TREASURE_VERSION];
rarity
is a value between 0 and 1 specifying the probability it will be added to a chest.TREASURE_VERSION
should currently be set to one.Example:
default:lava_source;1;10;1;0.2;1;default:water_source;1;10;1;0.2;1;
-
The
Skybox
is an image of a sky that will replace the default Minetest sky when players play your map. You can leave this asnone
to use the default Minetest sky or select one of the skyboxes. You can also add custom skyboxes. -
In
Map Modes
, you can select the modes that will be enabled for your map. By default, all modes are enabled. To disable/enable a mode, double click it. Disabled modes are in theAvailable Modes
box. -
Map Constants (from the ctf_map README):
Map Shadow Intensity
: Sets the intensity of the shadows.Map Gravity
: Gravitational constant of the map. (default = 1)Map Movement Speed
: Regulates the speed at which players move. (default = 1)Map Jump Height
: Regulates the height of jumps. (default = 1)Map start_time
: Sets time of the day the match begins at. Changing this field will instantly update the time of day in the world you are editing.0
is for midnight1000
is for 1 AM2000
is for 2 AM- etc.
-
Below the map constants, you will see a list of the different teams with a checkbox next to them. Use the checkbox to enable the teams that exist in your map.
Next, click the
Set Flag Pos
button below your first enabled team and punch the node where that team's flag will be on. This will place the flag on top of that node.Then, click the
Zone Bounds
button below theSet Flag Pos
button and select the team's team-zone. A team-zone is the area where the team's players interact within during build-time before the build-time barriers drop. During build-time, players who leave the team-zone will be teleported back to base. Even standing on the edge of the team-zone will teleport the player back to base, so make sure to include the barriers within your team-zone too, or players will get teleported back to base if they touch the barriers during build-time!The
Look position
is the direction the players will look when they spawn at base. You can leave this by default (default is: auto).Repeat the same process for every enabled team.
-
To add treasure chests to your map, click the
Add Chest Zone
button to add a chest-zone. A chest-zone is an area where the treasure chests will spawn randomly. You can add multiple chest zones. Click on theChest Zone - (0,0,0) - (0,0,0)
button for each chest zone to select each chest zone's area. You can only add one chest zone and have it cover the whole map, or you can add several different chest zones. You can edit the number of chests that will spawn randomly in each chest-zone.You can click the
X
button to remove a chest zone. Make sure each team gets around the same number of chests on their side! -
Once you finish configuring the map, click the
Finish Editing
button at the very bottom to finish.
-
You can find your exported map in
[Minetest folder]/worlds/[Map World]/schems/
. -
To test your map, copy that folder into
[Minetest folder]/games/capturetheflag/mods/ctf/ctf_map/maps
. You can go to your Minetest folder and paste the following into your file manager's search/directory to navigate there quickly:/games/capturetheflag/mods/ctf/ctf_map/maps
If you experience a problem with the above path on certain file managers, copy it without the
/
at the start. -
Create a new world in the Capture the Flag game with the
singlenode
mapgen. -
Disable
Creative Mode
, and play the game. -
Grant yourself the
ctf_admin
priv by running the following command:/grantme ctf_admin
-
To skip to your map, you can run the command
/ctf_next -f <map_name>
or run the command/maps
. Once you run the/maps
command, you will be in the "Map catalog" menu. Find your map in the list, select it, and press theSkip to map
button. -
To skip build-time, you can run the following command:
/ctf_start
-
To set yourself to the other team, run:
/grantme ctf_team_admin
Then:
/ctf_teams set singleplayer <team color>
For example:
/ctf_teams set singleplayer blue
From the ctf_map README:
If you choose to submit your map, include a screenshot of it in the exported map's folder. It should be taken without any texture packs enabled and must have an aspect ratio of 3:2 (screenshot
600px
x400px
is suggested).
You can take a screenshot easily by doing the following:
- Hide the HUD. By default F1 does that.
- Hide the chat log. By default F2 does that.
- See if your screenshot looks better with/without fog enabled. You can toggle it with F3 by default
- Try to find a good view that shows most of the map.
- (Optional) Increase your view range if important parts of the map cannot be seen. By default the = (or +) and - keys do that.
- Take a screenshot from Minetest. By default F12 does that.
- You can find the screenshot in
[Minetest folder]/screenshots
unless you have changed the path in the settings.
Crop the screenshot into the aspect ratio mentioned above using a tool of your choice, and put the screenshot inside your exported map's folder. It should be named
screenshot.png
.
To crop your screenshot, you can use this website.
- Now that you have finished making your map, you can submit it to the official CTF server. You can learn more about submission here.