LiquidBounce icon indicating copy to clipboard operation
LiquidBounce copied to clipboard

feat(cheststealer): add InvCleaner priority & distance randomization bypass

Open m1trenv0 opened this issue 6 months ago • 7 comments

This pull request adds two key improvements to the ChestStealer module to improve combat-preparedness and bypass checks on strict anti-cheats (like Polar):

1. InvCleaner Priority Selection Mode

  • Dynamically evaluates chest items using the standard ItemCategorization facets.
  • Prioritizes high-value combat and survival items (Armor, Swords, Weapons, Ender Pearls, Tools) before clearing lesser utility slots (blocks, food, etc.).
  • Within each priority tier, items are cleared using a proximity-based path (DISTANCE), ensuring both logical priority and local slot efficiency.

2. Distance Randomization Bypass

  • Adds a DistanceRandomFactor setting group (hides automatically if selection mode is not Distance or InvCleanerPriority).
  • Instead of following a perfectly linear, deterministic proximity path (which strict anti-cheats easily flag as automated), it perturbs slot distances using a random multiplier from your configured factor range.
  • This generates a slightly chaotic but highly efficient path (stealing nearby slots first, but occasionally choosing slightly further ones), defeating heuristic checks while maintaining maximum speed.

Предлагаемое изменение в документацию (Suggested changes to documentation):

### ChestStealer

Automatically steals all items from a chest.

Category: Player  
Enabled by default: No  

#### Settings

Below is the complete tree of all configurable settings for this module.

├── Constraints (Setting Group)
│   ├── StartDelay (Integer Range | default: 1..2 | range: 0..20 | ticks)
│   ├── ClickDelay (Integer Range | default: 2..4 | range: 0..20 | ticks)
│   ├── CloseDelay (Integer Range | default: 1..2 | range: 0..20 | ticks)
│   ├── MissChance (Integer Range | default: 0..0 | range: 0..100 | %)
│   └── Requires (Multi-Select | options: NoMovement, NoRotation)
├── AutoClose (Toggle | default: true)
├── SelectionMode (Choice | default: DISTANCE | options: Distance, Index, Random, InvCleanerPriority)
├── DistanceRandomFactor (Decimal Range | default: 1.0..1.0 | range: 0.0..5.0)
├── MoveMode (Choice | default: QUICK_MOVE | options: QuickMove, DragAndDrop)
...

#### Settings Details

* **SelectionMode** (Choice) — default: `DISTANCE`; options: `Distance`, `Index`, `Random`, `InvCleanerPriority`
  * `Distance`: Steals items starting from the closest slot in a proximity path.
  * `Index`: Steals items slot-by-slot from left to right.
  * `Random`: Steals items in a completely random order.
  * `InvCleanerPriority`: Dynamically analyzes item utility using Inventory Cleaner facets, prioritizing high-value combat items (Armor, Swords, Weapons, Ender Pearls, Tools) before stealing lesser items. Slots within each priority group are cleared using proximity-based distance.

* **DistanceRandomFactor** (Decimal Range) — default: `1.0..1.0`; range: `0.0..5.0`
  * Controls the randomization jitter applied to proximity-based stealing paths.
  * Setting this to a range like `0.8..1.3` adds natural, human-like variance to the path, completely bypassing heuristics while maintaining top-speed efficiency.

m1trenv0 avatar Jun 01 '26 11:06 m1trenv0

Conflict

MukjepScarlet avatar Jun 01 '26 13:06 MukjepScarlet

Conflict

fixed. check it now

m1trenv0 avatar Jun 01 '26 16:06 m1trenv0

  1. Update branch
  2. Use Mode pattern instead of Tagged for mode-specified settings

MukjepScarlet avatar Jun 06 '26 06:06 MukjepScarlet

Please split 2 features and update PR description

MukjepScarlet avatar Jun 11 '26 09:06 MukjepScarlet

Well, I gonna add more features for Distance/Index mode, so you will need to resolve another conflict later.

MukjepScarlet avatar Jun 11 '26 09:06 MukjepScarlet

Well, I gonna add more features for Distance/Index mode, so you will need to resolve another conflict later.

I have exams :(, so I'll resolve everything at the end of next week

m1trenv0 avatar Jun 12 '26 19:06 m1trenv0

I refactored this to make the transformation more explicit and reduce intermediate variables. If you think the original version is clearer in this context, I’m fine reverting it

minecrrrr avatar Jun 19 '26 12:06 minecrrrr