Difference between revisions of "Controls"

From Luanti Wiki
Jump to navigation Jump to search
m (→‎PC: add build key)
(Replaced content with "[https://dev.luanti.org/controls/ This page has moved to here.]")
Tag: Replaced
 
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Languages}}
+
[https://dev.luanti.org/controls/ This page has moved to here.]
 
 
This is an overview of all controls used in Minetest.
 
 
 
== Changing controls ==
 
There are two ways to change the controls: Either by using the options menu accessible inside the game or by editing [[minetest.conf]]. See minetest.conf.example to learn the setting names. Note that some controls are fixed and cannot be changed at all.
 
 
 
== Game controls ==
 
=== PC ===
 
The PC version of Minetest uses mouse and keyboard. These are the controls of the PC version:
 
 
 
{| class="wikitable"
 
! Action
 
! Default control
 
! Changable in-game?
 
! minetest.conf setting
 
! Comment
 
|-
 
! colspan="5"|Movement
 
|-
 
|Look around||Move mouse||No||''(none)''||
 
|-
 
|Move forwards||W||Yes||<code>keymap_forward</code>||
 
|-
 
|Move to the left||A||Yes||<code>keymap_left</code>||
 
|-
 
|Move to the right||D||Yes||<code>keymap_right</code>||
 
|-
 
|Move backwards||S||Yes||<code>keymap_backward</code>||
 
|-
 
|Toggle pitch move mode||P||Yes||<code>keymap_pitchmove</code>|| See [[Controls/Movement modes|Movement modes]].
 
|-
 
|Toggle fast mode||J||Yes||<code>keymap_fastmove</code>|| See [[Controls/Movement modes|Movement modes]]. Requires “fast” [[Privileges|privilege]]
 
|-
 
|Toggle fly mode||K||Yes||<code>keymap_freemove</code>|| See [[Controls/Movement modes|Movement modes]]. Requires “fly” [[Privileges|privilege]]
 
|-
 
|Toggle noclip mode||H||Yes||<code>keymap_noclip</code>|| See [[Controls/Movement modes|Movement modes]]. Requires “noclip” [[Privileges|privilege]]
 
|-]}]]
 
|Special / Aux||E||Yes||<code>keymap_special1</code>|| Makes you run faster when in fast mode. If the setting <code>aux1_descends</code> is true, this control also makes you descend in [[liquid]]s and [[ladder]]s. Some [[mods]] utilize this key to enable special actions (e.g. sprinting).
 
|-
 
|Jump||Space||Yes||<code>keymap_jump</code>|| This is used when you are neither at a ladder, inside a liquid nor using fly mode
 
|-
 
|[[Sneaking|Sneak]]||Shift||Yes||<code>keymap_sneak</code>|| This is used when you are neither at a ladder, inside a liquid nor using fly mode
 
|-
 
|Move up||Space||Yes||<code>keymap_jump</code>|| This is used when you are at a ladder, inside a liquid or using fly mode
 
|-
 
|Move down||Shift||Yes||<code>keymap_sneak</code>|| This is used when you are at a ladder, inside a liquid or using fly mode
 
|-
 
|Toggle automatic forwards||''(none)''||Yes||<code>keymap_autoforward</code>|| While this mode is enabled, this acts as if the forwards key is pressed all the time
 
|-
 
! colspan="5"|World interaction
 
|-
 
|[[Punching|Punch]] / [[Mining|mine]] ||Left mouse button||No||<code>keymap_dig</code>||
 
|-
 
|[[Using|Use]] / [[Building|build]] ||Right mouse button||No||<code>keymap_place</code>|| If the pointed thing is usable (example: [[Chest]]), you use it, otherwise you attempt to build at this block
 
|-
 
|Build ||Shift+Right mouse button||No||<code>keymap_sneak</code>, <code>keymap_place</code>|| Use this to build at usable blocks
 
|-
 
|Select next/previous item stack in [[hotbar]] || Roll mouse wheel || No || ''(none)'' ||
 
|-
 
|Select previous item stack in [[hotbar]] || B || Yes || <code>keymap_hotbar_previous</code> ||
 
|-
 
|Select next item stack in [[hotbar]] || N || Yes || <code>keymap_hotbar_next</code> ||
 
|-
 
|Select item stack in hotbar directly || 0-9 || No || <code>keymap_slot1</code> - <code>keymap_slot32</code> ||
 
|-
 
|Drop wielded item stack||Q||Yes||<code>keymap_drop</code>||
 
|-
 
|Drop 1 item of wielded item stack||Shift+Q||Yes||<code>keymap_sneak</code>, <code>keymap_drop</code>||
 
|-
 
! colspan="5"|Camera
 
|-
 
|Select camera||F7||Yes||<code>keymap_camera_mode</code>||Available cameras are (in this order): first person view, third person view from the back, third person view from the front
 
