link1213 Posted October 13, 2020 Posted October 13, 2020 how do i check if an entityLiving has a specific potion effect? Quote
urbanxx001 Posted October 13, 2020 Posted October 13, 2020 (edited) You could do the following: Map<Effect, EffectInstance> potionMap = entityLiving.getActivePotionMap(); if (potionMap.containsKey(Effects.EFFECT_NAME)) { // Do something } Edited October 13, 2020 by urbanxx001 1 Quote
link1213 Posted October 13, 2020 Author Posted October 13, 2020 thank you so much, I think that will do exactly what I want 1 Quote
Recommended Posts
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.