promotional bannermobile promotional banner

Ritsus Offhand Key

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

ritsusoffhandkey-1.2.0.jar

File nameritsusoffhandkey-1.2.0.jar
Uploader
Ritsu_uRitsu_u
Uploaded
Sep 14, 2025
Downloads
17
Size
5.8 KB
Mod Loaders
Forge
File ID
6996458
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

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

Learn more about Curse Maven

What's new

New Features & Changes

  • Main-hand actions allowed during off-hand hold While holding an off-hand action (e.g., blocking with a shield), main-hand right-click actions are no longer blocked. This enables combinations like blocking while placing blocks or using a bow.

  • Improved hold-type detection More accurate classification of items into “hold” (shield, bow, trident, spyglass, etc.) vs. “click” (torches, blocks) categories for more consistent behavior.

  • Cooldown handling improvements Block placement–type items now use a consistent 4-tick cooldown to match vanilla mechanics.

  • Off-hand resume logic After performing a main-hand action, the mod can automatically resume an interrupted off-hand hold without requiring the player to re-press the key.

  • Code cleanup and stability fixes Removed redundant calls, fixed bracket/logic errors that could cause unintended cancels, and improved input handling to reduce false releases.

In Development

  • Off-hand food item hold behavior Work is ongoing to make off-hand food usage behave like vanilla long-press eating — starting with a single useItem trigger and continuing uninterrupted until the item is consumed. This feature is not yet finalized and may still be interrupted in certain cases.

This mod has no additional files