Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Rotartsi

Members
  • Joined

  • Last visited

  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. Rotartsi joined the community
  4. 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?

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.