Mods

Polybind

Why a shared key opens a wheel, how to pick, repeat and rebind, the three modes, the Polybind screen and commands, and how the pack's defaults reach you without overwriting your changes.

On this page (16)

Polybind is a small client-side mod by Navrelis. It solves two problems that every big modpack has.

  1. 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.
  2. 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.

  1. Hold the key. After 180 milliseconds a wheel with one segment per action opens. The world is dimmed a little behind it.
  2. Move the mouse onto the action you want. The number in each segment is its number key.
  3. Let go of the key. Only that action fires.
  4. 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 toDo this
Pick without moving the mousePress a number key from 1 to 8
See more than eight actionsScroll the mouse wheel to change the page
CancelPress 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 openLet 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.

ModeWhat happens on a pressWhen to use it
WheelA wheel opens and only the action you pick fires. This is the default.Most shared keys.
All fireEvery 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.
VanillaPolybind 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.json has 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.

  1. The Polybind... button in the top right corner of the vanilla Key Binds screen. It shows how many keys need a decision.
  2. The command /polybind (also /polybind open).
  3. 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".
  4. Mod Menu, behind the config button of the mod.

The screen has three tabs.

TabWhat it is for
Shared keysLists 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.
WheelTap repeats last pick, remember pick, show categories under the names, ring size.
Pack defaultsFor 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.

  1. Open Options > Controls > Key Binds.
  2. Click the action you want to change, then press the new key. Pressing Esc clears it.
  3. Look at the button Polybind... in the top right. If your new key is now shared, it counts it.
  4. Click Polybind..., find your key in the Shared keys tab and set its mode: Wheel, All fire or Vanilla.
  5. To keep one action out of a shared key, untick its Included box.
  6. 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.

CommandWhat it does
/polybind, /polybind openOpens the screen on the Shared keys tab.
/polybind reloadReads config/polybind.json again.
/polybind conflictsPrints every shared key and its actions in chat, with a clickable [Open Polybind].
/polybind defaultsOpens 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 statusShows what is shipped, where, and whether this install has a record.
/polybind defaults applyPuts 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.

KeyActions on it in the pack's defaults
HFive 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
F8The settings screens of Mod Menu, Polybind, Punchy, Jade, Glintsmith, Just Zoom, Presence Footsteps and Xaero's Minimap
OMinimap, in-world waypoints, chunk claims and light overlay toggles, the Jade overlay and fluids, Glintsmith item outlines and your own light
BBackpack, backpack tool swap and inventory interaction, the Simple Storage terminal, restock and highlight keys, and the equipped ender chest
JSeven Simple Voice Chat actions: the voice chat menu, groups, settings, adjust volumes, mute, disable and hide icons
NXaero's waypoint keys, minimap zoom in and out, and manual cave mode
UWayfarer'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
XCataclysm helmet, chestplate and boots abilities, Twilight Forest hotbar swap and map cycle
PSocial interactions, FTB Teams and the parties and claims menu and hub
KToggle shaders and the shader pack screen
GAdventureZ dragon fire breath and the Punchy sword inspect (All fire)
ZFly 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 haveWhat the pack shipsWhat happens
Nothing (fresh install)AnythingYou get the pack's value.
Something, and Polybind has never run here beforeAnythingNothing changes, whatever the pack says.
A key still on its own mod's defaultA key, shipped for the first timeYou 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 youA new valueYou get the new value.
A value you changedA new valueYou keep yours, for good.
AnythingThe setting was dropped from the packYou 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.

FileWhat is in it in Nytheria
defaults.jsonDefault 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.txtThe pack's video, sound and game options
keybinds.txt206 key lines at the time of writing: 136 set a key and 70 set an action to unbound
servers.datA server list in the vanilla format
extra/config/polybind.jsonThe 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.

OptionMod defaultNytheriaMeaning
enabledtruetrueMaster switch.
excludedBindingsempty25 entriesActions Polybind never touches.
logConflictsOnStartuptruetrueWrite every shared key to the log once at start.
debugfalsefalseA log line for every action Polybind fires. Noisy.
defaultModeWHEELWHEELMode of keys without their own mode.
keyModesemptyG set to ALLPer key overrides. These always win, also over the hold safeguard.
holdBindings9 entries, see above33 entriesActions that only work while the key is held.
wheel.activationHOLD_RELEASEHOLD_RELEASEHOLD_RELEASE or CLICK.
wheel.holdThresholdMs180180Tap against hold, in milliseconds. 0 to 2000. 0 means no tap window.
wheel.showCategorytruetrueShow each action's category in the wheel.
wheel.rememberLastChoicetruetrueRemember the last pick of each key in polybind/wheel.json.
wheel.tapRepeatsLasttruetrueA tap repeats the last pick. Needs the setting above.
wheel.scale1.01.0Ring size, 0.5 to 2.0.
packDefaults.enabledtruetrueMaster switch for pack defaults.
packDefaults.applyUpdatestruetrueWhen 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:

  1. Set up your own game the way the pack should start.
  2. Run /polybind, open the Pack defaults tab and press Save everything (or /polybind defaults save all).
  3. Open config/polybind/defaults/defaults.json and set defaultDifficulty if you want, plus any more files under extraFiles, as a path or a glob such as config/mymod/**.
  4. Press Save extra files again so those files are picked up.
  5. Ship the folder config/polybind/. Never ship polybind/journal.json. It records what one install already has, and it lives outside config/ 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#