Difference between revisions of "Controls"

From Minetest Wiki
Jump to navigation Jump to search
(→‎Game controls: move autorun to movement part)
(Explain how to edit keys with minetest.conf)
Line 119: Line 119:
 
* To emulate a '''right click''', use a two finger tap on the trackpad
 
* To emulate a '''right click''', use a two finger tap on the trackpad
 
* If you have a French keyboard (AZERTY), be prepared for your “M” key not working in chat
 
* If you have a French keyboard (AZERTY), be prepared for your “M” key not working in chat
 +
 +
=== Changing controls in <code>minetest.conf</code> ===
 +
You can change all above controls by editing <code>minetest.conf</code>. This is sometimes required since you can not change not all controls within Minetest.
 +
 +
A few things to note:
 +
 +
* Controls are written in the format <code>keymap_<action name> = <key name></code>, e.g. <code>keymap_forward = KEY_KEY_W</code>
 +
* The list of possible controls (value right of the equals sign) can be seen here: http://irrlicht.sourceforge.net/docu/namespaceirr.html#a54da2a0e231901735e3da1b0edf72eb3
 +
* To disable a control completely, leave the part right of the equals sign empty, e.g. <code>keymap_toggle_debug =</code>
  
 
== Inventory controls ==
 
== Inventory controls ==

Revision as of 10:48, 23 December 2016

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

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

The PC version of Minetest uses mouse and keyboard. These are the controls of the PC version (differences from the PC version are noted below):

Action Default control Changable in-game? minetest.conf setting Comment
Movement
Look around Move mouse No (none)
Move forwards 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 fast mode J Yes keymap_fastmove See Movement modes. Requires “fast” privilege
Toggle fly mode K Yes keymap_freemove See Movement modes. Requires “fly” privilege
Toggle noclip mode H Yes keymap_noclip See Movement modes. Requires “noclip” privilege
Move fast E Yes keymap_special1 Only works if fast mode is on. Oddly, this is also called the “Use” key
Jump Space Yes keymap_jump This is used when you are neither at a ladder, inside a liquid nor using fly mode
Sneak Shift Yes keymap_sneak This is used when you are neither at a ladder, inside a liquid nor using fly mode
Move up Space Yes keymap_jump This is used when you are at a ladder, inside a liquid or using fly mode
Move down Shift Yes keymap_sneak This is used when you are at a ladder, inside a liquid or using fly mode
Toggle automatic walking (none) No keymap_autorun
World interaction
Punch / mine / collect item stack Left mouse button No (none)
Use / build Right mouse button No (none) 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 (none) Use this to build at usable blocks
Select next/previous item stack in hotbar Roll mouse wheel No (none)
Select item stack in hotbar directly 0-9 No (none)
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 F7 No 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 F8 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 Only available in Minetest versions coming after 0.4.14. Requires the “zoom” privilege
Graphics
Enable/disable fog F3 No keymap_toggle_force_fog_off
Increase minimal viewing distance + No keymap_increase_viewing_range_min
Decrease minimal viewing distance - No keymap_decrease_viewing_range_min
Toggle far view R Yes keymap_rangeselect Far view disables fog entirely and allows viewing far away. If enabled, this can severly impact Minetest's performance
Take a screenshot F12 No keymap_screenshot
Heads-up Display
Show/hide inventory menu I Yes keymap_inventory
Show/hide HUD F1 No keymap_toggle_hud
Show/hide chat log and application name F2 No keymap_toggle_chat
Toggle minimap F9 No keymap_minimap There are two modes available: Surface and radar, in 3 different zoom levels
Toggle minimap shape (square or circle) Shift+F9 No keymap_sneak, keymap_minimap
Open/close console F10 Yes keymap_console
Abort / close window / open pause menu / quit Minetest Esc No (none)
Server interaction
Open chat window T Yes keymap_chat You need the “shout” privilege to chat
Start issuing a server command / Yes keymap_cmd
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 Minetest; 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 profiler F6 No keymap_toggle_profiler Only useful for developers
Write stack traces into debug.txt P Yes keymap_print_debug_stacks Only useful for developers

Differences for OS X

  • To emulate a right click, use a two finger tap on the trackpad
  • If you have a French keyboard (AZERTY), be prepared for your “M” key not working in chat

Changing controls in minetest.conf

You can change all above controls by editing minetest.conf. This is sometimes required since you can not change not all controls within Minetest.

A few things to note:

Inventory controls

See Inventory#Controls.

Console controls

See Console#Controls overview.