Skip to content

Fabricators-of-Create/Porting-Lib

Repository files navigation

Porting Lib

A collection of utilities for porting mods from Forge to Fabric.

Use

Porting Lib is split into modules. All modules are available on this maven:

maven { url = "https://mvn.devos.one/releases/" }

You can depend on Porting Lib like this once you add the maven:

modImplementation(include("io.github.fabricators_of_create.Porting-Lib:<module>:<version>"))

You can find the latest version on Modrinth. Just choose a version and use its version number.

Modules

Module Description
attributes Additional Entity Attributes; step height, gravity, swim speed
base Code that has not yet been split into modules
blocks Adds extra block extensions.
brewing A potion recipe api
chunk_loading Custom chunk loading api
client_events Useful client-side events
client_extensions Client extensions for various things in mc
common Miscellaneous utilities for other modules
config A minimal port of Forge's config api
core Core functionality used across other modules
data Additional data generation providers
entity Multipart entities, extra spawn data, removal listening
entity_data_serializers Adds a API for safely registering entity data serializers.
fluids API that provides additional fluid attributes for fluids
gametest Tools to make GameTest creation as easy as possible
gui_utils Adds additional utility classes and methods for screens and guis
item_abilities Utilities for item abilities
items Adds extra item extensions
level_events Provides common level events for mods.
loot A small library to modify mob loot
milk A small library adds milk as an actual fluid
mixin_extensions More features for Mixins
model_data Addon to model API to make building model data easier.
model_loader Base loader for custom model types
models Model implementations, ModelData, RenderTypes
obj_loader Loading .obj models
recipe_book_categories Allows mods to add additional recipe book categories
registry A implementation of NeoForge's DeferredRegister and DeferredHolder system rewritten for Fabric
render_types Custom render types for models and entities
resources NeoForge's conditions and data maps system, with useful resource events
tags Forge tags
transfer Storage implementations, client-side lookup, FluidStack, assorted transfer utilities

Contributing

See the contribution information.

Related APIs

Some APIs (some in-house) we've found to also be useful with porting mods.

Name Description
Forge Config API Port A port of the Forge config API to Fabric
Registrate Refabricated A port of Registrate to Fabric
Reach Entity Attributes Provides Entity Attributes for reach distance
Milk Lib Provides a Milk fluid as well as other milk items used often by mods
Cardinal Components API Provides Components, which can replace Capabilities
Trinkets Accessories, replacing Curios
Here be no Dragons Hides the Experimental World Settings screen
Fabric ASM For when Mixin Extras just isn't enough

About

A collection of utilities for porting mods from Forge to Fabric.

Topics

Resources

License

Contributing

Stars

Watchers

Forks