API reference Obsidian.API.Loot.Functions
SetEnchantmentsFunction class
Sets the levels of the given enchantments (a level of 0 removes it), or adds to them when SetEnchantmentsFunction.Add is set. A book becomes an enchanted book with the same count.
public sealed class SetEnchantmentsFunction : LootFunction
In Obsidian.API.
Constructors
public SetEnchantmentsFunction();Properties
public bool Add { get; init; }Enchantments
public Dictionary<EnchantmentDefinition, INumberProvider> Enchantments { get; init; }The enchantments and their levels, evaluated in order.