Jump to content

Rotartsi

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Rotartsi

  1. hmm. I see. After looking around for a while, I've found I could use `PotionUtils.addPotionToItemStack`
  2. I see the fromItems() factory method, but how do I get my potion as an item?
  3. So I've been trying to add a potion into the game with forge 1.15. I've got the potion showing up in the creative menu, but don't know how to add a brewing stand recipe. I see that I could use `BrewingRecipeRegistry.addRecipe`, but it seems to take `Ingredient`s as arguments, and I'm not sure how to use that (how do i get potions as ingredients? I can't even get them as items! they are types of the same item: minecraft:potion). Here's the code that I have to add the potion to the creative inventory: ``` public static final DeferredRegister<Potion> REGISTER = new DeferredRegister<>(ForgeRegistries.POTION_TYPES, MODID); public static final RegistryObject<Potion> LEVITATION = REGISTER.register("potion_levitation", () -> new Potion(new EffectInstance(Effects.LEVITATION, 900))); ``` and I would run `REGISTER.register(FMLJavaModLoadingContext.get().getModEventBus());` in the appropriate event handler. I'm intending to implement the recipe - Levitation Dust (from my mod, "mymod:levitation_dust") + Awkward Potions = Potion of Levitation I want this potion to be able to be made into splash/lingering potions and be able to add glowstone and redstone to make it stronger or longer. How would I do that?
×
×
  • Create New...

Important Information

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