Difference between revisions of "Controls"

From Minetest Wiki
Jump to navigation Jump to search
m (→‎Movement: walk fast → move fast)
(rename Minetest to Luanti)
 
(63 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{Languages}}
 
{{Languages}}
  
== Controls ==
+
This is an overview of all controls used in Luanti.
Most keyboard and controls can be changed in the “Change Keys” menu.
 
  
The controls marked with an asterisk can't be changed in this menu, you have to edit [[minetest.conf]] for this.
+
== Changing controls ==
The controls marked with two asterisks are fixed and can't be changed at all.
+
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.
  
=== Movement ===
+
== Game controls ==
 +
=== PC ===
 +
The PC version of Luanti uses mouse and keyboard. These are the controls of the PC version:
  
* '''Moving the mouse around'''**: Look around
+
{| class="wikitable"
* '''W''': Move forwards
+
! Action
* '''A''': Move to the left
+
! Default control
* '''D''': Move to the right
+
! Changable in-game
* '''S''': Move backwards
+
! minetest.conf setting
* '''J''': Toggle fast [[Controls/Movement modes|mode]] (requires “fast” [[Privileges|privilege]])
+
! Comment
* '''K''': Toggle fly mode (requires “fly” privilege)
+
|-
* '''H''': Toggle noclip mode, only works if fly mode is also on (requires “noclip” privilege)
+
! colspan="5"|Movement
* '''E''': Move fast (only works if fast mode is on). Oddly, this is also called the “Use” key
+
|-
 +
|Look around||Move mouse||No||''(none)''||
 +
|-
 +
|Move forward||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 [[#Movement modes]].
 +
|-
 +
|Toggle fast mode||J||Yes||<code>keymap_fastmove</code>|| See [[#Movement modes]]. Requires the "fast" [[Privileges|privilege]].
 +
|-
 +
|Toggle fly mode||K||Yes||<code>keymap_freemove</code>|| See [[#Movement modes]]. Requires the "fly" [[Privileges|privilege]].
 +
|-
 +
|Toggle noclip mode||H||Yes||<code>keymap_noclip</code>|| See [[#Movement modes]]. Requires the "noclip" [[Privileges|privilege]].
 +
|-]}]]
 +
|Aux1||E||Yes||<code>keymap_aux1</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 / Move up ||Space||Yes||<code>keymap_jump</code>|| You will move upwards instead of jumping if you are climbing, swimming or using fly mode.
 +
|-
 +
|[[Sneaking|Sneak]] / Move down||Shift||Yes||<code>keymap_sneak</code>|| You will move downwards instead of sneaking if you are climbing, swimming 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||C||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|| ''(none)'' ||Yes||<code>keymap_rangeselect</code>||Far view allows to view things without a distance limitation. '''Warning''': This can severly impact Luanti'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]] ||V ||Yes||<code>keymap_minimap</code>|| Usage of minimap can be restricted by game or mod ||
 +
|-
 +
|Toggle minimap shape (square or circle) ||Shift+F9 ||Yes||<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 Luanti ||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 Luanti; 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/Engine/Basic_data_structures#Block mapblock] bounds view||<none>||Yes||<code>keymap_toggle_block_bounds</code>||This displays the outlines of mapblocks, 16×16×16 portions of the map
 +
|-
 +
|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
 +
|-
 +
|}
  
==== While standing on solid ground ====
+
=== 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.
  
* '''Space''': Jump
+
=== Mobile devices (Android / iOS) ===
* '''Shift''': [[Sneaking|Sneak]] (You walk slower and can't fall over the edge of a [[Block|block]])
 
  
==== While on a [[ladder]], swimming in a [[liquid]] or fly mode is active ====
+
(Note: This section and the list of controls might be incomplete)
  
* '''Space''': Move up
+
The controls on mobile devices are severely restricted compared to the PC and you only have very basic controls. You can't do everything a PC player could do.
* '''Shift''': Move down
 
  
=== World interaction ===
+
The touchscreen is used for everything.
  
* '''Left mouse button'''**: Attack; [[Mining|mine]] blocks; collect items
+
{| class="wikitable"
* '''Right mouse button'''**: [[Using|Use]] [[Pointing|pointed]] block or object if applicable (e.g. open [[chest]]/[[furnace]]); [[Building|build]] blocks otherwise
+
! Action
* '''Shift'''+'''Right mouse button''': Build block (without using the pointed thing)
+
! Control
* '''Mouse wheel'''**: Select block/item in [[hotbar]]
+
|-
* '''0-9'''**: Select block/item in hotbar
+
|Look around||Touch screen and slide finger
* '''Q''': Drop entire wielded itemstack
+
|-
* '''Shift+Q''': Drop single item of wielded itemstack
+
|Use / build||Double-tap
* '''I''': Show/hide [[inventory menu]]
+
|-
 +
|Punch / mine ||Long tap
 +
|-
 +
|Chat || Press on-screen button in left upper corner
 +
|-
 +
|Jump || Press on-screen button in right lower corner
 +
|-
 +
|Sneak || Press on-screen button in right lower corner
 +
|-
 +
|Move left/up/right/down || Press on-screen button in left lower corner
 +
|-
 +
|Display inventory || Press on-screen button in left lower corner
 +
|}
  
=== [[Inventory]] interaction ===
 
  
See [[Inventory#Controls]].
+
Mobile controls when a menu or inventory is displayed:
 +
* double tap outside menu area: close menu
 +
* tap on an item stack: select that stack
 +
* tap on an empty slot: if you selected a stack already, that stack is placed here
 +
* drag and drop: touch stack and hold finger down, move the stack to another slot, tap another finger while keeping first finger on screen --> places a single item from dragged stack into current (first touched) slot
 +
 
 +
=== Controllers and Gamepads ===
 +
 
 +
You'll need to use an external program to bind a controller. See [[Gamepads]] for more info.
 +
 
 +
== Movement modes ==
 +
 
 +
Along with the normal [[controls]], there are three so-called “movement modes” to change the way the player moves.
 +
 
 +
=== Pitch move mode ===
 +
If this mode is activated ('''default key: <kbd>P</kbd>'''), the movement keys will move you relative to your current view pitch (vertical look angle) when you're in a liquid or in fly mode.
 +
 
 +
=== Fast mode ===
 +
If this mode is activated ('''default key: <kbd>J</kbd>'''), it allows the player to move faster.
 +
If the fly mode is not activated, the player can run faster using the Aux1 key, which is <kbd>E</kbd> normally. If the fly mode is activated, the player will ''fly'' faster instead.
 +
 
 +
''The “fast” privilege is required to use this.''
 +
 
 +
=== Fly mode ===
 +
If this mode is activated ('''default key: <kbd>K</kbd>'''), the effects of gravity do not apply to the player anymore. This slightly changes the controls: The ''jump'' key ('''default: <kbd>Space</kbd>''') will cause the player to rise and the ''sneak'' key ('''default: <kbd>Shift</kbd>''') to sink.
  
=== Camera ===
+
''The “fly” privilege is required to use this.''
* '''F7'''*: Toggle camera. Available are (in this order): first person view, third person view from the back, third person view from the front
 
* '''F8''': Toggle cinematic mode. 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.
 
* '''Z''': (Only available in Minetest versions coming after 0.4.14) Zoom in at the crosshair. This requires the player to have the “zoom” privilege.
 
  
=== Interface ===
+
=== Noclip mode ===
* '''Esc'''**: In the game: Abort / close current window / open pause menu. In the main menu: Quit Minetest.
+
If this mode is activated ('''default key: <kbd>H</kbd>''') along with fly mode, the player can fly through walls. If fly mode is not activated as well, noclip mode has nearly no effect; it only prevents screen blackening when the player's head is inside a solid block.
* '''F1'''*: Show/hide HUD
 
* '''F2'''*: Show/hide chat and the text “Minetest” along with the version number at the upper left part of the screen
 
* '''F9'''*: Toggle [[Minimap|minimap]]. There are two modes available, surface and radar, in different zoom levels.
 
* '''Shift'''+'''F9'''*: Toggle minimap shape (square or circle)
 
* '''F10''': open/close [[Console|console]]/chat log
 
* '''F12'''*: Take a [[Screenshot|screenshot]] (as a PNG image)
 
  
=== Server interaction ===
+
''The “noclip” privilege is required to use this.''
* '''T''': Open [[chat window]] (You require the “shout” privilege to [[chat]].)
 
* '''/''': Start issuing a [[Server commands|server command]]
 
  
=== Technical ===
+
== Changing controls in <code>minetest.conf</code> ==
* '''R'''*: Toggle far view (disables all fog and allows viewing far away, may cause massive [[Frames Per Second|FPS]] drop)
+
With <code>minetest.conf</code>, you can change the controls which are unavailable in the settings menu. See [[minetest.conf#Controls]] for more information.
* '''+ (numpad)''': Increase minimal viewing distance
 
* '''- (numpad)''': Decrease minimal viewing distance
 
* '''F3'''*: Enable/disable fog
 
* '''F4'''*: Enable/disable camera updates. '''Note''': This key works only in debugging versions of Minetest, or by editing minetest.conf. Normal players don't need this feature.
 
* '''F5'''*: Enable/disable debug screen which also shows your [[coordinates]]
 
* '''F6'''*: Enable/disable [[Profiler|profiler]] (only useful for developers)
 
* '''P''': Write current stacktraces into the file “debug.txt”. This feature is only interesting for developers.
 
  
=====Footnotes=====
+
== Inventory controls ==
 +
See [[Inventory#Controls]].
  
'''<nowiki>*</nowiki>''' Key assignment can only be changed in [[minetest.conf]].<br />
+
== Console controls ==
'''<nowiki>**</nowiki>''' Key assignment can not be changed.
+
See [[Console#Controls overview]].
  
[[Category:Commands]]
+
[[Category:About Luanti]]

Latest revision as of 22:46, 22 October 2024

Languages Language: English • Deutsch • français • 日本語 • Bahasa Melayu

This is an overview of all controls used in Luanti.

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 Luanti uses mouse and keyboard. These are the controls of the PC version:

Action Default control Changable in-game minetest.conf setting Comment
Movement
Look around Move mouse No (none)
Move forward W Yes keymap_forward
Move to the left A Yes keymap_left
Move to the right D Yes keymap_right
Move backwards S Yes keymap_backward
Toggle pitch move mode P Yes keymap_pitchmove See #Movement modes.
Toggle fast mode J Yes keymap_fastmove See #Movement modes. Requires the "fast" privilege.
Toggle fly mode K Yes keymap_freemove See #Movement modes. Requires the "fly" privilege.
Toggle noclip mode H Yes keymap_noclip See #Movement modes. Requires the "noclip" privilege.
Aux1 E Yes keymap_aux1 Makes you run faster when in fast mode. If the setting aux1_descends is true, this control also makes you descend in liquids and ladders. Some mods utilize this key to enable special actions (e.g. sprinting).
Jump / Move up Space Yes keymap_jump You will move upwards instead of jumping if you are climbing, swimming or using fly mode.
Sneak / Move down Shift Yes keymap_sneak You will move downwards instead of sneaking if you are climbing, swimming or using fly mode.
Toggle automatic forwards (none) Yes keymap_autoforward While this mode is enabled, this acts as if the forwards key is pressed all the time.
World interaction
Punch / mine Left mouse button No keymap_dig
Use / build Right mouse button No keymap_place 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 keymap_sneak, keymap_place 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 keymap_hotbar_previous
Select next item stack in hotbar N Yes keymap_hotbar_next
Select item stack in hotbar directly 0-9 No keymap_slot1 - keymap_slot32
Drop wielded item stack Q Yes keymap_drop
Drop 1 item of wielded item stack Shift+Q Yes keymap_sneak, keymap_drop
Camera
Select camera C Yes keymap_camera_mode 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 keymap_cinematic 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 keymap_zoom Usage of zoom can be restricted by game or mod. By default, zooming is only allowed in Creative Mode
Graphics
Enable/disable fog F3 Yes keymap_toggle_force_fog_off
Increase minimal viewing distance + Yes keymap_increase_viewing_range_min
Decrease minimal viewing distance - Yes keymap_decrease_viewing_range_min
Toggle far view (none) Yes keymap_rangeselect Far view allows to view things without a distance limitation. Warning: This can severly impact Luanti's performance; use this only briefly or for testing
Take a screenshot F12 Yes keymap_screenshot
Heads-up Display
Show/hide inventory menu I Yes keymap_inventory
Show/hide HUD F1 Yes keymap_toggle_hud
Show/hide chat log F2 Yes keymap_toggle_chat
Toggle minimap V Yes keymap_minimap Usage of minimap can be restricted by game or mod
Toggle minimap shape (square or circle) Shift+F9 Yes keymap_sneak, keymap_minimap
Open/close console F10 Yes keymap_console
Abort / close window / open pause menu / quit Luanti Esc No (none)
Sound
Decrease volume (none) Yes keymap_decrease_volume
Increase volume (none) Yes keymap_increase_volume
Toggle mute M Yes keymap_mute
Commands and chat
Open chat window T Yes keymap_chat You need the “shout” privilege to chat
Start issuing a server command / Yes keymap_cmd
Start issuing a local command . Yes keymap_cmd_local Local commands are part of client mods
Debugging (for developers)
Enable/disable camera update F4 or none No keymap_toggle_update_camera 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 Luanti; in official releases there's no default key binding because this can be very confusing to players
Enable/disable debug display F5 No keymap_toggle_debug Also shows your coordinates
Enable/disable mapblock bounds view <none> Yes keymap_toggle_block_bounds This displays the outlines of mapblocks, 16×16×16 portions of the map
Enable/disable profiler F6 No keymap_toggle_profiler Only useful for developers
Write stack traces into debug.txt (none) No keymap_print_debug_stacks 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.

Mobile devices (Android / iOS)

(Note: This section and the list of controls might be incomplete)

The controls on mobile devices are severely restricted compared to the PC and you only have very basic controls. You can't do everything a PC player could do.

The touchscreen is used for everything.

Action Control
Look around Touch screen and slide finger
Use / build Double-tap
Punch / mine Long tap
Chat Press on-screen button in left upper corner
Jump Press on-screen button in right lower corner
Sneak Press on-screen button in right lower corner
Move left/up/right/down Press on-screen button in left lower corner
Display inventory Press on-screen button in left lower corner


Mobile controls when a menu or inventory is displayed:

  • double tap outside menu area: close menu
  • tap on an item stack: select that stack
  • tap on an empty slot: if you selected a stack already, that stack is placed here
  • drag and drop: touch stack and hold finger down, move the stack to another slot, tap another finger while keeping first finger on screen --> places a single item from dragged stack into current (first touched) slot

Controllers and Gamepads

You'll need to use an external program to bind a controller. See Gamepads for more info.

Movement modes

Along with the normal controls, there are three so-called “movement modes” to change the way the player moves.

Pitch move mode

If this mode is activated (default key: P), the movement keys will move you relative to your current view pitch (vertical look angle) when you're in a liquid or in fly mode.

Fast mode

If this mode is activated (default key: J), it allows the player to move faster. If the fly mode is not activated, the player can run faster using the Aux1 key, which is E normally. If the fly mode is activated, the player will fly faster instead.

The “fast” privilege is required to use this.

Fly mode

If this mode is activated (default key: K), the effects of gravity do not apply to the player anymore. This slightly changes the controls: The jump key (default: Space) will cause the player to rise and the sneak key (default: Shift) to sink.

The “fly” privilege is required to use this.

Noclip mode

If this mode is activated (default key: H) along with fly mode, the player can fly through walls. If fly mode is not activated as well, noclip mode has nearly no effect; it only prevents screen blackening when the player's head is inside a solid block.

The “noclip” privilege is required to use this.

Changing controls in minetest.conf

With minetest.conf, 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.