On this page (16)
Polybind is a small client-side mod by Navrelis. It solves two problems that every big modpack has.
- Two actions on one key. In plain Minecraft only one action can own a key. The one that was registered or rebound last wins, and every other action on that key goes dead. Polybind lets all of them live on the key. By default it opens a radial wheel and you pick one.
- Settings that survive updates. Polybind ships the pack's default options, keys and a few config files. Players get them on a fresh install, keep every change they make, and still get later pack updates for the settings they never touched.
In this pack it is version 1.1.2 for Fabric on Minecraft 1.21.1. It is client only: it never needs to be on a server, and nothing it does reaches a server. It is the reason the H key can hold the artifact toggles, Aether invisibility, the Twilight Forest red thread and Toggle Enchantments together. For the list of keys see Controls. The mod list has its
catalog entry.
Why Nytheria has it#
Nytheria has about 400 mods, and many of them want the same keys: H for toggles, B for storage, J for voice chat, N for waypoints. Without Polybind you would see red conflict markers in the key screen and half of the actions would never fire. Polybind also replaced the old Default Options mod, so the pack author can ship a good start (keys, difficulty, video options, a Sodium file) in one folder and update it later without ruining your own settings.
Using the wheel#
When a key has two or more actions on it, pressing it opens a wheel instead of firing one action. This is the pack's default for every shared key.
- Hold the key. After 180 milliseconds a wheel with one segment per action opens. The world is dimmed a little behind it.
- Move the mouse onto the action you want. The number in each segment is its number key.
- Let go of the key. Only that action fires.
- Next time, just tap. A short tap on the same key repeats your last pick and the wheel does not show. Hold the key again if you want a different action. The last pick is highlighted when the wheel opens.
On a key you have never picked on, the wheel opens straight away.
| You want to | Do this |
|---|---|
| Pick without moving the mouse | Press a number key from 1 to 8 |
| See more than eight actions | Scroll the mouse wheel to change the page |
| Cancel | Press Esc or the right mouse button. Letting go of the key in the dead centre of the wheel after the hold time also cancels. |
| Keep the wheel open | Let go of the key in the dead centre within the hold time. The wheel stays open and you click a segment. |
A wheel shows up to eight segments per page, and the middle names the key and the action you are about to fire. While the wheel is up, that key does nothing else, so the game's key repeat cannot reopen it.
The three modes#
Every key that carries two or more actions is in one of three modes.
| Mode | What happens on a press | When to use it |
|---|---|---|
| Wheel | A wheel opens and only the action you pick fires. This is the default. | Most shared keys. |
| All fire | Every action on the key fires once, at the same time. | Actions that do not hurt each other, for example two toggles you always want together. |
| Vanilla | Polybind does nothing for the key. The game picks one winner and the rest stay dead. | When you want the old behaviour back. |
When a wheel falls back to All fire#
A key set to Wheel behaves like All fire if no wheel can be shown: a screen is open, you are not in a world, only one action is left on the key, or another key still belongs to a wheel.
Keys with a hold action do not follow the Wheel default at all. A hold action only works while you keep the key down: walking, jumping, sneaking, sprinting, attacking, using, zoom, push to talk. A wheel would release the key as soon as you choose, so the action would not work. These keys stay on All fire unless you pick a mode yourself:
- the list the mod ships has 9 entries: attack, back, forward, jump, left, right, sneak, sprint and use.
- the list in the pack's own
config/polybind.jsonhas 33 entries: those nine plus crawl, the player list, Ultimine, push to talk, whisper, the Just Zoom and Twilight Forest zoom keys, the quiver, the Sculk Transmitter, the Soul Elytra boost, Carry, the Gravitite jump, both dragon fly down keys, the build-mode radial menu, the Simply Swords abilities, the Better Combat feint, two Accessorify actions, Jade's alternative details key and three of Xaero's minimap keys.
So Space, Left Shift, Left Ctrl and Z fire all of their actions together, as the Controls page says. A mode you set yourself on a key always wins.
The Polybind screen#
There are four ways in. All of them open the same screen.
- The Polybind... button in the top right corner of the vanilla Key Binds screen. It shows how many keys need a decision.
- The command
/polybind(also/polybind open). - The key Open Polybind. The mod leaves it unbound, and the pack puts it on the F8 wheel. It is in its own key category, "Polybind".
- Mod Menu, behind the config button of the mod.
The screen has three tabs.
| Tab | What it is for |
|---|---|
| Shared keys | Lists every key with more than one action, busiest first. Each key has one Mode button that steps through All fire, Wheel and Vanilla. Under it each action has an Included tick. Untick it and Polybind leaves that action alone, so it behaves as it does without Polybind. At the top: the default mode for all keys, and whether the wheel opens by Hold and release or by Click. A key you never set follows the default, and its tooltip says so. |
| Wheel | Tap repeats last pick, remember pick, show categories under the names, ring size. |
| Pack defaults | For pack authors. Players never need it. |
Every change applies at once and is saved at once. There is no Apply button and nothing needs a restart.
How to rebind a key#
You rebind in the normal Minecraft way. Polybind just makes sure a shared key keeps working.
- Open Options > Controls > Key Binds.
- Click the action you want to change, then press the new key. Pressing Esc clears it.
- Look at the button Polybind... in the top right. If your new key is now shared, it counts it.
- Click Polybind..., find your key in the Shared keys tab and set its mode: Wheel, All fire or Vanilla.
- To keep one action out of a shared key, untick its Included box.
- Click Done. Nothing else is needed.
A key of your own
A key with a single action never opens a wheel. If an action matters to you, give it a free key and it works on a plain press again.
Your changes are safe
Polybind never overwrites a key you moved. See Pack defaults below for the exact rule.
Commands#
All of them run on your own client. They work in singleplayer, on a vanilla server and on a modded one.
| Command | What it does |
|---|---|
/polybind, /polybind open | Opens the screen on the Shared keys tab. |
/polybind reload | Reads config/polybind.json again. |
/polybind conflicts | Prints every shared key and its actions in chat, with a clickable [Open Polybind]. |
/polybind defaults | Opens the screen on the Pack defaults tab. |
/polybind defaults save <all|options|keybinds|servers|extra> | The same as the four save buttons (for pack authors). |
/polybind defaults status | Shows what is shipped, where, and whether this install has a record. |
/polybind defaults apply | Puts the extra files in place now and reports what the options would change on the next start. |
Shared keys in Nytheria#
These are the keys that the pack's own default key file puts more than one action on. Open the Polybind screen to see every shared key on your own install, including the ones that mods set themselves.
| Key | Actions on it in the pack's defaults |
|---|---|
| H | Five Artifacts toggles (Charm of Shrinking, Charm of Sinking, Night Vision Goggles, Scarf of Invisibility, Universal Attractor), Aether invisibility, Twilight Forest red thread vision and Enchanter's Toolkit's Toggle Enchantments |
| F8 | The settings screens of Mod Menu, Polybind, Punchy, Jade, Glintsmith, Just Zoom, Presence Footsteps and Xaero's Minimap |
| O | Minimap, in-world waypoints, chunk claims and light overlay toggles, the Jade overlay and fluids, Glintsmith item outlines and your own light |
| B | Backpack, backpack tool swap and inventory interaction, the Simple Storage terminal, restock and highlight keys, and the equipped ender chest |
| J | Seven Simple Voice Chat actions: the voice chat menu, groups, settings, adjust volumes, mute, disable and hide icons |
| N | Xaero's waypoint keys, minimap zoom in and out, and manual cave mode |
| U | Wayfarer's Guide, advancements, the quest tracker and three unpin keys for quests |
| \ | The Sophisticated Building modifier menu, build mode keys and player settings, and reach-around placement |
| X | Cataclysm helmet, chestplate and boots abilities, Twilight Forest hotbar swap and map cycle |
| P | Social interactions, FTB Teams and the parties and claims menu and hub |
| K | Toggle shaders and the shader pack screen |
| G | AdventureZ dragon fire breath and the Punchy sword inspect (All fire) |
| Z | Fly down on a Dragon Mounts dragon and on an AdventureZ dragon (All fire, both are hold actions) |
The only per-key mode set by the pack is All fire for G. The pack also excludes 25 actions that only work inside a screen, such as the sort keys on the middle mouse button, the Simply Tooltips and Enchanter's Toolkit tooltip keys, the quest book screen keys and the Ultimine shape keys. They never show on a wheel. Every shared key with its count is on Controls.
Pack defaults#
This part explains what Polybind does between a pack update and your game. You only need it if you wonder why a setting changed or did not.
The three-way rule#
Polybind remembers the value it last applied for every setting in polybind/journal.json in your game folder. That lets it tell "still the pack's value" from "I chose this".
| What you have | What the pack ships | What happens |
|---|---|---|
| Nothing (fresh install) | Anything | You get the pack's value. |
| Something, and Polybind has never run here before | Anything | Nothing changes, whatever the pack says. |
| A key still on its own mod's default | A key, shipped for the first time | You get the pack's key. This works on Fabric 1.21 and 1.21.1 since version 1.1.2. |
| The value the pack last gave you | A new value | You get the new value. |
| A value you changed | A new value | You keep yours, for good. |
| Anything | The setting was dropped from the pack | You keep yours. |
The version: line of the pack's options.txt is never applied over yours. A one-time backup of your own file is taken as options.txt.polybind-backup before the first line is changed.
What Nytheria ships#
The folder config/polybind/defaults/ holds the pack's starting point.
| File | What is in it in Nytheria |
|---|---|
defaults.json | Default difficulty normal for new worlds (players can still change it), the ignore list, and one extra file: config/sodium-options.json. Servers are merged: a player's own list gets the pack's servers once. |
options.txt | The pack's video, sound and game options |
keybinds.txt | 206 key lines at the time of writing: 136 set a key and 70 set an action to unbound |
servers.dat | A server list in the vanilla format |
extra/config/polybind.json | The pack's own Polybind settings, so players start with the same modes and wheel settings |
Some options are never shipped, because they belong to one computer or one person: the exact fullscreen video mode, the sound device, the last server, the language, the window size, privacy choices, dismissed warnings and tutorial progress. This list is the mod's default ignoredOptions, and Nytheria keeps it.
If you want the first run and no later changes, ask the pack author about packDefaults.applyUpdates, described below.
Settings#
The file is config/polybind.json.
| Option | Mod default | Nytheria | Meaning |
|---|---|---|---|
enabled | true | true | Master switch. |
excludedBindings | empty | 25 entries | Actions Polybind never touches. |
logConflictsOnStartup | true | true | Write every shared key to the log once at start. |
debug | false | false | A log line for every action Polybind fires. Noisy. |
defaultMode | WHEEL | WHEEL | Mode of keys without their own mode. |
keyModes | empty | G set to ALL | Per key overrides. These always win, also over the hold safeguard. |
holdBindings | 9 entries, see above | 33 entries | Actions that only work while the key is held. |
wheel.activation | HOLD_RELEASE | HOLD_RELEASE | HOLD_RELEASE or CLICK. |
wheel.holdThresholdMs | 180 | 180 | Tap against hold, in milliseconds. 0 to 2000. 0 means no tap window. |
wheel.showCategory | true | true | Show each action's category in the wheel. |
wheel.rememberLastChoice | true | true | Remember the last pick of each key in polybind/wheel.json. |
wheel.tapRepeatsLast | true | true | A tap repeats the last pick. Needs the setting above. |
wheel.scale | 1.0 | 1.0 | Ring size, 0.5 to 2.0. |
packDefaults.enabled | true | true | Master switch for pack defaults. |
packDefaults.applyUpdates | true | true | When false, only settings you do not have yet are written. |
The file is forgiving. Unknown fields are ignored, a bad value falls back to its default with one log warning, a number outside its range is clamped, and a file that is not valid JSON is left alone while the defaults are used. A file with only the lines you care about is also fine.
For pack authors#
If you make your own pack:
- Set up your own game the way the pack should start.
- Run
/polybind, open the Pack defaults tab and press Save everything (or/polybind defaults save all). - Open
config/polybind/defaults/defaults.jsonand setdefaultDifficultyif you want, plus any more files underextraFiles, as a path or a glob such asconfig/mymod/**. - Press Save extra files again so those files are picked up.
- Ship the folder
config/polybind/. Never shippolybind/journal.json. It records what one install already has, and it lives outsideconfig/so a normal export does not pick it up.
If an old config/defaultoptions folder exists and config/polybind/defaults/ does not, Polybind reads the old one once and leaves it as it was. If the other mod is still installed, Polybind's defaults stay passive and log one line asking for one of them to go.
FAQ#
Will a pack update overwrite my keys? No. A key you moved stays yours. The only time a pack key reaches you without a fresh install is when your key is still the one its own mod chose. See the three-way rule.
The wheel opens when I want the action at once. Pick once, and from then on a tap repeats that pick. Or set that key to All fire if all its actions are harmless together.
An action does nothing from the wheel. Actions that need the key held down (zoom, push to talk, charging) cannot work from a wheel, because you no longer hold anything after you choose. Put them on a key of their own, or set that key to All fire.
Is it safe on a server? It is client only and sends nothing to a server. Servers do not need it.
It does not show a shared key I know exists.
The key may have only one action, or the action may be set to excluded. Run /polybind conflicts to list every shared key.
Where are my wheel picks saved?
In polybind/wheel.json in your game folder. Turning off "Remember pick" keeps the file and just stops using it.
Credits#
Polybind is made by Navrelis and licensed MIT. In Nytheria it replaced the Default Options mod that the pack used before. See the Credits page for every author in the pack.
See also#
- Controls - every default key of the pack
- Effortless Building: Sophisticated - its building keys on \, Undo and Redo
- Obscura's Simple Storage - terminal and highlight keys
- Made for Nytheria - the other mods made for the pack