Skip to main content

Module selection

Module selection 

Source
Expand description

Enchanting table costs and weighted enchantment selection.

Structsยง

EnchantmentInstance ๐Ÿ”’

Constantsยง

ADDITIONAL_ENCHANTMENT_RANDOM_BOUND ๐Ÿ”’
BASE_COST_RANDOM_BOUND ๐Ÿ”’
COST_VARIATION ๐Ÿ”’
ENCHANTABILITY_RANDOM_DIVISOR ๐Ÿ”’
MAX_BOOKSHELVES ๐Ÿ”’

Functionsยง

filter_compatible_enchantments ๐Ÿ”’
get_available_enchantment_results ๐Ÿ”’
get_enchantment_cost ๐Ÿ”’
Calculates the required level for an enchanting table offer
select_enchantment ๐Ÿ”’
Selects enchantments for an enchanting table offer