Posted June 29, 20205 yr Hello im kind of a beginner to modding. I want my custom weapon to inflict a potion effect on hit and im using the right event but i cant figure out how to write the correct if statement can anyone help me?
June 29, 20205 yr Check if the held item in the hand (LivingEntity#getHeldItem) is holding either an instanceof your weapon class (if you want all weapons with that class to have the effect) or check explicitly if the item is your item. Edited June 29, 20205 yr by ChampionAsh5357 Incorrect class reference
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.