Add merge level limit (#32)

Add merge level limit (aka "max before merge" or "disable merge over")
This commit is contained in:
alexcrea 2024-10-04 16:55:55 +02:00 committed by GitHub
parent a915d5ad80
commit a00bb919f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 128 additions and 7 deletions

View file

@ -271,6 +271,17 @@ enchant_values:
item: 8
book: 4
# Disable enchantment merging for level above the set value
# Enchantment merging is when, for example, 2 unbreaking II book combine to give sharpness III
# But Enchantment above this value can still be applied. following the previous example, we could still apply a unbreaking III book to a sword
# Even if disable-merge-over of unbreaking is set to 2
# -1 mean enchantment merge for this enchantment is not disabled. default to -1 if absent.
disable-merge-over:
# Sharpness is set to -1. it equivalent to it not being set to anything (and work as vanilla)
sharpness: -1
# If uncommented. 2 unbreaking II book would not give an unbreaking III book. but unbreaking III book can still be applied
#unbreaking: 2
# Whether to show debug logging
debug_log: false