mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
fix default config to add enchanted in enchantment whitelist.
This commit is contained in:
parent
17bc9073a2
commit
b594b1fb0c
2 changed files with 67 additions and 53 deletions
|
|
@ -1,175 +1,184 @@
|
||||||
# material conflicts
|
# material conflicts
|
||||||
#
|
#
|
||||||
# If you want to edit this file:
|
# If you want to edit this file:
|
||||||
# - You need to take into account that multiple conflict can be applied to an item
|
# - A conflict will apply to every item except if in one of the notAffectedGroups group
|
||||||
# (exemple: protection can be applied to chestplate AND should not have other "protection")
|
# - the conflict will count only if the user try to combine at least as
|
||||||
|
# many conflicting enchantment as "maxEnchantmentBeforeConflict"
|
||||||
|
#
|
||||||
|
|
||||||
|
# ----------------------------------------------------
|
||||||
|
# These restriction are about not allowing enchantment
|
||||||
|
# on illegal items
|
||||||
|
# ----------------------------------------------------
|
||||||
|
|
||||||
# These restriction are about not allowing enchantment on illegal items
|
|
||||||
restriction_aqua_affinity:
|
restriction_aqua_affinity:
|
||||||
enchantments: [aqua_affinity]
|
enchantments: [aqua_affinity]
|
||||||
notAffectedGroups: [helmets]
|
notAffectedGroups: [enchanted_book, helmets]
|
||||||
|
|
||||||
restriction_bane_of_arthropods:
|
restriction_bane_of_arthropods:
|
||||||
enchantments: [bane_of_arthropods]
|
enchantments: [bane_of_arthropods]
|
||||||
notAffectedGroups: [melee_weapons]
|
notAffectedGroups: [enchanted_book, melee_weapons]
|
||||||
|
|
||||||
restriction_blast_protection:
|
restriction_blast_protection:
|
||||||
enchantments: [blast_protection]
|
enchantments: [blast_protection]
|
||||||
notAffectedGroups: [armors]
|
notAffectedGroups: [enchanted_book, armors]
|
||||||
|
|
||||||
restriction_channeling:
|
restriction_channeling:
|
||||||
enchantments: [channeling]
|
enchantments: [channeling]
|
||||||
notAffectedGroups: [trident]
|
notAffectedGroups: [enchanted_book, trident]
|
||||||
|
|
||||||
restriction_binding_curse:
|
restriction_binding_curse:
|
||||||
enchantments: [binding_curse]
|
enchantments: [binding_curse]
|
||||||
notAffectedGroups: [wearable]
|
notAffectedGroups: [enchanted_book, wearable]
|
||||||
|
|
||||||
restriction_vanishing_curse:
|
restriction_vanishing_curse:
|
||||||
enchantments: [vanishing_curse]
|
enchantments: [vanishing_curse]
|
||||||
notAffectedGroups: [can_vanish]
|
notAffectedGroups: [enchanted_book, can_vanish]
|
||||||
|
|
||||||
restriction_depth_strider:
|
restriction_depth_strider:
|
||||||
enchantments: [depth_strider]
|
enchantments: [depth_strider]
|
||||||
notAffectedGroups: [boots]
|
notAffectedGroups: [enchanted_book, boots]
|
||||||
|
|
||||||
restriction_efficiency:
|
restriction_efficiency:
|
||||||
enchantments: [efficiency]
|
enchantments: [efficiency]
|
||||||
notAffectedGroups: [tools, shears]
|
notAffectedGroups: [enchanted_book, tools, shears]
|
||||||
|
|
||||||
restriction_feather_falling:
|
restriction_feather_falling:
|
||||||
enchantments: [feather_falling]
|
enchantments: [feather_falling]
|
||||||
notAffectedGroups: [boots]
|
notAffectedGroups: [enchanted_book, boots]
|
||||||
|
|
||||||
restriction_fire_aspect:
|
restriction_fire_aspect:
|
||||||
enchantments: [fire_aspect]
|
enchantments: [fire_aspect]
|
||||||
notAffectedGroups: [swords]
|
notAffectedGroups: [enchanted_book, swords]
|
||||||
|
|
||||||
restriction_fire_protection:
|
restriction_fire_protection:
|
||||||
enchantments: [fire_protection]
|
enchantments: [fire_protection]
|
||||||
notAffectedGroups: [armors]
|
notAffectedGroups: [enchanted_book, armors]
|
||||||
|
|
||||||
restriction_flame:
|
restriction_flame:
|
||||||
enchantments: [flame]
|
enchantments: [flame]
|
||||||
notAffectedGroups: [bow]
|
notAffectedGroups: [enchanted_book, bow]
|
||||||
|
|
||||||
restriction_fortune:
|
restriction_fortune:
|
||||||
enchantments: [fortune]
|
enchantments: [fortune]
|
||||||
notAffectedGroups: [tools]
|
notAffectedGroups: [enchanted_book, tools]
|
||||||
|
|
||||||
restriction_frost_walker:
|
restriction_frost_walker:
|
||||||
enchantments: [frost_walker]
|
enchantments: [frost_walker]
|
||||||
notAffectedGroups: [boots]
|
notAffectedGroups: [enchanted_book, boots]
|
||||||
|
|
||||||
restriction_impaling:
|
restriction_impaling:
|
||||||
enchantments: [impaling]
|
enchantments: [impaling]
|
||||||
notAffectedGroups: [trident]
|
notAffectedGroups: [enchanted_book, trident]
|
||||||
|
|
||||||
restriction_infinity:
|
restriction_infinity:
|
||||||
enchantments: [infinity]
|
enchantments: [infinity]
|
||||||
notAffectedGroups: [bow]
|
notAffectedGroups: [enchanted_book, bow]
|
||||||
|
|
||||||
restriction_knockback:
|
restriction_knockback:
|
||||||
enchantments: [knockback]
|
enchantments: [knockback]
|
||||||
notAffectedGroups: [swords]
|
notAffectedGroups: [enchanted_book, swords]
|
||||||
|
|
||||||
restriction_looting:
|
restriction_looting:
|
||||||
enchantments: [looting]
|
enchantments: [looting]
|
||||||
notAffectedGroups: [swords]
|
notAffectedGroups: [enchanted_book, swords]
|
||||||
|
|
||||||
restriction_loyalty:
|
restriction_loyalty:
|
||||||
enchantments: [loyalty]
|
enchantments: [loyalty]
|
||||||
notAffectedGroups: [trident]
|
notAffectedGroups: [enchanted_book, trident]
|
||||||
|
|
||||||
restriction_lure:
|
restriction_lure:
|
||||||
enchantments: [lure]
|
enchantments: [lure]
|
||||||
notAffectedGroups: [fishing_rod]
|
notAffectedGroups: [enchanted_book, fishing_rod]
|
||||||
|
|
||||||
restriction_mending:
|
restriction_mending:
|
||||||
enchantments: [mending]
|
enchantments: [mending]
|
||||||
notAffectedGroups: [can_unbreak]
|
notAffectedGroups: [enchanted_book, can_unbreak]
|
||||||
|
|
||||||
restriction_multishot:
|
restriction_multishot:
|
||||||
enchantments: [multishot]
|
enchantments: [multishot]
|
||||||
notAffectedGroups: [crossbow]
|
notAffectedGroups: [enchanted_book, crossbow]
|
||||||
|
|
||||||
restriction_piercing:
|
restriction_piercing:
|
||||||
enchantments: [piercing]
|
enchantments: [piercing]
|
||||||
notAffectedGroups: [crossbow]
|
notAffectedGroups: [enchanted_book, crossbow]
|
||||||
|
|
||||||
restriction_power:
|
restriction_power:
|
||||||
enchantments: [power]
|
enchantments: [power]
|
||||||
notAffectedGroups: [bow]
|
notAffectedGroups: [enchanted_book, bow]
|
||||||
|
|
||||||
restriction_projectile_protection:
|
restriction_projectile_protection:
|
||||||
enchantments: [projectile_protection]
|
enchantments: [projectile_protection]
|
||||||
notAffectedGroups: [armors]
|
notAffectedGroups: [enchanted_book, armors]
|
||||||
|
|
||||||
restriction_protection:
|
restriction_protection:
|
||||||
enchantments: [protection]
|
enchantments: [protection]
|
||||||
notAffectedGroups: [armors]
|
notAffectedGroups: [enchanted_book, armors]
|
||||||
|
|
||||||
restriction_punch:
|
restriction_punch:
|
||||||
enchantments: [punch]
|
enchantments: [punch]
|
||||||
notAffectedGroups: [bow]
|
notAffectedGroups: [enchanted_book, bow]
|
||||||
|
|
||||||
restriction_quick_charge:
|
restriction_quick_charge:
|
||||||
enchantments: [quick_charge]
|
enchantments: [quick_charge]
|
||||||
notAffectedGroups: [crossbow]
|
notAffectedGroups: [enchanted_book, crossbow]
|
||||||
|
|
||||||
restriction_respiration:
|
restriction_respiration:
|
||||||
enchantments: [respiration]
|
enchantments: [respiration]
|
||||||
notAffectedGroups: [helmets]
|
notAffectedGroups: [enchanted_book, helmets]
|
||||||
|
|
||||||
restriction_riptide:
|
restriction_riptide:
|
||||||
enchantments: [riptide]
|
enchantments: [riptide]
|
||||||
notAffectedGroups: [trident]
|
notAffectedGroups: [enchanted_book, trident]
|
||||||
|
|
||||||
restriction_sharpness:
|
restriction_sharpness:
|
||||||
enchantments: [sharpness]
|
enchantments: [sharpness]
|
||||||
notAffectedGroups: [melee_weapons]
|
notAffectedGroups: [enchanted_book, melee_weapons]
|
||||||
|
|
||||||
restriction_silk_touch:
|
restriction_silk_touch:
|
||||||
enchantments: [silk_touch]
|
enchantments: [silk_touch]
|
||||||
notAffectedGroups: [tools]
|
notAffectedGroups: [enchanted_book, tools]
|
||||||
|
|
||||||
restriction_smite:
|
restriction_smite:
|
||||||
enchantments: [smite]
|
enchantments: [smite]
|
||||||
notAffectedGroups: [melee_weapons]
|
notAffectedGroups: [enchanted_book, melee_weapons]
|
||||||
|
|
||||||
restriction_soul_speed:
|
restriction_soul_speed:
|
||||||
enchantments: [soul_speed]
|
enchantments: [soul_speed]
|
||||||
notAffectedGroups: [boots]
|
notAffectedGroups: [enchanted_book, boots]
|
||||||
|
|
||||||
restriction_sweeping:
|
restriction_sweeping:
|
||||||
enchantments: [sweeping]
|
enchantments: [sweeping]
|
||||||
notAffectedGroups: [swords]
|
notAffectedGroups: [enchanted_book, swords]
|
||||||
|
|
||||||
# Do not exist in 1.18, that mean useInFuture will be set to true
|
# Do not exist in 1.18, that mean useInFuture will be set to true
|
||||||
# useInFuture set to true also mean it will not warn if there is an issue
|
# useInFuture set to true also mean it will not warn if there is an issue
|
||||||
restriction_swift_sneak:
|
restriction_swift_sneak:
|
||||||
useInFuture: true
|
useInFuture: true
|
||||||
enchantments: [swift_sneak]
|
enchantments: [swift_sneak]
|
||||||
notAffectedGroups: [boots]
|
notAffectedGroups: [enchanted_book, boots]
|
||||||
|
|
||||||
restriction_thorns:
|
restriction_thorns:
|
||||||
enchantments: [thorns]
|
enchantments: [thorns]
|
||||||
notAffectedGroups: [chestplate]
|
notAffectedGroups: [enchanted_book, chestplate]
|
||||||
|
|
||||||
restriction_unbreaking:
|
restriction_unbreaking:
|
||||||
enchantments: [unbreaking]
|
enchantments: [unbreaking]
|
||||||
notAffectedGroups: [can_unbreak]
|
notAffectedGroups: [enchanted_book, can_unbreak]
|
||||||
|
|
||||||
# Now we have Incompatibility
|
# ----------------------------------------------------
|
||||||
# Because we have filtered before this step, we will use nothing as notAffectedGroups
|
# Now we have conflicts about enchantment Incompatibility
|
||||||
# We can an exclude group to exclude elements of group from the conflict
|
# We just filtered what item enchantments can be applied
|
||||||
|
# We will now will use enchanted_book as notAffectedGroups
|
||||||
|
# maxEnchantmentBeforeConflict is set to 1 to only have 1 on those enchantment available
|
||||||
|
# ----------------------------------------------------
|
||||||
|
|
||||||
sword_enchant_conflict:
|
sword_enchant_conflict:
|
||||||
enchantments:
|
enchantments:
|
||||||
- bane_of_arthropods
|
- bane_of_arthropods
|
||||||
- smite
|
- smite
|
||||||
- sharpness
|
- sharpness
|
||||||
notAffectedGroups: [nothing]
|
notAffectedGroups: [enchanted_book]
|
||||||
maxEnchantmentBeforeConflict: 1
|
maxEnchantmentBeforeConflict: 1
|
||||||
|
|
||||||
protection_enchant_conflict:
|
protection_enchant_conflict:
|
||||||
|
|
@ -178,48 +187,48 @@ protection_enchant_conflict:
|
||||||
- fire_protection
|
- fire_protection
|
||||||
- projectile_protection
|
- projectile_protection
|
||||||
- protection
|
- protection
|
||||||
notAffectedGroups: [nothing]
|
notAffectedGroups: [enchanted_book]
|
||||||
maxEnchantmentBeforeConflict: 1
|
maxEnchantmentBeforeConflict: 1
|
||||||
|
|
||||||
trident_conflict1:
|
trident_conflict1:
|
||||||
enchantments:
|
enchantments:
|
||||||
- channeling
|
- channeling
|
||||||
- riptide
|
- riptide
|
||||||
notAffectedGroups: [nothing]
|
notAffectedGroups: [enchanted_book]
|
||||||
maxEnchantmentBeforeConflict: 1
|
maxEnchantmentBeforeConflict: 1
|
||||||
|
|
||||||
trident_conflict2:
|
trident_conflict2:
|
||||||
enchantments:
|
enchantments:
|
||||||
- loyalty
|
- loyalty
|
||||||
- riptide
|
- riptide
|
||||||
notAffectedGroups: [nothing]
|
notAffectedGroups: [enchanted_book]
|
||||||
maxEnchantmentBeforeConflict: 1
|
maxEnchantmentBeforeConflict: 1
|
||||||
|
|
||||||
boot_conflict:
|
boot_conflict:
|
||||||
enchantments:
|
enchantments:
|
||||||
- depth_strider
|
- depth_strider
|
||||||
- frost_walker
|
- frost_walker
|
||||||
notAffectedGroups: [nothing]
|
notAffectedGroups: [enchanted_book]
|
||||||
maxEnchantmentBeforeConflict: 1
|
maxEnchantmentBeforeConflict: 1
|
||||||
|
|
||||||
tool_conflict:
|
tool_conflict:
|
||||||
enchantments:
|
enchantments:
|
||||||
- fortune
|
- fortune
|
||||||
- silk_touch
|
- silk_touch
|
||||||
notAffectedGroups: [nothing]
|
notAffectedGroups: [enchanted_book]
|
||||||
maxEnchantmentBeforeConflict: 1
|
maxEnchantmentBeforeConflict: 1
|
||||||
|
|
||||||
bow_conflict:
|
bow_conflict:
|
||||||
enchantments:
|
enchantments:
|
||||||
- mending
|
- mending
|
||||||
- infinity
|
- infinity
|
||||||
notAffectedGroups: [nothing]
|
notAffectedGroups: [enchanted_book]
|
||||||
maxEnchantmentBeforeConflict: 1
|
maxEnchantmentBeforeConflict: 1
|
||||||
|
|
||||||
crossbow_conflict:
|
crossbow_conflict:
|
||||||
enchantments:
|
enchantments:
|
||||||
- multishot
|
- multishot
|
||||||
- piercing
|
- piercing
|
||||||
notAffectedGroups: [nothing]
|
notAffectedGroups: [enchanted_book]
|
||||||
maxEnchantmentBeforeConflict: 1
|
maxEnchantmentBeforeConflict: 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,11 @@ tools:
|
||||||
groups:
|
groups:
|
||||||
- axes
|
- axes
|
||||||
|
|
||||||
|
enchanted_book:
|
||||||
|
type: include
|
||||||
|
items:
|
||||||
|
- enchanted_book
|
||||||
|
|
||||||
trident:
|
trident:
|
||||||
type: include
|
type: include
|
||||||
items:
|
items:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue