promotional bannermobile promotional banner

Ritsus Offhand Key

Adds a customizable keybind to use the offhand item
Back to Files

ritsusoffhandkey-1.1.0.jar

File nameritsusoffhandkey-1.1.0.jar
Uploader
Ritsu_uRitsu_u
Uploaded
Sep 14, 2025
Downloads
15
Size
5.7 KB
Mod Loaders
Forge
File ID
6995840
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:ritsus-offhand-key-1346302:6995840")

Learn more about Curse Maven

What's new

New Features & Improvements

  • Expanded Offhand Support: The offhand key now works for both air use and block interactions. Examples include using shields, bows, food, potions, and placing blocks such as torches.

  • Server‑Side Reliability: Adjusted packet handling to ensure block placement actions (e.g., torches) register correctly on the server.

  • Code Extensibility: Added clear extension points for developers to add custom handling for specific modded items.

  • Unified Logic: Centralized offhand interaction handling for easier maintenance and consistent behavior.

Notes

  • Entity interactions (e.g., trading with villagers, feeding animals) are currently disabled by default in the code. They can be re‑enabled by uncommenting the relevant section in the source.

Fixes

  • Resolved inconsistencies where certain offhand actions would fail or behave differently from the main hand.

  • Improved synchronization between client and server to reduce missed or “ghost” actions.

This mod has no additional files