Skip to content

Magnet (Botania) ​

Description ​

Add or remove items from the magnet blacklist.

Identifier ​

The identifier mods.botania.magnet will be used as the default on this page.

All Identifiers

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

groovy
mods.botania.magnet/* Used as page default */
mods.botania.Magnet

Adding Entries ​

  • Adds the given Block, IBlockState, or IIngredient to the magnet blacklist:

    groovy
    mods.botania.magnet.addToBlacklist(Block, int)
  • Adds the given Block, IBlockState, or IIngredient to the magnet blacklist:

    groovy
    mods.botania.magnet.addToBlacklist(IBlockState)
  • Adds the given Block, IBlockState, or IIngredient to the magnet blacklist:

    groovy
    mods.botania.magnet.addToBlacklist(IIngredient)
Example
groovy
mods.botania.magnet.addToBlacklist(item('minecraft:diamond'))

Removing Entries ​

  • Removes the given Block, IBlockState, or IIngredient from the magnet blacklist:

    groovy
    mods.botania.magnet.removeFromBlacklist(Block, int)
  • Removes the given Block, IBlockState, or IIngredient from the magnet blacklist:

    groovy
    mods.botania.magnet.removeFromBlacklist(IBlockState)
  • Removes the given Block, IBlockState, or IIngredient from the magnet blacklist:

    groovy
    mods.botania.magnet.removeFromBlacklist(IIngredient)

Getting the value of entries ​

  • Checks if the given Block, IBlockState, or IIngredient is prevented from being interacted with by the magnet:

    groovy
    mods.botania.magnet.isInBlacklist(Block, int)
  • Checks if the given Block, IBlockState, or IIngredient is prevented from being interacted with by the magnet:

    groovy
    mods.botania.magnet.isInBlacklist(IBlockState)
  • Checks if the given Block, IBlockState, or IIngredient is prevented from being interacted with by the magnet:

    groovy
    mods.botania.magnet.isInBlacklist(IIngredient)

Contributors

© 2024 CleanroomMC. All Rights Reserved.