#Get a Specific Enchantment that an itemstack Has (if it has it, if not then no) And Get The Level
22 messages · Page 1 of 1 (latest)
Get the ItemEnchantmentComponent from the ItemStack's components, then you have access to getLevel which queries the enchant->level hashmap
It'll return 0 if the enchant doesn't exist, or the level itself if it exists
im in that 🙏
Ehhhhh...................
Check the other errors, what went wrong?
Don't just widen the error, the stack trace is useful
if hope to god it isnt that warning on the RegistryEntry Enchantment of the level value
It probably is
You can't really just cast an RegistryKey to an RegistryEntry
The key is how you get the entry from the registry
Can you click on the :runClient tab and copy-paste the whole stacktrace
ok....
this?
is too long X(
look look look