diff --git a/src/main/java/eu/raspberrymods/fishlib/FishLib.java b/src/main/java/eu/raspberrymods/fishlib/FishLib.java index b1c0c80..ce0494b 100644 --- a/src/main/java/eu/raspberrymods/fishlib/FishLib.java +++ b/src/main/java/eu/raspberrymods/fishlib/FishLib.java @@ -1,7 +1,7 @@ package eu.raspberrymods.fishlib; import net.fabricmc.api.ModInitializer; - +import net.fabricmc.api.FabricBrewingRecipeRegistryBuilder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -10,7 +10,19 @@ public class FishLib implements ModInitializer { // It is considered best practice to use your mod id as the logger's name. // That way, it's clear which mod wrote info, warnings, and errors. public static final Logger LOGGER = LoggerFactory.getLogger("fish-lib"); - + static void brewingRegisterAwkward(String output, String ingredient) { + // code to be executed + FabricBrewingRecipeRegistryBuilder.BUILD.register(builder -> { + builder.registerPotionRecipe( + // Input potion. + Potions.WATER, + // Ingredient + Items.ingredient, + // Output potion. + RegistryEntry.of(output) + ); + }); + } @Override public void onInitialize() { // This code runs as soon as Minecraft is in a mod-load-ready state. diff --git a/src/main/java/eu/raspberrymods/fishlib/ObsidianTool.java b/src/main/java/eu/raspberrymods/fishlib/ObsidianTool.java index 65ea9e6..a75eff3 100644 --- a/src/main/java/eu/raspberrymods/fishlib/ObsidianTool.java +++ b/src/main/java/eu/raspberrymods/fishlib/ObsidianTool.java @@ -1,5 +1,5 @@ //import net.minecraft.*; -@Override +/*@Override public class ObsidianTool implements ToolMaterial { // Your IDE should override the interface's methods for you, or at least shout at you to do so. @Override @@ -26,4 +26,4 @@ public int getEnchantability() { public Ingredient getRepairIngredient() { return Ingredient.ofItems(Items.OBSIDIAN); } -} \ No newline at end of file +}*/ \ No newline at end of file