Posted June 2, 201411 yr Heyho Guys! I want to create a potion which reduces the effectiveness of potions by 50%. Therefore I need an event which is fired when an entity is getting healed. Which event can I use? http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
June 5, 201411 yr The best i could think of is to check to players potion effects in the onUpdate event than cut the duration of the potion in half
June 5, 201411 yr Author Ok, but with this you only affect regeneration potions and not instant health potions. I think I'll try to do this by saving the previous value (or is this already saved anywhere?) and compare it with the actual value every tick. http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
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.