The IRegisterMaterialPart function is a fucntion used to register Material Parts added using a custom PartType.

Importing the package

If you ever feel the need to import this function’s class, here you go:

import mods.contenttweaker.RegisterMaterialPart;


We have a void function, that takes a Material Part as input.
This is the materialPArt that should be registered.
You could for example call the Vanilla Factory at this point, but how proceed form this point is really up to you.

function(materialPart) {