https://github.com/not-first/safe-infecting
Infect villagers without them dying, 100% of the time, on any difficulty.
https://github.com/not-first/safe-infecting
minecraft minecraft-mod
Last synced: over 1 year ago
JSON representation
Infect villagers without them dying, 100% of the time, on any difficulty.
- Host: GitHub
- URL: https://github.com/not-first/safe-infecting
- Owner: not-first
- License: cc0-1.0
- Created: 2024-12-05T01:01:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-27T11:07:49.000Z (over 1 year ago)
- Last Synced: 2025-02-13T09:37:19.471Z (over 1 year ago)
- Topics: minecraft, minecraft-mod
- Language: Java
- Homepage: https://modrinth.com/mod/safe-infecting
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Safe Infecting
_A minecraft mod that allows you to infect villagers without them dying, 100% of the time, on any difficulty._
In vanilla minecraft, villagers have a chance of dying when being killed by a zombie, instead of being infected. Only on hard difficulty is villager infection guaranteed.
This can be heavily inconvenient for players who simply wish for guaranteed infection without wanting to play on hard difficulty constantly.
This lightweight mod guarantees villager infection on any difficulty, removing the chance of death.
Supports 1.21.x minecraft versions. The mod only has to be installed on the server.
### Technical Description
The mod uses fabric mixins, to edit the Zombie entity class.
When a zombie kills a villager, the onKilledOther zombie method is triggered, which makes a call to check the world difficulty.
The mod simply replaces this call with a method that returns the difficulty hard.
This tricks the game into believing villagers should have a 100% conversiion rate, despite the rest of the world operating on a different difficulty.