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

[feature]Get and set enchantments for an ItemStack #103

Open
xXLarryTFVWXx opened this issue Dec 6, 2024 · 1 comment
Open

[feature]Get and set enchantments for an ItemStack #103

xXLarryTFVWXx opened this issue Dec 6, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@xXLarryTFVWXx
Copy link

Is your feature request related to a problem? Please describe.
There is no problem. I just wanted to test different damage calculations.

Describe the solution you'd like
I want to get the enchantment name and level to affect the amount of damage dealt or received by the player/actor.
Just simple get_enchantments and set_enchantments methods will suffice.
get_enchantments could return either a list of Enchantment objects or a dictionary, while the appropriate set method will take the same argument.

@xXLarryTFVWXx xXLarryTFVWXx added the enhancement New feature or request label Dec 6, 2024
@wu-vincent wu-vincent self-assigned this Dec 6, 2024
@wu-vincent
Copy link
Member

This is definitely something we are gonna work on next. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants