Skip to content

Infusion (Mekanism)

Description

Add new infusion types and itemstacks to those types.

Danger

To register a texture to be used by an Infusion Type, you have to add the following event listener to a PreInit file. event_manager.listen { TextureStitchEvent.Pre event -> event.getMap().registerSprite(resource('placeholdername:blocks/example')) }, where 'assets/placeholdername/textures/blocks/example.png' is the location of the desired texture.

Identifier

The identifier mods.mekanism.infusion will be used as the default on this page.

All Identifiers

Any of these can be used to refer to this compat:

groovy
mods.mekanism.infusion/* Used as page default */
mods.mekanism.Infusion

Adding Entries

  • Creates an Infusion Type with the given name and texture:

    groovy
    mods.mekanism.infusion.addType(String, String)
  • Creates an Infusion Type with the given name and texture:

    groovy
    mods.mekanism.infusion.addType(String, ResourceLocation)
  • Adds IIngredients to the provided Infusion Type:

    groovy
    mods.mekanism.infusion.add(String, int, IIngredient...)
  • Adds IIngredients to the provided Infusion Type:

    groovy
    mods.mekanism.infusion.add(InfuseType, int, ItemStack)
  • Adds IIngredients to the provided Infusion Type:

    groovy
    mods.mekanism.infusion.add(InfuseType, int, IIngredient...)
  • Adds IIngredients to the provided Infusion Type:

    groovy
    mods.mekanism.infusion.add(String, int, Collection<IIngredient>)
  • Adds IIngredients to the provided Infusion Type:

    groovy
    mods.mekanism.infusion.add(InfuseType, int, Collection<IIngredient>)
Example
groovy
mods.mekanism.infusion.addType('groovy_example', resource('groovyscriptdev:blocks/mekanism_infusion_texture'))
mods.mekanism.infusion.add('groovy_example', 10, item('minecraft:ice'))
mods.mekanism.infusion.add('groovy_example', 20, item('minecraft:packed_ice'))
mods.mekanism.infusion.add(infusionType('diamond'), 100, item('minecraft:clay'))
mods.mekanism.infusion.add(infusionType('carbon'), 100, item('minecraft:gold_ingot'))

Removing Entries

  • Removes IIngredients from any Infusion Type:

    groovy
    mods.mekanism.infusion.remove(IIngredient)
  • Removes IIngredients from any Infusion Type:

    groovy
    mods.mekanism.infusion.remove(IIngredient...)
  • Removes IIngredients from any Infusion Type:

    groovy
    mods.mekanism.infusion.remove(Collection<IIngredient>)
  • Removes an Infusion Type and all corresponding items:

    groovy
    mods.mekanism.infusion.removeType(String)
  • Removes any Infusion Type that matches the given type:

    groovy
    mods.mekanism.infusion.removeByType(String)
  • Removes any Infusion Type that matches the given type:

    groovy
    mods.mekanism.infusion.removeByType(InfuseType)
  • Removes all Infusion Types:

    groovy
    mods.mekanism.infusion.removeAll()
Example
groovy
mods.mekanism.infusion.remove(ore('dustDiamond'))
mods.mekanism.infusion.removeByType(infusionType('carbon'))
mods.mekanism.infusion.removeByType(infusionType('diamond'))
mods.mekanism.infusion.removeAll()

Contributors

© 2024 CleanroomMC. All Rights Reserved.