MarkusBordihn / BOs-Adaptive-Performance-Tweaks

Adaptive Performance Tweaks is a collection of Minecraft Forge server-side Mod which automatically adjust specific settings on the server to allow a more balanced TPS/FPS.
Other
4 stars 2 forks source link

Villager zombification doesn't work with default spawn configs #65

Closed ivxvm closed 1 month ago

ivxvm commented 2 months ago

There is a vanilla mechanic to turn villagers into zombies to cure them later (for better trades). With default configs villagers just die instead of turning into zombies. Removing minecraft:zombie_villager from HostileMobsList in /config/adaptive_performance_tweaks/spawn/MinecraftSpawn.toml solved the issue immediately.

Added: Actually, this wasn't enough. I had to add allowList = ["minecraft:villager", "minecraft:zombie_villager"] into [General] section of spawn.toml. And I think there is no need to touch HostileMobsList at all in this case as spawn.toml settings are more global and override everything.

MarkusBordihn commented 1 month ago

Thanks a lot for the report. I will try if I could track all villagers and ignore them if they are turned into zombies.

MarkusBordihn commented 1 month ago

The fix should be live in the next hours.

image

Please keep in mind that even if it allows Zombification, it could be that the new Zombie Villager (with a different ID) is remove afterwards when the server load is to high or to many Zombie Villagers are already spawned.

[15:15:19] [Server thread/DEBUG] [APTweaks(Spawn)/]: [Zombie Villager Conversion] Convert Villager['Villager'/360, l='ServerLevel[world]', x=22.85, y=143.00, z=-598.90] to entity.minecraft.zombie_villager
[15:15:19] [Server thread/DEBUG] [APTweaks(Spawn)/]: [Zombie Villager Conversion] Allow join event for ZombieVillager['Zombie Villager'/376, l='ServerLevel[world]', x=22.85, y=143.00, z=-598.90] in minecraft:overworld