Open Madis0 opened 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.
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?
So, I now implemented the warden anger level to my mod and got some notes for you if you still want to do it.
warden.getAngriness() == Angriness.ANGRY
and warden.getAngriness() == Angriness.AGITATED
, no need to hardcode the values.warden.getBrain().getMemory(MemoryModuleType.DIG_COOLDOWN)
, but that seemed to be available server-side only to me. Maybe something can be done with warden.getDespawnCounter()
though.
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.