dualwield

Unlisted
Attack with an off-hand tool by right-clicking. Separate cooldowns for each hand, independent arm swings, and an off-hand cooldown indicator.

# Dual Wield Tools

Hold a sword, pickaxe, axe, shovel or hoe in your off-hand and attack with it by right-clicking.
Eating, placing blocks and opening doors with your main hand keep working as usual.

## Features
- Right-click to attack with the off-hand tool (sword, pickaxe, axe, shovel, hoe, and modded melee tools that have an attack speed).
- Each hand has its own attack cooldown based on its tool's attack speed.
- Attacking with one hand puts the other hand on a partial cooldown (half by default, configurable).
- Both arms can swing independently, in first person and in third person.
- Off-hand cooldown indicator (crosshair or hotbar, following the vanilla attack indicator setting).
- Alternate bows, crossbows, tridents and shields between both hands.
- Damage, critical hits, sweeping attacks, enchantments and durability all use vanilla combat rules.

## How it works
- Looking at a block: vanilla behavior (placing blocks, opening doors, chests, etc.).
- Looking at an entity: attack with the off-hand.
- Looking at nothing: swing the off-hand.
- Sneaking: vanilla behavior (use it to trade with villagers, etc.).
- The off-hand attack is only used when your main hand is empty, a tool, or a block. Food, bows, shields and thrown items work as usual.
- Villagers, your own pets and rideable animals are not attacked by right-click (configurable).

## Configuration (config/dualwield-common.toml)
- attackTimeoutAfterSwing (default 0.5): cooldown given to the other hand. 1.0 = no penalty.
- hitTimerBypassTicks (default 5): lets hits from both hands land almost at the same time. 0 = vanilla hit timer only.
- alternateUse, alternateWindowTicks: alternate use of bows, shields and similar items.
- showOffhandIndicator: show the off-hand cooldown indicator.
- protectInteractiveEntities: do not attack villagers, your own pets and rideable animals.

## Requirements
- Must be installed on both the client and the server.

dualwield Team

profile avatar
  • 1
    Projects
  • 4
    Downloads