sorry it is kinda messy lol
Restful Healing Mod
A Hytale server mod that adds intuitive healing mechanics while resting or sleeping, with accelerated regen curves and smart auto-heal thresholds.
Features
Simple & Intuitive Healing
- Passive Regen While Resting: Recover HP% per second after being out of combat
- Sitting: Standard healing rate
- Sleeping: Faster regeneration or full heal over time
- Standing: No regeneration (encourages intentional rest)
Scalable Healing Mechanics
- Accelerated Regen Curve:
- First few seconds: Slow heal
- After 10-15 seconds of uninterrupted rest: Regeneration ramps up
- Getting hit or moving cancels the effect
Auto-Heal to Safe Threshold
- Smart Healing: While sleeping, HP restores to 70-80% max, not full
- Balanced Gameplay: Full heal still requires items or foods
- Item Preservation: Avoids trivializing healing items
Installation
Using Pre-built JAR
- Download the latest JAR file from the Releases page
- Place the JAR file in your Hytale server's
pluginsdirectory - Restart the server
- The mod will automatically appear in the mod list
Building from Source with Gradle
- Clone the repository
- Navigate to the project directory
- Build the mod using Gradle:
# On Windows gradlew.bat build # On macOS/Linux ./gradlew build - The built JAR will be in the
build/libs/directory and automatically copied to:C:\Users\louize\AppData\Roaming\Hytale\UserData\Mods(for immediate testing)- Project root directory
- Place the JAR file in your Hytale server's
pluginsdirectory - Restart the server
Automated Releases
This project uses GitHub Actions to automatically create releases when a new JAR file is detected in the repository root. The workflow (.github/workflows/release.yml) will:
Automatic Release Process
- Trigger: Detects when a
.jarfile is added/updated in the root directory - Version Detection: Extracts version from filename pattern (e.g.,
RestfulHealing-1.0.0.jar→v1.0.0) - Release Creation: Automatically creates a GitHub release with the detected version
- Asset Upload: Attaches the JAR file to the release
Manual Release Process
Alternatively, you can create releases manually using tags:
- Update the version in
gradle.properties - Commit your changes
- Create a new tag:
git tag v1.0.1(replace with your version) - Push the tag:
git push origin v1.0.1
Workflow Features
- Security: Uses
contents: writepermissions for release creation - Automation: No manual steps required after building and committing the JAR
- Version Management: Automatic version parsing from JAR filename
- Clean Releases: No draft or prerelease status by default
Configuration
Healing rates, thresholds, and timing can be configured through the mod's config file.
Compatibility
Designed for Hytale server API. Compatible with other mods that don't modify core healing mechanics.
Phases Completed
- Phase 1: Basic Plugin Structure - Complete
- Phase 2: State Detection - Complete
- Phase 3: Combat Detection - Complete
- Phase 4: Healing Logic - Complete
- Phase 5: Performance Optimization - Complete
License
MIT License
