Uses of Class
net.neoforged.neoforge.common.loot.LootModifier
Packages that use LootModifier
-
Uses of LootModifier in net.neoforged.neoforge.common.loot
Subclasses of LootModifier in net.neoforged.neoforge.common.lootModifier and TypeClassDescriptionclassLoot modifier that rolls one loot table (the "subtable" and adds the results to the loot being modified (the "target table").Methods in net.neoforged.neoforge.common.loot with type parameters of type LootModifierModifier and TypeMethodDescriptionprotected static <T extends LootModifier>
com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>, LootItemCondition[]> LootModifier.codecStart(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) Simplifies codec creation, especially if no other fields are added: -
Uses of LootModifier in net.neoforged.neoforge.debug.loot
Subclasses of LootModifier in net.neoforged.neoforge.debug.lootModifier and TypeClassDescriptionprivate static classprivate static classWhen harvesting blocks with bamboo, this modifier is invoked, via the silk_touch_bamboo loot_modifier jsonprivate static classThe smelting enchantment causes this modifier to be invoked, via the smelting loot_modifier jsonprivate static classWhen harvesting wheat with shears, this modifier is invoked via the wheat_harvest loot_modifier json
This modifier checks how many seeds were harvested and turns X seeds into Y wheat (3:1)