Per-Level Books
Learn how to change book item on each enchantment and each level
Starting 9.17.0, it is possible to change items on each level of a specific enchantment. Similar to how groups can change this. It's very simple to do:
Here is an example with hasten enchantment, where you can for example just change the custom-model-data or you can even change the whole item:
hasten:
display: '%group-color%Hasten'
applies-to: Tools
type: MINING
group: SIMPLE
applies:
- ALL_PICKAXE
- ALL_SPADE
- ALL_AXE
levels:
'1':
# WE CAN SEE HERE THAT ONLY CUSTOM MODEL DATA IS CHANGED
item:
custom-model-data: 99
chance: 15
cooldown: 3
effects:
- POTION:FAST_DIGGING:0:40
'2':
# HERE, MORE PARAMETERS OF THE ITEM ARE BEING CHANGED
item:
type: ENCHANTED_BOOK
name: '&6Harvest II'
lore: |-
&7Harvest in a 3x3 area.
&7Chance to harvest in a 3x3 area.
chance: 25
cooldown: 3
effects:
- POTION:FAST_DIGGING:1:60Any value that is not present here will be taken from the config.yml in the enchantment-book section
Last updated
Was this helpful?