Jump to content

Recommended Posts

Posted

Hi, I'm trying to create a custom potion effect. I've looked at several tutorials, however all of the ones that I have found are outdated and/or don't make sense to me. I was hoping someone could provide me with a link to an updated tutorial or quickly run down how to do it.

Thanks!  :D

Posted
  On 11/23/2014 at 2:15 AM, diesieben07 said:

Extend the Potion class. Done.

 

What a well thought out reply that did not help in the slightest! What next? "Hey guys I need help making this mod work does anyone have any tips?" "Write code."

 

Next time try actually helping the person asking

Posted

Right... I had gotten that far, however I somehow doubt that

public class PotionTest extends Potion
{
    public PotionTest(int par1, boolean par2, int par3)
    {
        super(par1, par2, par3);
    }

    public Potion setIconIndex(int par1, int par2)
    {
        super.setIconIndex(par1, par2);
        return this;
    }
}

is all I need. How would I go about actually using the effect?

Posted

Thank you very much, I will take a look at this. As you probably get tired of hearing, I am new to modding. You are very obviously not new to any of this. What may be completely obvious and self-explanatory to you, is a very new and complicated world for me.

Posted

I've been programming for about 3 years now, albeit rather sporadically across that time frame. I'm quite a slow learner and I take time build a great understanding like you have. I guess for someone like me, this:

 

  Reveal hidden contents

 

is a bit hard to read at a quick glance. :P

Posted

This is definitely not the best solution, if you want your potion to be available via the vanilla brewing-stand or if you want to have a nice icon for your effect in the inventory you should just ignore this post!

 

 

  Reveal hidden contents

 

Here could be your advertisement!

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.

Guest
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.

Announcements



×
×
  • Create New...

Important Information

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