-
Notifications
You must be signed in to change notification settings - Fork 27
Micro materials
covers1624 edited this page Nov 6, 2021
·
1 revision
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.
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.
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.