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

Enchantments do not work with 'give' #108

Closed
Stuntlover-TM opened this issue Nov 11, 2024 · 3 comments · May be fixed by #109
Closed

Enchantments do not work with 'give' #108

Stuntlover-TM opened this issue Nov 11, 2024 · 3 comments · May be fixed by #109
Labels
4.0 bug Something isn't working Future good first issue Good for newcomers investigate

Comments

@Stuntlover-TM
Copy link

Hey, I was making a system to save items to a database using skJson, which works fine except for one thing.
Saving an item with an enchantment and loading it again removes the enchantment, even the official example in the README.md file does not work:

set {_item} to diamond sword named "Test"
set lore of {_item} to "&6Gold" and "&7Silver"
enchant {_item} with Sharpness 5
set {_json_item} to json from {_item}
    
give {_json_item} to player

The name and lore stay correct, but the enchantment is not saved. I am on the most recent skJson version and Minecraft version 1.21.1.
The interesting thing is that if I display {_data}, it does show that it has the enchantment (as shown in the attached image)
image

@cooffeeRequired
Copy link
Owner

Known issue, i will fix it soon

@Stuntlover-TM
Copy link
Author

Thanks for the quick response, looking forward to the fix!

@cooffeeRequired cooffeeRequired added bug Something isn't working good first issue Good for newcomers investigate 4.0 Future labels Nov 11, 2024
@cooffeeRequired
Copy link
Owner

#109

@cooffeeRequired cooffeeRequired linked a pull request Nov 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.0 bug Something isn't working Future good first issue Good for newcomers investigate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants