Skip to content

Magnet (Botania)

Description

Add or remove items from the magnet blacklist

Identifier

Refer to this via any of the following:

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)

贡献者

页面历史

© 2024 CleanroomMC. All Rights Reserved.