Skip to content

I don't know how to get the enchantment level of an Itemstack since 1.20.5 #3866

Closed Answered by pentyum
pentyum asked this question in Mod Dev Support
Discussion options

You must be logged in to vote

I have read the implement of CraftRegistry in craftbukkit and now have known how to convert RegistryKey<Enchantment> to RegistryEntry<Enchantment> It should use server.getRegistryManager().get(RegistryKeys.ENCHANTMENT).getEntry(enchantment_registry_key).get().

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pentyum
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
3 participants