TeamLapen / Werewolves

addon mod for Vampirism which add Werewolves
https://wiki.werewolves.dev
GNU Lesser General Public License v3.0
36 stars 13 forks source link

[Bug]: werewolf spawnrate and werewolves killing things ends up making werewolves the only mob in the area, creating lag #117

Closed EnderMelody closed 1 year ago

EnderMelody commented 1 year ago

Minecraft Version

1.18.x

Forge Version

40.1.73

Vampirism Version

1.8.5

Werewolves Version

0.6.1

Modpack

No response

Singleplayer/Multiplayer

Singleplayer

What happened?

while testing some stuff in creative at night, i noticed that werewolves were slowly taking over the area as they spawn and kill nonwerewolves mobs slowly making them the only mob in the area. i also noticed that over this time the tick time went from 18ms or so to 40ms average. i ended up killing all werewolves mobs and watched each successful kill drop the tick time back to normalizing. image

the problem is they slowly weed out nonwerewolves which causes overall more of them too keep spawning till they are the only thing in the mob cap. that combined with the tick heavy nature of their ai ends up causing the server tickrate to start dropping. I can see a fix being either a specific cap on werewolves spawns directly, or making them much rarer and spawn mostly in their respective biome.

Relevant log output

No response

Reproduce steps

  1. load world
  2. set to night and wait a while
  3. werewolves will kill off other hostile mobs, and fill the mob cap when more of them spawn

Other relevant mods

No response