reference to itself to be used in sequential calls
Adds function that applies given contents to the written book item.
reference to itself to be used in sequential calls
Adds function registered using LootModule.registerCustomLootFunction or LootModule.registerCustomLootFunctionJS.
You don't need to specify function's name in "function"
param of JSON description, it's internally put there.
In fact, you can use this method not only with KEX-registered functions, but also, for example, with vanilla ones that are currently not supported by LootEntryFunctions.
function's JSON description as an org.json.JSONObject
reference to itself to be used in sequential calls
Adds function registered using LootModule.registerCustomLootFunction or LootModule.registerCustomLootFunctionJS.
You don't need to specify function's name in "function"
param of JSON description, it's internally put there.
In fact, you can use this method not only with KEX-registered functions, but also, for example, with vanilla ones that are currently not supported by LootEntryFunctions.
function's JSON description as a JS object.
reference to itself to be used in sequential calls
reference to itself to be used in sequential calls
reference to itself to be used in sequential calls
Adds function that enchants the item with random enchantments that are legal for the current item, with given chance (between 0.0 and 1.0).
reference to itself to be used in sequential calls
Adds function that applies random enchantments to the item.
if true, the item is enchanted only with enchantments that are considered as treasures, like frost walking, mending, soul speed etc.
reference to itself to be used in sequential calls
Adds function that enchants the item using given amount of experience levels, similar to how it works in enchantment table.
if true, the item is enchanted only with enchantments that are considered as treasures, like frost walking, mending, soul speed etc.
reference to itself to be used in sequential calls
Adds function that enchants the item using amount of experience levels, chosen randomly between given minimum and maximum values, similar to how it works in enchantment table.
if true, the item is enchanted only with enchantments that are considered as treasures, like frost walking, mending, soul speed etc.
reference to itself to be used in sequential calls
Adds function that turns empty map item into exploration map pointing to the nearest generated structure of given type.
reference to itself to be used in sequential calls
reference to itself to be used in sequential calls
Adds function that turns the item into its furnace-smelted version, if it's defined.
list of conditions that must pass to smelt the item. Use LootModule.createConditionsList here.
reference to itself to be used in sequential calls
reference to itself to be used in sequential calls
reference to itself to be used in sequential calls
reference to itself to be used in sequential calls
reference to itself to be used in sequential calls
reference to itself to be used in sequential calls
reference to itself to be used in sequential calls
Adds function that applies the specified enchantments to the item.
specific enchantments to apply to the item, represented as a JS object with keys - enchantment string names and values - their levels.
reference to itself to be used in sequential calls
Adds function that applies the specified enchantments to the item.
specific enchantments to apply to the item, represented as a java.util.Map with keys - enchantment string names and values - their levels.
reference to itself to be used in sequential calls
reference to itself to be used in sequential calls
LootEntry that owns the following LootEntryFunctions. Use this in sequential call when you finish describing loot entry functions.
Generated using TypeDoc
Object representing the list of function that are applied to a specific item generated in loot table. Returned by LootEntry.beginFunctions.
These functions are described like JSON objects, there are 22 of them pre-defined in vanilla, however, since Kernel Extension 3.0, you can create your functions with a behavior without any limits, defined in JS or Java code, using KEX.LootModule.registerCustomLootFunction or KEX.LootModule.registerCustomLootFunctionJS.
1.0