feat(cheststealer): add InvCleaner priority & distance randomization bypass
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
ItemCategorizationfacets. - 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
DistanceRandomFactorsetting group (hides automatically if selection mode is notDistanceorInvCleanerPriority). - 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.
Conflict
Conflict
fixed. check it now
- Update branch
- Use
Modepattern instead ofTaggedfor mode-specified settings
Please split 2 features and update PR description
Well, I gonna add more features for Distance/Index mode, so you will need to resolve another conflict later.
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
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