Skip to content

Micro materials

covers1624 edited this page Nov 6, 2021 · 1 revision

What are Micro materials?

A micro material defines the look/properties of a given Micro block (Cover, Panel, Nook, etc.)

Several built-in micro materials exist, such as all Vanilla blocks which make sense.

Adding micro materials

Via config file

Micro materials can be added via the custom-micromaterials.cfg config file.

This file is intended for users/Modpack authors. This file must be synced between client and server.

Via InterMods Messages

Mods can use InterMods Messages to register micro materials during startup.

IterModsComms.sendTo("cb_microblock", "micro_material", () -> MyMod.someBlock);
// Or a specific BlockState
InterModsComs.sendTo("cb_microblock", "micro_material", () -> MyMod.someBlock.defaultState().setValue(PROPERTY, VALUE));

If mods wish to do anything else custom. Please see the scaladoc of MicroMaterial.

Clone this wiki locally