Offhand Swap icon

Offhand Swap

Right clicking on any offhandable item will now swap it to your offhand.

Python
Misc
Updated 2 hours ago

N/A

Avg Rating

1

Downloads

About

Offhand Swap

Offhand Swap does one thing: if a player right-clicks with an allowed item in their hand, that item moves into the offhand and whatever was in the offhand comes back.

It works with right-click air and right-click block. Block clicks are cancelled after a successful swap by default so players do not place or use the item at the same time.

There is also a small block-click debounce now. That is there to stop the rapid swap spam that can happen when somebody is looking at the ground and right-clicking. If you want it looser or tighter, change block_interaction_debounce_ms in config.toml. Setting it to 0 turns that off completely.

You can change the allowed items in config.toml. If you want torches or anything else to work, just add them to offhandable_items.

This project uses the MIT license.

Comments

Sign in with GitHub to join the discussion.

Loading comments...

Installation Tips
Security Note
  • Always download from trusted release sources.
  • Review changelogs before updating production servers.
  • Test plugins in staging before deploying live.
  • Keep backups before major plugin upgrades.