Skip to content

IMC support for Modders

Tschipp edited this page Mar 23, 2019 · 2 revisions

Modders may choose to blacklist their blocks for use with CarryOn. For that reason, I have added support for IMC.

Method names:

blacklistBlock add a block to the blacklist.

whitelistBlock add a block to the whitelist.

blacklistEntity add an entity to the blacklist.

whitelistEntity add an entity to the blacklist.

blacklistStacking add an entity to the stacking blacklist, meaning that you can't stack other entities on top of this one.

whitelistStacking add an entity to the stacking whitelist, meaning that you can only stack other entities on top of this entity.

addModelOverride add a default Model Override for a block

Usage:

blacklistBlock takes a block name.

whitelistBlock takes a block name.

blacklistEntity takes an entity name.

whitelistEntity takes an entity name.

blacklistStacking takes an entity name.

whitelistStacking takes an entity name.

addModelOverride takes a model override string in the Model Override Format.

Examples:

In 1.12:

FMLInterModComms.sendMessage("carryon", "blacklistBlock", "minecraft:stone"); FMLInterModComms.sendMessage("carryon", "whitelistEntity", "minecraft:zombie"); FMLInterModComms.sendMessage("carryon", "addModelOverride", "minecraft:hopper->(block)minecraft:hopper");

In 1.13:

InterModComms.sendTo("carryon", "blacklistBlock", () -> "minecraft:stone"); InterModComms.sendTo("carryon", "whitelistEntity", () -> "minecraft:zombie"); InterModComms.sendTo("carryon", "addModelOverride", () -> "minecraft:hopper->(block)minecraft:hopper");

Clone this wiki locally