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

added lightweight possibility to add enchants into existing entries #283

Merged
merged 2 commits into from
Jan 25, 2025

Conversation

MaksyKun
Copy link
Contributor

Just one small thing I figured that was not possible yet..
If you add an enchanted book on a GeneratorItem, you will now get an updated "custom" lore from the '%ENCHANTS%' placeholder.

However, this is pretty lightweight and might give potential to have updates soon. Atm, there is no reliable way to detect on which position (including all other filled placeholders) unless there is at least one enchantment available. If thats not the case, we simply add a '%ENCHANTS%'-placeholder at the end of a lore, if its not hidden by an Item-Flag.

@MaksyKun MaksyKun requested a review from Travja January 21, 2025 17:52
@MaksyKun
Copy link
Contributor Author

Example:
image

After adding a book:
image

@Travja Travja linked an issue Jan 25, 2025 that may be closed by this pull request
@Travja Travja merged commit 79f65f6 into dev Jan 25, 2025
3 checks passed
@Travja Travja deleted the itemgen-enchantment-updates branch January 25, 2025 23:59
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.

Issue with enchanting items from the item generator
2 participants