Controls

Controls #

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:

ActionDefault controlChangable in-gameminetest.conf settingComment
Movement
Look aroundMove mouseNo(none)
Move forwardWYeskeymap_forward
Move to the leftAYeskeymap_left
Move to the rightDYeskeymap_right
Move backwardsSYeskeymap_backward
Toggle pitch move mode(none)Yeskeymap_pitchmoveSee #Movement modes.
Toggle fast modeJYeskeymap_fastmoveSee #Movement modes. Requires the “fast” privilege.
Toggle fly modeKYeskeymap_freemoveSee #Movement modes. Requires the “fly” privilege.
Toggle noclip modeHYeskeymap_noclipSee #Movement modes. Requires the “noclip” privilege.
Aux1EYeskeymap_aux1Makes 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 upSpaceYeskeymap_jumpYou will move upwards instead of jumping if you are climbing, swimming or using fly mode.
Sneak / Move downLeft ShiftYeskeymap_sneakYou will move downwards instead of sneaking if you are climbing, swimming or using fly mode.
Toggle automatic forwards(none)Yeskeymap_autoforwardWhile this mode is enabled, this acts as if the forwards key is pressed all the time.
World interaction
Punch / mineLeft mouse buttonNokeymap_dig
Use / buildRight mouse buttonNokeymap_placeIf the pointed thing is usable (example: Chest), you use it, otherwise you attempt to build at this block
BuildLeft Shift+Right mouse buttonNokeymap_sneak, keymap_placeUse this to build at usable blocks
Select next/previous item stack in hotbarRoll mouse wheelNo(none)
Select previous item stack in hotbarBYeskeymap_hotbar_previous
Select next item stack in hotbarNYeskeymap_hotbar_next
Select item stack in hotbar directly0-9Nokeymap_slot1 - keymap_slot32
Drop wielded item stackQYeskeymap_drop
Drop 1 item of wielded item stackLeft Shift+QYeskeymap_sneak, keymap_drop
Camera
Select cameraCYeskeymap_camera_modeAvailable cameras are (in this order): first person view, third person view from the back, third person view from the front
Toggle cinematic mode(none)Yeskeymap_cinematicIn 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 crosshairZYeskeymap_zoomUsage of zoom can be restricted by game or mod. By default, zooming is only allowed in Creative Mode
Graphics
Enable/disable fogF3Yeskeymap_toggle_force_fog_off
Increase minimal viewing distance+Yeskeymap_increase_viewing_range_min
Decrease minimal viewing distance-Yeskeymap_decrease_viewing_range_min
Toggle far view(none)Yeskeymap_rangeselectFar 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 screenshotF12Yeskeymap_screenshot
Heads-up Display
Show/hide inventory menuIYeskeymap_inventory
Show/hide HUDF1Yeskeymap_toggle_hud
Show/hide chat logF2Yeskeymap_toggle_chat
Toggle minimapVYeskeymap_minimapUsage of minimap can be restricted by game or mod
Toggle minimap shape (square or circle)Left Shift+VYeskeymap_sneak, keymap_minimap
Open/close consoleF10Yeskeymap_console
Abort / close window / open pause menu / quit LuantiEscNo(none)
Sound
Decrease volume(none)Yeskeymap_decrease_volume
Increase volume(none)Yeskeymap_increase_volume
Toggle muteMYeskeymap_mute
Commands and chat
Open chat windowTYeskeymap_chatYou need the “shout” privilege to chat
Start issuing a server command/Yeskeymap_cmd
Start issuing a local command.Yeskeymap_cmd_localLocal commands are part of client mods
Debugging (for developers)
Enable/disable camera updateF4 or noneNokeymap_toggle_update_cameraOnly 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 displayF5Nokeymap_toggle_debugAlso shows your coordinates
Enable/disable mapblock bounds view<none>Yeskeymap_toggle_block_boundsThis displays the outlines of mapblocks, 16×16×16 portions of the map
Enable/disable profilerF6Nokeymap_toggle_profilerOnly useful for developers
Write stack traces into debug.txt(none)Nokeymap_print_debug_stacksOnly 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.

ActionControl
Look aroundTouch screen and slide finger
Use / buildDouble-tap
Punch / mineLong tap
ChatPress on-screen button in left upper corner
JumpPress on-screen button in right lower corner
SneakPress on-screen button in right lower corner
Move left/up/right/downPress on-screen button in left lower corner
Display inventoryPress 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, 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.

Because this movement mode may be confusing for newcomers, it doesn’t have a key assigned by default, so if you want to use it, you first have to set one manually in your controls settings.

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.