Jump to content

[1.14.4] Is it possible to create potions?


jiggish

Recommended Posts

I've just started trying to code for minecraft, having very little experience with Java, I decided my first try and learn would be to create a mod with a bunch of custom potions for the game, with new effects and everything, so I started following tutorials from zero, and reading all the documentation I could find, guiding my way into learning, but being completely unable to find anything that could teach how to create potions for 1.14.4.

All the guides are outdated, even the topics on this forum all refer to 1.12.2/prior. There's no PotionType class, even the main Potion class is completely different, and the registry-thing deny any of my tries into inserting new potions or new effects into the game. Doing some more research, I found no mods online with new potions for 1.14.4.

Is it even possible to create new potions with new effects? And how to?

Link to comment
Share on other sites

Every time I try to construct a new Effect I get "The constructor Effect(EffectType, int) is not visible".
I'm trying to register a new Effect as I would with anything else, following what I believe is the default procedure.

 

@SubscribeEvent
public static void registerEffects(final RegistryEvent.Register<Effect> event) {			
  event.getRegistry().registerAll(
    EffectList.EFFECT_TEST = new Effect(null, 0).setRegistryName(location("effect_test"))
  );
  logger.info("Potions registered.");
}

 

and about "EffectList..."

public class EffectList {
	public static Effect EFFECT_TEST;
}


Even trying many others way (which I believe are all wrong) I'm still not able to use the constructor.
What else should I be doing?

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.

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.