Package net.minecraft.world.level.storage.loot.functions
@ParametersAreNonnullByDefault
package net.minecraft.world.level.storage.loot.functions
-
ClassDescriptionLootItemFunction that modifies the stack's count based on an enchantment level on the tool using various formulas.Applies a bonus based on a binomial distribution with
n = enchantmentLevel + extraRounds
andp = probability
.Applies a bonus count with a special formula used for fortune ore drops.Adds a bonus count based on the enchantment level scaled by a constant multiplier.LootItemFunction that reduces a stack's count based on the explosion radius.LootItemFunction that copies a set of block state properties to the"BlockStateTag"
NBT tag of the ItemStack.LootItemFunction that sets the stack's name by copying it from somewhere else, such as the killing player.LootItemFunction that applies a random enchantment to the stack.Applies a random enchantment to the stack.Convert any empty maps into explorer maps that lead to a structure that is nearest to the currentinvalid reference
LootContextParams.ORIGIN
LootItemFunction that applies the"SkullOwner"
NBT tag to any player heads based on the givenLootContext.EntityTarget
.FunctionUserBuilder<T extends FunctionUserBuilder<T>>Base interface for builders that accept loot functions.A LootItemFunction that limits the stack's count to fall within a givenIntRange
.A LootItemFunction that only modifies the stacks if a list of predicates passes.A LootItemFunction modifies an ItemStack based on the current LootContext.Registry forLootItemFunction
LootItemFunctionType<T extends LootItemFunction>The SerializerType forLootItemFunction
.LootItemFunction that adds a list of attribute modifiers to the stacks.LootItemFunction that sets the banner patterns for a banner item.LootItemFunction that sets the contents of a container such as a chest by setting theBlocKEntityTag
of the stacks.LootItemFunction that sets the LootTable and optionally the loot table seed on the stack'sBlockEntityTag
.LootItemFunction that sets a stack's enchantments.LootItemFunction that sets the stack's count based on aNumberProvider
, optionally adding to any existing count.LootItemFunction that sets the stack's damage based on aNumberProvider
, optionally adding to any existing damage.LootItemFunction that sets a stack's lore tag, optionally replacing any previously present lore.LootItemFunction that sets a stack's name.LootItemFunction that adds an effect to any suspicious stew items.LootItemFunction that tries to smelt any items usinginvalid reference
RecipeType.SMELTING