Add category descriptions
[minetest_doc_basics.git] / init.lua
blob4d7da2cadd43c549564e35844e97fa691db16499
1 doc.new_category("basics",
3 name="Basics (WIP)",
4 build_formspec = doc.entry_builders.text,
5 description = "Everything you need to know about Minetest to get started with playing",
6 sorting = "custom",
7 sorting_data = {"minetest", "controls", "sneak", "cam", "minimap", "players", "inventory", "tools", "blocks", "liquids", "craft", "groups", "glossary", "online"},
8 })
10 doc.new_category("online",
12 name="Online multiplayer (WIP)",
13 description = "Help about playing online with other players",
14 build_formspec = doc.entry_builders.text,
15 sorting = "custom",
16 sorting_data = {"intro", "commands", "privs"},
22 doc.new_entry("basics", "minetest", {
23 name="Minetest",
24 data =
25 [=[Minetest is a free software game engine to create various games based on voxel gameplay, inspired by InfiniMiner, Minecraft, and the like. Minetest was originally created by Perttu Ahola (alias “celeron55”).
27 The basic idea of each game is always the same: The player is thrown into a huge world made out of cubes/blocks. Most of the time, these cubes make the landscape and these blocks can be removed and placed almost entirely freely. Using the collected items, new tools and other items can be crafted. Games (“subgames” in Minetest terms) in Minetest can, however, be much more complex than this.
29 A core concept of Minetest is a built-in modding capability, based on the Lua programming language. Mods allow one or more certain aspects of an existing game to be modified. Minetest mods can be as simple as adding a few decorational blocks or very complex by (for example) introducing complex new gameplay concepts or generating a completely different kind of world, and many other things. For the player, using a new mod requires to copy or extract some files into a certain location and pressing some buttons in Minetest's interface.
31 Minetest can be played alone or online together with multiple players. When playing online, from the player perspective all mods will work out of the box with no need for additional tools as they are entirely provided by the server.
33 Minetest is usually bundled with a simple default game, named “Minetest Game”. You probably already have it. Other games for Minetest can be downloaded from the official Minetest forums <https://forum.minetest.net/viewforum.php?f=48>.
35 Minetest as well as Minetest Game are both unfinished at the moment, so please forgive us when not everything works out perfectly.]=]
38 doc.new_entry("basics", "sneak", {
39 name="Sneaking",
40 data=
41 [=[Sneaking is a special move. As long as you sneak, you walk slower, but you are guaranteed to not accidentally fall off the edge of a block. This also allows you to “lean over” in a sense.
42 To sneak, keep the sneak key pressed. As soon as you release the sneak key, you walk at normal speed again. Be careful not releasing the sneak key when you are at a ledge, you might fall!
44 • Sneak: [Shift]
46 Keep in mind that the [Shift] key is used for a large number of other things in Minetest. Sneaking only works when you are not in a liquid, stand on solid ground and are not at a ladder.
48 If you jump while holding the sneak key, you also jump slightly higher than usual.
50 Note that in some subgames, sneaking might be disabled. If this is the case, you still walk slower by sneaking, but you will no longer be prevented from falling off ledges.]=]
53 doc.new_entry("basics", "controls", {
54 name="Controls",
55 data = [=[Controls in Minetest are somewhat tricky and not everything can be configured. This entry lists all default controls in Minetest:
57 Basic movement:
58 • Moving the mouse around: Look around
59 • W: Move forwards
60 • A: Move to the left
61 • D: Move to the right
62 • S: Move backwards
64 While standing on solid ground:
65 • Space: Jump
66 • Shift: Sneak (You walk slower and can't fall over the edge of a block)
68 While on a ladder, swimming in a liquid or fly mode is active
69 • Space: Move up
70 • Shift: Move down
72 Extended movement (requires privileges):
73 • J: Toggle fast mode, makes you run or fly fast (requires “fast” privilege)
74 • K: Toggle fly mode, makes you move freely in all directions (requires “fly” privilege)
75 • H: Toggle noclip mode, makes you go through walls in fly mode (requires “noclip” privilege)
76 • E: Walk fast in fast mode
78 World interaction:
79 • Left mouse button: Punch, mine blocks or collect dropped items
80 • Right mouse button: Use pointed block if applicable (e.g. open chest); build blocks otherwise
81 • Shift+Right mouse button: Build blocks without using pointed block
82 • Roll mouse wheel: Select next/previous item in hotbar
83 • 0-9: Select item in hotbar directly
84 • Q: Drop entire wielded item stack
85 • Shift+Q: Drop single item of wielded item stack
86 • I: Show/hide inventory menu
88 Inventory interaction:
89 See the entry “Inventory”.
91 Interface:
92 • Esc: In the game: Opens menu window (pauses in single-player mode) or close current window. In the main menu: Quit Minetest.
93 • F1: Show/hide HUD
94 • F2: Show/hide chat and the “Minetest” text at the top left
95 • F7: Toggle camera mode
96 • F8: Toggle cinematic mode
97 • F9: Toggle minimap, minimap mode and zoom
98 • Shift+F9: Toggle minimap shape (square or circle)
99 • F10: open/close console/chat log
100 • F12: Take a screenshot (as a PNG image)
102 Server interaction:
103 • T: Open chat window (You require the “shout” privilege to chat.)
104 • /: Start issuing a server command
106 Technical:
107 • R: Toggle far view (disables all fog and allows viewing far away, may cause massive FPS drop)
108 • + (numpad)**: Increase minimal viewing distance
109 • - (numpad)**: Decrease minimal viewing distance
110 • F3: Enable/disable fog
111 • F5: Enable/disable debug screen which also shows your coordinates
112 • F6: Only useful for developers. Enables/disables profiler
113 • P: Only useful for developers. Writes current stack traces]=]
116 doc.new_entry("basics", "players", {
117 name="Players",
118 data=
119 [=[Players (actually: “player characters”) are the characters which user control.
121 Players are living beings which occupy a space of roughly 1×2×1 cubes and start with 20 health points and 10 breath points.
122 Players are capable of walking, sneaking, jumping, climbing ladders, swimming, diving, mining, building, fighting and using tools and blocks.
124 Players can take damage for a variety of reasons, here are some:
125 • Taking fall damage
126 • Touching a block which causes direct damage
127 • Drowning
128 • Being attacked by another player
129 • Being attacked by a computer enemy
131 At a health of 0, the player dies after which the player can just respawn in the world, usually somewhere else.
132 Other consequences of death vary wildly between subgame. The player could lose all items, or lose the round in a competitive game.
134 Breath is reduced for being with the head inside some block which causes drowning. Such blocks reduce the breath by 1 for every 2 seconds and start to cause damage every 2 seconds when the player has lost all breath. When being inside any other block, the breath is quickly restored.
136 Damage can be disabled on any world. Without damage, players are basically immortal. Health and breath don't play a role anymore and are hidden.
138 In online multiplayer, the name of other players is written above their head.]=]})
140 doc.new_entry("basics", "tools", {
141 name="Tools and weapons",
142 data=
143 [=[Some items may serve as a tool, melee weapon or both when wielded.
145 Any item which has some special use which can be directly used by its wielder is considered a tool.
147 A common tool in Minetest are, of course, mining tools. These are important to break all kinds of blocks.
149 Other tools with special uses (usually accessed by punching or right-click) may also be introduced.
151 Melee weapons deal damage by punching players and possibly other animate objects.
153 For melee weapons, another attribute is important: The full punch interval. This is basically the time it takes for completely recovering from a punch with this weapon.
154 A melee weapon only deals its full damage when it has completely recovered. This can be seen by the animation of the wielded item. As long it is still moving, the full punch interval is not over yet. The full punch interval does not limit how fast one can deal punches, it rather limits the damage: Any hit done before the end of a full punch interval will deal reduced damage.
156 When nothing is wielded, players use their hand which may or may not act as mining tool and melee weapon (depending on the subgame). The hand is always capable of collecting dropped items simply by punching them.]=]
161 doc.new_entry("basics", "cam", {
162 name="Camera",
163 data =
164 [=[Minetest has 3 different views which determine the way you see the world. The modes are:
166 • First-person view (default)
167 • Third-person view from behind
168 • Third-person view from the front
170 You can change the camera mode by pressing [F7] (but you have to close this window first).
172 There is also Cinematic Mode which can be toggled with [F8]. Normally, the camera moves instantly as you move your mouse around. With Cinematic Mode enabled, the camera movements become more smooth. Some players don't like it, it is a matter of taste.
174 • Switch camera mode: [F7]
175 • Toggle Cinematic Mode: [F8]]=]
178 doc.new_entry("basics", "blocks", {
179 name="Blocks",
180 data=
181 [=[The world of Minetest is made entirely out of blocks, or voxels, to be precise. Blocks can be added or removed with the correct tools.
183 Blocks can have a wide range of different properties which determine mining times, behavior, looks, shape, and much more. These are the most important attributes:
185 • Collidability: With collidable blocks block the way for players and other things, they cannot be passed through and they are walked upon by players. Non-collidable blocks can be passed through freely.
186 • Pointability: Pointable blocks will show a wireframe or a halo box when you point at them. But you will just point through non-pointable blocks as if they were not there. Liquids are usually non-pointable but they can be pointed at by some special tools.
187 • Mining properties: Mining properties determine by which tool a block can be mined (if at all).
188 • Climbability: While you are at a climbable block, you won't fall and you can climb and decent on it with the jump and sneak keys. Ladders are one example.
189 • Group memberships: Blocks may be a member of any number of groups. Groups are used to group similar items and blocks together. Most importantly, group memberships are used for mining. They are also used for many other purposes like crafting or interactions between blocks.
190 • Liquids: See the entry “Basics > Liquids”.]=]
193 -- TODO
194 doc.new_entry("basics", "liquids", {
195 name = "Liquids",
196 data =
197 [=[TO BE WRITTEN.]=]
200 -- TODO
201 doc.new_entry("basics", "craft", {
202 name = "Crafting",
203 data =
204 [=[Crafting is the task of taking several items and combining them to form a new item. Crafting is another important task in Minetest.
206 To craft something, you need a few items and a so-called crafting grid.
208 TO BE WRITTEN.]=]
211 doc.new_entry("basics", "minimap", {
212 name="Minimap",
213 data =
214 [=[Press the [F9] key to make a minimap appear on the top right. The minimap helps you to find your way around the world. Press it again to toggle through different minimap modes and zoom levels.
216 There are 2 minimap modes and 3 zoom levels.
218 Surface mode is a top-down view of the world, roughly resembling the colors of the blocks this world is made on. It only shows the topmost blocks, everything below is hidden, like a satellite photo. Surface mode is useful if you got lost.
220 Radar mode is more complicated. It displays the “denseness” of the area around you and changes with your height. Roughly, the more green an area is, the less "dense" it is. Black areas have many blocks. Use the radar to find caverns, hidden areas, walls and more.
222 There are also two different direction modes. Normally, “up” on the minimap is always pointing to the North. But if you press [Shift]+[F9], the minimap will instead rotate with your looking direction, so “up” is always your looking direction.
224 In some subgames, the minimap may be disabled.
226 • Toggle minimap mode: [F9]
227 • Toggle minimap rotating: [Shift]+[F9]]=]
230 doc.new_entry("basics", "inventory", {
231 name="Inventory",
232 data =
233 [=[An inventory is primarily used to store item stacks. There are other uses, such as crafting. An inventory consists of a rectangular grid of item slots. Each item slot can be either empty or hold one item stack. Item stacks can be moved freely between slot and slot, given that the destination slot is either empty or of the same item type.
234 You have your own inventory which is called your “player inventory”, you can open it with the inventory key (default: [I]). The first inventory slots are also used as slots in your hotbar.
235 Blocks can also have their own inventory, for example, things like chests and furnaces.
237 Inventory controls:
239 Taking: You can take items from an occupied slot if the cursor holds nothing.
240 • Left click: take entire item stack
241 • Right click: take half from the item stack (rounding up if uneven)
242 • Middle click: take 10 items from the item stack
244 Dropping: You can drop items onto a slot if the cursor holds 1 or more items and the slot is either empty or contains an item stack of the same item type.
245 • Left click: drop entire item stack
246 • Right click: drop 1 item of the item stack
247 • Middle click: drop 10 items of the item stack
249 Exchanging: You can exchange items if the cursor holds 1 or more items and the destination slot is occupied by a different item type.
250 • Left, middle and right click: exchange item stacks from cursor and from selected item slot
252 Throwing away: If you hold an item stack and click with it somewhere outside the menu, the item stack gets thrown away into the environment.
254 Quick transfer: You can quickly transfer an item stack to/from the player inventory to/from another item's inventory slot like a furnace, chest, or any other item with an inventory slot when that item's inventory is accessed. The inventories chosen for quick transfer are context-dependent, usually those are the inventories which are considered to be most useful in this context.
255 • Sneak+Left click: Automatically transfer item stack.]=]
258 doc.new_entry("basics", "online", {
259 name="Online help",
260 data =
261 [=[You may want to check out these online resources related to Minetest:
263 Official homepage of Minetest: <http://minetest.net/>
264 The main place to find the most recent version of Minetest.
266 Community wiki: <http://wiki.minetest.net/>
267 A community-based documentation website for Minetest. Anyone with an account can edit it! It also features a documentation of Minetest Game.
269 Webforums: <http://forums.minetest.net/>
270 A web-based discussion platform where you can discuss everything related to Minetest. This is also a place where player-made mods and subgames are published and discussed. The discussions are mainly in English, but there is also space for discussion in other languages.
272 Chat: <irc://irc.freenode.net#minetest>
273 A generic Internet Relay Chat channel for everything related to Minetest where people can meet to discuss in real-time. If you do not understand IRC, see the Community Wiki for help.]=]
276 -- TODO
277 doc.new_entry("basics", "groups", {
278 name="Groups",
279 data =
280 [=[Items, players and objects (animate and inanimate) can be member of any number of groups. Groups serve multiple purposes:
282 • Crafting recipes: Sometimes, slots in a crafting recipe do not require a specific item, but instead they require an item which is a member of a particular group, or multiple groups
283 • Digging times: Diggable blocks belong to groups which are used to determine digging times. Mining tools are capable of digging blocks belonging to certain groups
284 • Block behavior: Blocks may behave in a special way and interact with other blocks when they belong to a particular group
285 • Damage and armor: Objects and players have armor groups, weapons have damage groups. A weapon is able to deal damage to things where at least one of its damage groups is also present at the attacked object. The actual damage depends on the weapon strength (stronger weapon means less damage) and the armor strength (stronger armor means less damage)
286 • Other uses: Groups can be used for a few other things as well, which largely depends on the mods being used
288 In the item help, most important groups of which an item is a member of are mentioned and explained.]=]})
290 doc.new_entry("basics", "glossary", {
291 name = "Glossary",
292 data =
293 [=[This is a list of commonly used terms in Minetest parlance:
295 Controls:
296 • Wielding: Holding an item in hand
297 • Pointing: Looking with the crosshair at something in range
298 • Dropping: Throwing an item or item stack to the ground
299 • Punching: Attacking with leftclick, is also used on blocks
300 • Sneaking: Walking slowly while (usually) avoiding to fall over edges
301 • Climbing: Moving up or down a climbable block
303 Blocks:
304 • Block: Cubes that the worlds are made out of
305 • Mining/digging: Using a mining tool to break a block
306 • Building/placing: Putting a block somewhere
307 • Drop: The items you (may) get after mining a block
308 • Using a block: Rightclicking a block to access its special function
310 Items:
311 • Item: A single thing that players can possess
312 • Item stack: A collection of items of the same kind
313 • Maximum stack size: Maximum amount of items in an item stack
314 • Slot / inventory slot: Can hold one item stack
315 • Inventory: Provides several inventory slots for storage
316 • Player inventory: The main inventory of a player
317 • Tool: An item which you can use to do special things with when wielding
318 • Range: How far away things can be to be pointed by an item when wielding it
319 • Mining tool: A tool which allows to break blocks
320 • Craft item: An item which is (primarily or only) used for crafting
322 Gameplay:
323 • “heart”: A single health symbol, indicates 2 HP
324 • “bubble”: A single breath symbol, indicates 1 BP
325 • HP: Hit point (equals half a “heart”)
326 • BP: Breath point, indicates breath when swimming
327 • Mob: Computer-controlled enemy
328 • Crafting: Combining multiple items to create new ones
329 • Crafting guide: A helper which shows available crafting recipes; provided by mods
330 • Spawning: Appearing in the world
331 • Respawning: Appearing again in the world after death
332 • Group: Used to group similar things together; determines mining times, armor, damage, and more
333 • noclip: Allows to fly through walls
335 Interface
336 • Hotbar: The inventory slots at the bottom which you can select for wielding
337 • Statbar: Indicator made out of half-symbols, used for health and breath
338 • Minimap: The map or radar at the top right
339 • Crosshair: Seen in the middle, used to point to things
341 Online multiplayer:
342 • PvP: Player vs Player. Indicates that players can attack and deal damage to each other
343 • Griefing: Destroying the buildings of other players against their will
344 • Protection: Mechanism to own areas of the world, which only allows the owners to modify blocks inside
346 Technical:
347 • Minetest: This game engine
348 • Minetest Game: A subgame for Minetest from the Minetest developers
349 • Subgame: A complete playing experience to be used in Minetest; can be a game, a sandbox or something else
350 • Mod: A single subsystem which adds or modifies functionality; is the basic building block of subgames and can be used to further enhance or modify them
351 • Privilege: Allows a player to do something
352 • Node: Other word for “block”
353 ]=]})
355 -- TODO
356 doc.new_entry("online", "intro", {
357 name="Introduction to online multiplayer",
358 data=
360 Every Minetest server is (more or less) different. A server can have any subgame and mods the server operator likes to.
362 Servers provide ALL gameplay functionality (subgame, mods) and media files out of the box, no additional configuration neccessary. You only need to make sure to have a recent Minetest version to be able to connect to most servers.
365 -- TODO
366 doc.new_entry("online", "commands", {
367 name="Server commands",
368 data=
369 [=[Server commands are special commands to the server that can be entered by any player via the chat to cause the server to do something. There are a few commands which can be issued by everyone, but some commands only work if you have certain privileges granted on the server.
371 To issue a command, simply type it like a chat message or use the console. All commands have to begin with “/”, for example “/mods”.
373 Try it for yourselves: Close this window and say “/mods” in chat. This server will show you a list of mods installed on this server.
375 In Minetest, there is a small set of basic commands which are always available. Additional commands may be added by mods. This means, on other servers you might have new commands.
377 To help you get started, here are some basic commands:
379 • /help all: Lists and describes all server commands
380 • /privs: Lists your privileges
381 • /help privs: Shows description about all privileges
385 -- TODO
386 doc.new_entry("online", "privs", {
387 name="Privileges",
388 data="TODO"})