Prismwork / Hudium

Extensible and customizable HUD mod for Fabric, Quilt and Forge
https://modrinth.com/mod/hudium
MIT License
10 stars 3 forks source link

Warden info #1

Open Madis0 opened 2 years ago

Madis0 commented 2 years ago

Could you add some statistics about the warden, so the user knows how angry it is or how likely it is to spawn?

As far as I know, those values are server-side, but it could be estimated based on the sound events the client gets.

Disclamer: this request is a bit shameless because I actually want to add this to my mod, but just haven't been able to figure out, how. Obviously this would benefit your users as well and I would follow your license when forking.

Flamarine commented 2 years ago

The times the sculk shrieker shrieked, aka warning level, is specific to each player, however I tried to get the value but failed. And the anger of warden can be obtained directly from WardenEntity and works quite well. The only thing I cannot figure out is the estimated time until warden despawn. There seems to be no way to get this.

Madis0 commented 2 years ago

The only thing I cannot figure out is the estimated time until warden despawn. There seems to be no way to get this.

According to

After sixty seconds of being "calm" and not detecting any vibrations, if the warden is on the ground, it burrows back into the ground and despawns.

it should be 60 seconds (1200 ticks) of the warden existing and the anger level being calm. Some kind of a timer perhaps?

Madis0 commented 2 years ago

So, I now implemented the warden anger level to my mod and got some notes for you if you still want to do it.