open-hands-lib

Quick rating

open-hands-lib

No reviews yet

Open Hands Lib is a library for Minecraft. Each hand has its own hit cooldown, and the damage and tool are passed through the hand that your mod chooses; the same can be enabled for breaking blocks

API/Library
Mod Loaders
NeoForge
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
All Rights Reserved
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Open Hands Lib

Per-hand melee cooldowns and mining for NeoForge content mods.

If you are not a mod developer, this is a dependency mod.
Install it only when another mod lists open_hands_lib as a required dependency. On its own it does not add items, blocks, or gameplay.


What is Open Hands Lib?

A NeoForge library that splits attack and mining logic across main hand and off hand. Each hand gets its own cooldown timer; your content mod decides when the system is active and which hand to use.

The library owns timers, mixins, and state. Your mod registers enable conditions and handles events — the library does not pick duelist logic for you.


Features

Combat (when enabled for a player)

  • Independent cooldown per hand
  • Attacks only land at full charge — partial swings are rejected on purpose
  • Hand selection via ResolveAttackHandEvent (alternation, best weapon, etc.)
  • Damage, enchantments, and weapon effects use the resolved hand
  • Optional rules to attack with the main hand while the off hand is using an item

Combat activates when any registered condition is true (OR).

Mining (when enabled)

  • Tool, harvest check, speed, and durability follow the resolved hand
  • Hand selection via ResolveMiningHandEvent
  • Per-block session cache until mining stops

Mining activates when any registered condition is true (OR).


Requirements

Minecraft 1.21.1
Java 21+
Mod ID open_hands_lib
Version 0.1.1
Author Thow New Error
NeoForge 21.1.219+ · Kotlin for Forge 5.9.0+
Fabric Loader 0.16.14+ · Fabric API · Fabric Language Kotlin

Installation

  1. Install NeoForge
  2. Install Kotlin for Forge
  3. Install Open Hands Lib and the content mod that depends on it

Do not rename the mod or swap the jar for an unofficial build in public modpacks.


For mod developers

Register when your gameplay should turn on, then listen for hand events:

OpenHandsLib.registerEnableCondition(
    ResourceLocation.fromNamespaceAndPath("your_mod", "dual_wield"),
) { player -> /* your check */ true }

NeoForge.EVENT_BUS.register(object {
    @SubscribeEvent
    fun onResolveAttackHand(event: ResolveAttackHandEvent) {
        event.hand = InteractionHand.MAIN_HAND
    }

    @SubscribeEvent
    fun onAttackHandCompleted(event: AttackHandCompletedEvent) {
        // alternation, etc.
    }
})

Mining: registerMiningEnableCondition + ResolveMiningHandEvent.

Public API

  • mod.openhandslib.api.OpenHandsLib — entry point
  • ResolveAttackHandEvent, AttackHandCompletedEvent, OpenHandsCombatStateClearEvent
  • ResolveMiningHandEvent

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works