diff --git a/develop/items/potions.md b/develop/items/potions.md index df4bf6bef..69410f034 100644 --- a/develop/items/potions.md +++ b/develop/items/potions.md @@ -5,6 +5,8 @@ authors: - dicedpixels - PandoricaVi - Drakonkinst + - JaaiDead + --- # Potions {#potions} @@ -21,7 +23,7 @@ Just like items and blocks, potions need to be registered. Let's start by declaring a field to store your `Potion` instance. We will be directly using the initializer class to hold this. -@[code lang=java transclude={21-29}](@/reference/latest/src/main/java/com/example/docs/potion/FabricDocsReferencePotions.java) +@[code lang=java transclude={19-27}](@/reference/latest/src/main/java/com/example/docs/potion/FabricDocsReferencePotions.java) We pass an instance of `StatusEffectInstance`, which takes 3 parameters: @@ -38,7 +40,7 @@ To create your own potion effect, please see the [Effects](../entities/effects) In our initializer, we will use the `FabricBrewingRecipeRegistryBuilder.BUILD` event to register our potion using the `BrewingRecipeRegistry.registerPotionRecipe` method. -@[code lang=java transclude={33-42}](@/reference/latest/src/main/java/com/example/docs/potion/FabricDocsReferencePotions.java) +@[code lang=java transclude={29-42}](@/reference/latest/src/main/java/com/example/docs/potion/FabricDocsReferencePotions.java) `registerPotionRecipe` takes 3 parameters: