Skip to content

About

restock addon for tweakeroo

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ShiftRestock

Client-side Minecraft mod (Fabric) that serves as an addon for Tweakeroo.

Replaces the default handRestock behavior with a more efficient implementation using Quick Move (Shift+Click) mechanics.

Features

Adds two new options to Tweakeroo's Generic settings:

ShiftRestock

Enables the custom restock behavior. When enabled, overrides the default handRestock functionality.

Note: This feature only works when handRestock from the original Tweakeroo is also enabled.

ShiftRestockThreshold

Defines the item count threshold at which restock triggers.

  • Default: 32
  • Behavior: Restock activates when the main hand stack count drops to this value or below.

How It Works

Instead of using two separate PICKUP clicks (which can cause desync on strict servers), this mod uses QUICK_MOVE to transfer items in a single atomic operation. This reduces network overhead and improves reliability.

The restock logic:

  1. Checks if main hand stack is below threshold
  2. Searches inventory (slots 9-44) for matching items
  3. Executes QUICK_MOVE to transfer items directly to hand
  4. Handles cursor state to prevent item duplication bugs

Building

./gradlew build

The compiled .jar will be located in build/libs/.

About

restock addon for tweakeroo

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages