give_enchantment_book
Give a book with a custom enchantment — misc entry.
Entry Information
| Property | Value |
|---|---|
| Entry ID | give_enchantment_book |
| Type | Misc |
| Color | Purple |
| Icon | mdi:book |
Fields
| Field | Type | Description |
|---|---|---|
enchantment | Ref<EnchantmentDefinition> | Standard enchantment to apply on the book |
customEnchantment | Ref<CustomEnchantmentDefinition> | Custom enchantment to apply on the book (takes priority if both are set) |
level | Int | Level of the enchantment |
amount | Int | Amount of books to give |
bookName | String | Display name of the book. {enchantment} and {level} placeholders are supported |
enchantmentLore | List<String> | 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 |
Usage Example
- entry: give_enchantment_book
name: "Give a book with a custom enchantment"
enchantment: ""
customEnchantment: ""
level: 0
amount: 0
bookName: ""
enchantmentLore: []
bookLore: []