January 9, 20223 yr Hey, you have to get the PlayerEntity from the PlayerInteractEvent.RightClickItem and use addPotionEffect() on the PlayerEntity https://mcforge.readthedocs.io/en/latest/events/intro/ Edited January 9, 20223 yr by Antotor45
January 9, 20223 yr 2 hours ago, Antotor45 said: Hey, Tu dois récuperer le PlayerEntity grace a l'event PlayerInteractEvent.RightClickItem et tu utilise addPotionEffect() sur le PlayerEntity keep this forum in english please
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.