Give Enchantment Book
Type: give_enchantment_book
Give a book with a custom enchantment to the player.
Configuration
| Field | Type | Default | Description |
|---|---|---|---|
id | String | "" | Unique identifier for this entry. |
name | String | "" | Name for this entry. |
criteria | List<Criteria> | [] | List of criteria that must be met for this action to execute. |
modifiers | List<Modifier> | [] | List of modifiers to apply to the action execution. |
triggers | List<Ref<TriggerableEntry>> | [] | List of triggers to execute upon completion of this action. |
enchantment | Ref<EnchantmentDefinition> | Empty | |
customEnchantment | Ref<CustomEnchantmentDefinition> | Empty | Custom enchantment to apply on the book (takes priority if both are set). |
level | Int | 1 | Level of the enchantment. |
amount | Int | 1 | Amount of books to give. |
bookName | String | "{enchantment} {level}" | Display name of the book. {enchantment} and {level} placeholders are supported. |
enchantmentLore | List<String> | ["{enchantment_lore} {level}"] | Lore line showing the enchantment. Supports color codes and {enchantment_lore}/{level} placeholders. |
bookLore | List<String> | [] | Additional lore for the book. Supports color codes and {enchantment}/{level} placeholders. |