Posted August 15, 20205 yr How do you add a potion effect in the enchatment code??? I want when ever you have a piece of armor on with the enchatment you would get regeneration. plz help Edited August 16, 20205 yr by Ducky Coder
August 16, 20205 yr As diesieben said, use LivingUpdateEvent, check if the entity provided is wearing your armour (PlayerInventory.getStackInSlot()) with the enchantment, apply the potion effect.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.