Skip to content

Update version and docs 0.1.5#22

Merged
omtoi101 merged 13 commits into
mainfrom
update-version-and-docs-0.1.5
Sep 25, 2025
Merged

Update version and docs 0.1.5#22
omtoi101 merged 13 commits into
mainfrom
update-version-and-docs-0.1.5

Conversation

@omtoi101

Copy link
Copy Markdown
Owner

No description provided.

omtoi101 and others added 13 commits September 22, 2025 12:34
This commit introduces a new module, AutoElytraRepair, which automatically repairs elytras when their durability gets low.

The module continuously checks the equipped elytra's durability. When it drops below a configurable threshold, the module finds a safe landing spot, lands the player, and uses experience bottles from the hotbar to repair the elytra.

A new command, `/stashhunter repair`, has been added to monitor and control the auto-repair system.

A mixin has been added to allow programmatically changing the selected hotbar slot.
Removes the emergency disconnect functionality from the Auto Elytra Repair module.

The module will no longer disconnect the player if it fails to find a safe landing spot after a set number of attempts. Instead, it will now continuously expand its search radius and keep trying to find a landing spot indefinitely.

This change also fixes a bug where the expanding search radius was calculated but not correctly used in the landing spot search function.
The `PlayerInventoryAccessor` mixin was using an explicit field name in the `@Accessor` annotation, which caused a runtime error after a Minecraft update.

By removing the explicit field name, the Mixin framework can now correctly infer the target field from the accessor method's name, making the code more robust and resilient to future updates.
This commit overhauls the auto-repair and flight resume systems to be more robust and efficient.

Key changes:
- The elytra repair logic now continuously throws XP bottles until the elytra is fully repaired or the player runs out of bottles, replacing the old inefficient timer-based system.
- The takeoff sequence after a repair is now managed by a state machine that checks the player's vertical velocity, making it more reliable than the previous timer-based implementation.
- A new "climbing" state has been added to the flight controller. After a repair, the bot will now climb back to the target flight altitude before resuming its path.
- The default flight altitude has been changed to 160 blocks as requested.
- A compilation error related to accessing a private field in `PlayerInventory` has been fixed.
This commit overhauls the auto-repair and flight resume systems to be more robust and efficient.

Key changes:
- The elytra repair logic now continuously throws XP bottles until the elytra is fully repaired or the player runs out of bottles, replacing the old inefficient timer-based system.
- The takeoff sequence after a repair is now managed by a state machine that checks the player's vertical velocity, making it more reliable than the previous timer-based implementation.
- A new "climbing" state has been added to the flight controller. After a repair, the bot will now climb back to the target flight altitude before resuming its path.
- The default flight altitude has been changed to 160 blocks as requested.
- A compilation error related to accessing a private field in `PlayerInventory` has been fixed.
- Fixed a `NullPointerException` caused by a missing null check when accessing the `autoElytraRepair` module.
This commit overhauls the auto-repair and flight resume systems and fixes a critical bug in the safe landing logic.

Key changes:
- The safe landing logic in `SafeLandingSpotFinder.java` has been fixed to explicitly check for water, preventing the bot from landing in oceans.
- The elytra repair logic now continuously throws XP bottles until the elytra is fully repaired or the player runs out of bottles.
- The takeoff sequence after a repair is now managed by a state machine that checks the player's vertical velocity, making it more reliable.
- A new "climbing" state has been added to the flight controller to ensure the bot returns to the target flight altitude after repairs.
- The default flight altitude has been changed to 160 blocks as requested.
- Fixed a `NullPointerException` caused by a missing null check.
This commit addresses several issues with the auto-repair system, including fixing a crash, preventing ocean landings, and making the flight resume process more reliable.

Key changes:
- Fixed a bug that caused the bot to get stuck during descent by ensuring movement is active during the landing sequence.
- Added an explicit check for water in `SafeLandingSpotFinder.java` to prevent the bot from landing in oceans.
- Refactored the elytra repair logic to continuously use XP bottles until the elytra is fully repaired.
- Overhauled the takeoff sequence to be state-based instead of timer-based for better reliability.
- Added a "climbing" state to ensure the bot returns to the target flight altitude after repairs.
- Set the default flight altitude to 160 as requested.
- Fixed an initial `InvalidAccessorException` crash and a subsequent `NullPointerException`.
Fix mixin crash and whole module lol
This commit updates the project to version 0.1.5 and revises the documentation to highlight the new 'auto elytra' and 'chunktrail following algorithm' features.

- The `mod_version` in `gradle.properties` has been updated to `0.1.5`.
- `README.md` and `docs/FEATURES.md` now feature descriptions of the new automated functionalities.
- `docs/USAGE.md` includes the new `.stashhunter trail` command for activating the chunktrail following mode.
- `docs/CONFIGURATION.md` is updated to reflect the new `chunk-trail-following` setting.
This commit combines the documentation from the `docs/` directory into the main `README.md` file to create a single source of truth for the project.

- The contents of `docs/FEATURES.md`, `docs/USAGE.md`, and `docs/CONFIGURATION.md` have been merged into `README.md`.
- The `docs/` directory has been removed.
@omtoi101 omtoi101 merged commit 1be392c into main Sep 25, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant