Input Keys
Input keys can be used to automatically detect the input of the player and display the appropriate button for each type of action, such as "SHIFT" for sneaking on Windows.
Displaying Input Keys
RP/texts/en_US.lang
lang
action.hint.exit.rollercoaster=Press :_input_key.sneak: to end the ride
List of Input Keys
Below are the results of default control settings for each input type. All text below, including "Unassigned", is literal and will be displayed to the player.
Non-existent input keys (such as :_input_key.fake:
) will always result in "Unassigned".
General Input Keys
Name | Shortcode | Keyboard & Mouse | Full Keyboard Gameplay | Touch | Xbox | Nintendo Switch | PlayStation |
---|---|---|---|---|---|---|---|
Attack | :_input_key.attack: | ![]() | Q | ![]() | ![]() | ![]() | ![]() |
Use | :_input_key.use: | ![]() | E | ![]() | ![]() | ![]() | ![]() |
Chat | :_input_key.chat: | T | T | ![]() | ![]() | ![]() | ![]() |
Drop | :_input_key.drop: | Q | Z | Unassigned | ![]() | ![]() | ![]() |
Emote | :_input_key.emote: | B | B | ![]() | ![]() | ![]() | ![]() |
Jump | :_input_key.jump: | SPACE | SPACE | ![]() | ![]() | ![]() | ![]() |
Sneak | :_input_key.sneak: | SHIFT | SHIFT | ![]() | ![]() | ![]() | ![]() |
Sprint | :_input_key.sprint: | CONTROL | CONTROL | ![]() | ![]() | ![]() | ![]() |
Forward | :_input_key.forward: | W | W | ![]() | ![]() | ![]() | ![]() |
Back | :_input_key.back: | S | S | ![]() | ![]() | ![]() | ![]() |
Left | :_input_key.left: | A | A | ![]() | ![]() | ![]() | ![]() |
Right | :_input_key.right: | D | D | ![]() | ![]() | ![]() | ![]() |
Inventory | :_input_key.inventory: | E | C | Unassigned | ![]() | ![]() | ![]() |
Cycle Item Left | :_input_key.cycleItemLeft: | Unassigned | PAGE UP | Unassigned | ![]() | ![]() | ![]() |
Cycle Item Right | :_input_key.cycleItemRight: | Unassigned | PAGE DOWN | Unassigned | ![]() | ![]() | ![]() |
Toggle Perspective | :_input_key.togglePerspective: | F5 | F5 | Unassigned | Unassigned | Unassigned | Unassigned |
Pick Block | :_input_key.pickItem: | ![]() | X | Unassigned | Unassigned | Unassigned | Unassigned |
Keyboard & Mouse Input Keys
Name | Shortcode | Keyboard & Mouse | Full Keyboard Gameplay |
---|---|---|---|
Hotbar Slot 1 | :_input_key.hotbar.1: | 1 | 1 |
Hotbar Slot 2 | :_input_key.hotbar.2: | 2 | 2 |
Hotbar Slot 3 | :_input_key.hotbar.3: | 3 | 3 |
Hotbar Slot 4 | :_input_key.hotbar.4: | 4 | 4 |
Hotbar Slot 5 | :_input_key.hotbar.5: | 5 | 5 |
Hotbar Slot 6 | :_input_key.hotbar.6: | 6 | 6 |
Hotbar Slot 7 | :_input_key.hotbar.7: | 7 | 7 |
Hotbar Slot 8 | :_input_key.hotbar.8: | 8 | 8 |
Hotbar Slot 9 | :_input_key.hotbar.9: | 9 | 9 |
Look Up Slight | :_input_key.lookUpSlight: | Unassigned | SUBTRACT |
Look Down Slight | :_input_key.lookDownSlight: | Unassigned | ADD |
Look Down Left | :_input_key.lookDownLeft: | Unassigned | NUMPAD1 |
Look Down | :_input_key.lookDown: | Unassigned | NUMPAD2 |
Look Down Right | :_input_key.lookDownRight: | Unassigned | NUMPAD3 |
Look Left | :_input_key.lookLeft: | Unassigned | NUMPAD4 |
Look Center | :_input_key.lookCenter: | Unassigned | NUMPAD5 |
Look Right | :_input_key.lookRight: | Unassigned | NUMPAD6 |
Look Up Left | :_input_key.lookUpLeft: | Unassigned | NUMPAD7 |
Look Up | :_input_key.lookUp: | Unassigned | NUMPAD8 |
Look Up Right | :_input_key.lookUpRight: | Unassigned | NUMPAD9 |
Look Up Smooth | :_input_key.lookUpSmooth: | Unassigned | UP |
Look Down Smooth | :_input_key.lookDownSmooth: | Unassigned | DOWN |
Look Left Smooth | :_input_key.lookLeftSmooth: | Unassigned | LEFT |
Look Right Smooth | :_input_key.lookRightSmooth: | Unassigned | RIGHT |
Menu Cancel | :_input_key.menuCancel: | Button5 | Button5 |
Mob Effects | :_input_key.mobEffects: | Z | TAB |
Open Command | :_input_key.command: | SLASH | SLASH |
Open Notification | :_input_key.interactwithtoast: | N | N |
Controller Input Keys
Name | Shortcode | Xbox | Nintendo Switch | PlayStation |
---|---|---|---|---|
Fly Up Slow | :_input_key.flyUpSlow: | Unassigned | Unassigned | Unassigned |
Fly Down Slow | :_input_key.flyDownSlow: | ![]() | ![]() | ![]() |
Mob Effects/Open Notification | :_input_key.mobeffectsandinteractwithtoast: | ![]() | ![]() | ![]() |
Contributors
Edit Input Keys on GitHubText and image content on this page is licensed under the Creative Commons Attribution 4.0 International License
Code samples on this page are licensed under the MIT License