EnvironmentZ

EnvironmentZ

1M Downloads

Cooling Armor Health Modifier Resetting

MikeTheBuddy opened this issue ยท 1 comments

commented

Minecraft Version

1.19.x

Mod Loader Version

0.14.21

Mod Version

2.0.5

Describe the Issue

An interesting problem I noticed with armor provided with ice to cool the user is that they constantly reset stats they may provide, such as a buff to HP.

A simple step by step to replicate an example of this is as follows:

  1. Spawn a piece of armor that modifies the player's max hp when worn.
  2. Apply cooling via smithing table to it.
  3. Go the the nether or some place where the cooling takes effect.
  4. Play on a difficulty other than normal and apply the saturation buff to see the problem.
  5. Witness your health get reset back repletely as you regen it back and lose it, sapping your saturation and hunger.

One easy way I can see this being fixed is to change the cooling to function like insulation, where once applied, it does not need to be reapplied again.

Another solution would be to provide the player with a new tab (similar to something like curious or trinkets I guess in this case) Where an armor underwear of sorts can be applied that is independent of the armor itself, with armor no longer being insulated itself.

I'm not the best at programming, so if needed I can elaborate more on the ideas or solutions I'm thinking of, but if there is a trivial option of solving this problem, I think that should be taken instead.

latest.log

N/A

Do you use any other mods except the required ones?

Other ones are used such as tieredz where I discovered the bug from, but other than that, disabling everything else prevents this.

commented

Fixed compat with tieredz, are there other mods which add health on armor?