Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration option to replace incompatible enchantments #1419

Merged
merged 4 commits into from
Aug 24, 2023
Merged

Add configuration option to replace incompatible enchantments #1419

merged 4 commits into from
Aug 24, 2023

Conversation

MelnCat
Copy link
Contributor

@MelnCat MelnCat commented Aug 23, 2023

Currently, the behavior of incompatible enchantments in anvils is either to discard any enchantments that are incompatible, keeping the original enchantments (vanilla), or to allow both enchantments to exist (allow incompatible).
This pull request adds a third option: to replace the existing incompatible enchantments and to replace it with the applied enchantment at settings.enchantment.anvil.replace-incompatible-enchants

For example, an item with Sharpness and Unbreaking + an item with Smite and Fire Aspect will result in an item with Sharpness Unbreaking and Fire Aspect with vanilla behavior. With this configuration option, the output will instead be Smite + Unbreaking + Fire Aspect.

Copy link
Member

@granny granny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just needs to be merged into patches/server/0153-Config-to-allow-for-unsafe-enchants.patch and documented in PurpurDocs

@granny granny added the needs-docs A pull request to PurpurDocs is required before merge label Aug 23, 2023
@MelnCat
Copy link
Contributor Author

MelnCat commented Aug 24, 2023

Merged into the unsafe enchants patch

@granny granny merged commit 1f42e8f into PurpurMC:ver/1.20.1 Aug 24, 2023
1 check passed
@granny granny removed the needs-docs A pull request to PurpurDocs is required before merge label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants