Paper: Zombie infection not working with infection chance settings for 100% conversion

Created on 26 Aug 2020  路  5Comments  路  Source: PaperMC/Paper

What behaviour is expected:

100% zombie villager conversion

What behaviour is observed:

not 100% zombie villager conversion

Steps/models to reproduce:

Set the difficulty to normal and in paper.yml set the option zombie-villager-infection-chance: to 1.0

Plugin list:

GriefPrevention

Paper version:

Anything else:

Tried per world
world:
zombie-villager-infection-chance: 1.0
no difference

1.16

Most helpful comment

The range of values is not 0 to 1.0, but rather 0 to 100. So you currently have it set to a 1% chance of conversion. Set it to 100 for a 100% chance.

All 5 comments

The range of values is not 0 to 1.0, but rather 0 to 100. So you currently have it set to a 1% chance of conversion. Set it to 100 for a 100% chance.

Where I can read about it?
The documentation says:
zombie-villager-infection-chance
default: -1.0

description: Sets the change for villager conversion to zombie villager Set to -1.0 for default behavior based on game difficulty Set to 0.0 to always have villagers die when killed by zombies Set to 1.0 to always convert villagers to zombie villagers.

It's from here

Where I can read about it?
The documentation says:

That documentation is incorrect. I checked the patch鈥檚 code and it鈥檚 configurable from 0 to 100. Either the documentation needs to be changed, or the patch needs to be changed to be brought in line with the documentation.

Thank you. I"d like to close this issue, but the documentation is still wrong or the patch. So I leave the issue open.

Updated docs, see above commit. In the future, if there is an issue with the docs, report it on the docs repo @ https://github.com/PaperMC/PaperDocs.

Was this page helpful?
0 / 5 - 0 ratings