|-
 
|Toggle cinematic mode||''(none)''||Yes||<code>keymap_cinematic</code>||In cinematic mode, the camera will not immediately follow your movements, instead it will quickly “catch on”, so the movement of the camera looks a bit like the movement of an actual camera
 
|-
 
|Zoom in at the crosshair||Z||Yes||<code>keymap_zoom</code>|| Usage of zoom can be restricted by game or mod. By default, zooming is only allowed in Creative Mode
 
|-
 
! colspan="5"|Graphics
 
|-
 
|Enable/disable fog||F3||Yes||<code>keymap_toggle_force_fog_off</code>||
 
|-
 
|Increase minimal viewing distance||+||Yes||<code>keymap_increase_viewing_range_min</code>||
 
|-
 
|Decrease minimal viewing distance||-||Yes||<code>keymap_decrease_viewing_range_min</code>||
 
|-
 
|Toggle far view||R||Yes||<code>keymap_rangeselect</code>||Far view allows to view things without a distance limitation. '''Warning''': This can severly impact Minetest's performance; use this only briefly or for testing
 
|-
 
|Take a [[Screenshot|screenshot]]||F12||Yes||<code>keymap_screenshot</code>||
 
|-
 
! colspan="5"|Heads-up Display
 
|-
 
|Show/hide [[inventory menu]]||I||Yes||<code>keymap_inventory</code>||
 
|-
 
|Show/hide HUD ||F1 ||Yes||<code>keymap_toggle_hud</code>||
 
|-
 
|Show/hide chat log ||F2 ||Yes||<code>keymap_toggle_chat</code>||
 
|-
 
|Toggle [[Minimap|minimap]] ||F9 ||Yes||<code>keymap_minimap</code>|| Usage of minimap can be restricted by game or mod ||
 
|-
 
|Toggle minimap shape (square or circle) ||Shift+F9 ||No||<code>keymap_sneak</code>, <code>keymap_minimap</code>||
 
|-
 
|Open/close [[Console|console]]||F10||Yes||<code>keymap_console</code>||
 
|-
 
|Abort / close window / open pause menu / quit Minetest ||Esc||No||''(none)''||
 
|-
 
! colspan="5"|Sound
 
|-
 
|Decrease volume || ''(none)'' || Yes || <code>keymap_decrease_volume</code> ||
 
|-
 
|Increase volume || ''(none)'' || Yes || <code>keymap_increase_volume</code> ||
 
|-
 
|Toggle mute || M || Yes || <code>keymap_mute</code> ||
 
|-
 
! colspan="5"|Commands and chat
 
|-
 
|Open [[chat window]]||T||Yes||<code>keymap_chat</code>||You need the “shout” privilege to [[chat]]
 
|-
 
|Start issuing a [[Server commands|server command]]||/||Yes||<code>keymap_cmd</code>||
 
|-
 
|Start issuing a [[Local commands|local command]]||.||Yes||<code>keymap_cmd_local</code>|| Local commands are part of [[client mods]]
 
|-
 
! colspan="5"|Debugging (for developers)
 
|-
 
|Enable/disable camera update||F4 ''or none''||No||<code>keymap_toggle_update_camera</code>||Only useful for developers. If disabled, the landscape drawn around you will not be updated as you look around. This action only has a default key binding in the developer version of Minetest; in official releases there's no default key binding because this can be very confusing to players
 
|-
 
|Enable/disable [[debug]] display||F5||No||<code>keymap_toggle_debug</code>||Also shows your [[coordinates]]
 
|-
 
|Enable/disable [https://dev.minetest.net/Profiler_graph profiler]||F6||No||<code>keymap_toggle_profiler</code>||Only useful for developers
 
|-
 
|Write stack traces into [[debug.txt]]|| ''(none)'' ||No||<code>keymap_print_debug_stacks</code>||Only useful for developers
 
|-
 
|}
 
 
 
=== macOS ===
 
Same as for PC, with one difference: If you have a 1-button mouse, you can emulate a '''right click''' with a two finger tap on the trackpad.
 
 
 
Also, if you have a French keyboard (AZERTY), your “M” key might not work in chat.
 
 
 
=== Mobile devices (Android / iOS) ===
 
''This section needs to be written …''
 
 
 
=== Changing controls in <code>minetest.conf</code> ===
 
With <code>minetest.conf</code>, you can change the controls which are unavailable in the settings menu. See [[minetest.conf#Controls]] for more information.
 
 
 
== Inventory controls ==
 
 
 
See [[Inventory#Controls]].
 
 
 
== Console controls ==
 
 
 
See [[Console#Controls overview]].
 
 
 
[[Category:Commands]]
 

Latest revision as of 20:29, 1 January 2025