Jump to content

Help creating a custom potion effect


Recommended Posts

I was wondering how I would go about making a potion effect do various things to the player, like change their speed, change the damage of certain items, ect. The problem is, there is no documentation anywhere in the vanilla source that shows how vanilla potions actually carry out their effects, just things like func_118237_a. I was trying to make a potion that replaced an item in the players inventory with another and take it away when it wears off, and also make some stat changes. I already know how to do the first part, I just don't know how to make the potion do it, or how to make changes to the players stats. Also there are no tutorials I could find explaining this, just ones saying how to make the effect itself. Any help with this would be IMMENSELY appreciated!

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.