Skip to content

Athame Loot (Bewitchment)

Description

When killing a mob with the Athame in the main hand, drops a random amount between 0 and stackSize + lootingLevel of each item that the entity passes the predicate of.

Identifier

Refer to this via any of the following:

groovy
mods.bewitchment.athame_loot/* Used as page default */
mods.bewitchment.athameloot
mods.bewitchment.athameLoot
mods.bewitchment.AthameLoot

Adding Entries

  • Register a new Athame Loot entry in the format entity, stacks:

    groovy
    mods.bewitchment.athame_loot.add(Class<? extends EntityLivingBase>, Collection<ItemStack>)
  • Register a new Athame Loot entry in the format entity, stacks:

    groovy
    mods.bewitchment.athame_loot.add(Class<? extends EntityLivingBase>, ItemStack)
  • Register a new Athame Loot entry in the format entity, stacks:

    groovy
    mods.bewitchment.athame_loot.add(Class<? extends EntityLivingBase>, ItemStack...)
  • Register a new Athame Loot entry in the format entity, stacks:

    groovy
    mods.bewitchment.athame_loot.add(EntityEntry, Collection<ItemStack>)
  • Register a new Athame Loot entry in the format entity, stacks:

    groovy
    mods.bewitchment.athame_loot.add(EntityEntry, ItemStack)
  • Register a new Athame Loot entry in the format entity, stacks:

    groovy
    mods.bewitchment.athame_loot.add(EntityEntry, ItemStack...)
  • Register a new Athame Loot entry in the format entity, stacks:

    groovy
    mods.bewitchment.athame_loot.add(Predicate<EntityLivingBase>, Collection<ItemStack>)
  • Register a new Athame Loot entry in the format entity, stacks:

    groovy
    mods.bewitchment.athame_loot.add(Predicate<EntityLivingBase>, ItemStack)
  • Register a new Athame Loot entry in the format entity, stacks:

    groovy
    mods.bewitchment.athame_loot.add(Predicate<EntityLivingBase>, ItemStack...)
Example
groovy
mods.bewitchment.athame_loot.add(entity('minecraft:pig'), item('minecraft:gold_ingot'))
mods.bewitchment.athame_loot.add(entity('minecraft:cow'), item('minecraft:clay') * 5, item('minecraft:iron_sword'))

Removing Entries

  • Removes all recipes that match the given output:

    groovy
    mods.bewitchment.athame_loot.removeByOutput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.bewitchment.athame_loot.removeAll()
Example
groovy
mods.bewitchment.athame_loot.removeByOutput(item('bewitchment:spectral_dust'))
mods.bewitchment.athame_loot.removeAll()

Contributors

© 2024 CleanroomMC. All Rights Reserved.