Fabric Polyfill

Attention: Project Deprecated
This mod is no longer supported since Minecraft version 1.16.5 is no longer relevant, and the backward compatibility features for 1.18.2 have been moved to the Cobweb project.
What is this mod?
Fabric Polyfill provides developers with the ability to use certain events from Fabric API that originally appeared in later versions of Minecraft in older game versions.
Which features were backported?
- The
ServerLivingEntityEventsevent system
Usage Instructions
To integrate this API into your project, add the following lines to your build.gradle file:
repositories {
// Other repositories...
maven {
url "https://cursemaven.com"
content {
includeGroup "curse.maven"
}
}
maven { url = "https://jitpack.io" }
}
dependencies {
// Other dependencies...
// Fabric API dependency
modImplementation "net.fabricmc.fabric-api:fabric-api:${fabric_version}"
// Fabric Polyfill dependency (verify the correct file identifier via CurseForge: select the file on the website, open "Curse Maven Snippet", and copy the line)
modImplementation "curse.maven:fabric-polyfill-926195:xxxxxxx"
// MixinSquared dependency for Fabric Polyfill
include(api(annotationProcessor("com.github.bawnorton.mixinsquared:mixinsquared-fabric:0.1.1")))
}
Working with events is done in the same way as with regular Fabric API events in newer versions of Minecraft.
License and Terms of Use
Free use of this mod in modpacks and video materials is permitted provided that authorship is credited and a link to the original source is provided. The project is distributed under the GNU General Public License v3.0.