Skip to content

A direct modification of Scherso's BetterHurtCam mod, which allows you to adjust Minecraft's hurt animation based on damage sources and player conditions, by selecting a number.

License

Notifications You must be signed in to change notification settings

RayDeeUx/BestHurtCam

Repository files navigation

BestHurtCam by RayDeeUx

A direct modification of Scherso's BetterHurtCam mod, which allows you to adjust Minecraft's hurt animation based on damage sources and player conditions, by selecting a number. Scherso's BetterHurtCam mod was originally inspired by boomboompower's HurtAnimationRemover mod, which cancels Minecraft's hurt animation regardless of the damage source/player conditions. Licensed under the GNU-GPL v3 license as per the terms of section 5. Development of BestHurtCam originally began in mid-February 2022, halted almost immediately after due to personal circumstances, and finally finished on mid May 2022.

Disclaimer: BestHurtCam only supports Minecraft Forge 1.8.9, unlike its ancestor BetterHurtCam by Scherso, which supports multiple versions of Minecraft.

Installation Guide

  1. Install Minecraft 1.8.9
  2. Install the Forge Loader for 1.8.9
  3. Build this repository
  4. Place the resulting file in your minecraft/mods directory

Build Guides

For those who would like to build themselves (the original guide Scherso included for BetterHurtCam)

Build with Gradle using Arch Loom

  • Make sure Java 17 is installed on your computer
  1. Git clone the project: git clone https://github.com/Scherso/ForgeTemplate/
  2. Run:
  • Unix in Terminal:

Note: If you plan to only build once add the —no-daemon flag to the build.

cd ForgeTemplate ; chmod 755 ./gradlew && ./gradlew --refresh-dependencies build
  • Windows in Powershell:
cd ForgeTemplate ; .\gradlew.bat --refresh-dependencies build 
  1. Check the directory ForgeTemplate/build/libs or Windows; ForgeTemplate\build\libs

IDE Setup

  1. Open the project from File > Open... Select ForgeTemplate from it’s given file location.
  2. Let the IDE collect dependencies and index the code. (this may take a couple seconds)
  3. Go to File > Project Structure... > SDKs and make sure an SDK for Java 17 is installed and selected, if not download it here

Build

Test if the environment is set up correctly setup by clicking the refresh button in IntelliJ’s Gradle tab, if it has indexed properly with no errors do the following:

  1. Go to ForgeTemplate > Tasks > loom > genSources in the Gradle tab and run genSources
  2. To build the mod as a jar run ForgeTemplate > Tasks > build > build. Gradle will create a new directory called build.
  3. Once this process is done, the .jar file will be located in build/libs You can see this in your file tree.
How I built this mod (not sure why you'd like to know it, but here it is anyways in case you use macOS)

Building it the way RayDeeUx did

  • Make sure the Java 8 JDK is installed on your (macOS) computer, as well as macOS Homebrew.
  • Additionally, make sure your macOS Terminal is set to running on the bash shell and not the zsh shell.
  1. Open the macOS Terminal, brew install git or brew upgrade git if necessary.
  2. git clone https://github.com/RayDeeUx/BestHurtCam/ && cd BestHurtCam/ && chmod 755 ./gradlew && ./gradlew build
  3. Check BestHurtCam/build/libs for the resulting .jar file.

BestHurtCam vs BetterHurtCam vs HurtAnimationRemover: what's the difference?

Feature BestHurtCam BetterHurtCam HurtAnimationRemover
Option to cancel camera rotation when hurt Yes
(via "0" config value)
Yes
(via "0" config value)
Yes
(by default)
Flexible config values beyond entirely cancelling the camera rotation when hurt Yes
(-360 to 360, inclusive)
Yes
(0 to 100, inclusive)
No
Distinct config values based on player conditions Yes Yes No
Anti-rotation abuse to comply with Hypixel's mods guidelines No
(by dev's choice)
No
(by dev's choice)
No
(by default)
Camera rotation options for while in water Yes No N/A
Camera rotation options per damage source Yes No N/A
Camera rotation multipliers per player condition Yes No N/A
Mildly more control over rotation intensity Yes No
(Essential's sliders do be finicky)
N/A
Camera rotates to left Yes
(via negative rotation intensities)
No No
Earthquake mode (jittery camera shake) Yes No No
Minecraft version support 1.8.9 1.8.9, 1.18.x 1.16.4

Credits

Credits to boomboompower for the HurtAnimationRemover mod, which allows you to completely cancel the hurt effect. You can find boomboompower's HurtAnimationRemover mod here.

Credits to Scherso for the BetterHurtCam mod, which added slightly more options to customize the hurt effect. You can find Scherso's BetterHurtCam mod here.

Credits to the folks over at the Essential organization for making Minecraft modding an easier experience for both users and developers. You can check out Essential here.

About

A direct modification of Scherso's BetterHurtCam mod, which allows you to adjust Minecraft's hurt animation based on damage sources and player conditions, by selecting a number.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages