Developer Tips

Last updated on 28th July 2017. Please note that other APIs exist in the Charset codebase, but they might not yet be finalized if not documented here. Always ask if you need more information!

Adding Charset to your development environment

See the GitHub readme for details.

Charset IMCs (Inter-Mod Communications)

Whitelisting blocks for Charset functionality

Charset, since 0.4.0-pre5, has begun adding robust handlers for actions such as block carrying. However, it cannot know whether it can execute said actions on every block safely, particularly blocks with tile entities added to them. The easiest way to whitelist your mod's blocks for Charset to know it's safe to use them in this manner is to notify Charset via an add/remove message.


FMLInterModComms.sendMessage("charset", "addCarry", barrelBlock.getRegistryName());

"charset" refers to the mod the messages are being sent to (in this case, Charset); "addCarry" is the whitelist command, telling Charset to add the "barrelBlock" block to the "carry" registry. As the value, you can either send the block's registry name or the tile entity's registry name.

The add/remove commands also support passing multiple categories for a single block, such as "add[carry,vehicle]" or "add[vehicle];remove[carry,push]".

Current functionality registries:

Planned functionality registries:

Charset APIs


This event is used by Charset to collect items which are being worn and/or held by an entity. Charset provides support for vanilla armor/hand slots, as well as Baubles. You can use it yourself, too!

Charset Capabilities


Charset has functionality built-in to cache capability objects which implement the ICacheable interface.


The following capabilities are used across the entire mod, and providing them can greatly help in integrating your mod with Charset.


Deprecated as of 0.4.1, with an uncertain fate.


The fate of the Wires API in Charset - especially the bundled wire part - is currently uncertain, seeing as Charset no longer provides redstone wires on its own.