Potion effects

2 posts / 0 new
Last post
Offline
Last seen: 1 year 2 months ago
Joined: 09/12/2014 - 15:41
Gems: 0
Potion effects

Is there a way to make armor ignore potion effects like have an armor make it so that you can't get withered or cant get blindness?



Offline
Last seen: 7 months 2 weeks ago
Joined: 02/16/2015 - 13:58
Gems: 0
i am not exactly sure how.

i am not exactly sure how. but what i would do is make it so that per tick of wearing the armour, there is an if{ player has potion effect. then the player gets the same effect as consuming milk, which would remove all effects, or simply just give them an opposite potion, for example to counter slowness the player would be given speed, and for wither
they wpuld be given regeneration. what your trying to do is not simple so dont expect much help from this community, you would need basic java knowledge.