I'm adding a new item "grapefruit_soda" that requires a water potion and other items for it to be crafted, however im having trouble when adding the water potion since it is not directly an "Item", when I go into the game and look for the recipe I just get a Uncraftable Potion, I tried creating a customized shapelessRecipeBuilder Class and directly get the water potion in the ModRecipeProvider class but i've unsuccessfull;
My code for the ModRecipeBuilder classs and grapefruit_soda item.
Hello! I need help with my Minecraft Mod for 1.18.2. The CurseForge mod is Here.
You see, i have 2 major errors in my code right now, described on my forum post describing the issue Here.
Hello,
I'm adding a new item "grapefruit_soda" that requires a water potion and other items for it to be crafted, however im having trouble when adding the water potion since it is not directly an "Item", when I go into the game and look for the recipe I just get a Uncraftable Potion, I tried creating a customized shapelessRecipeBuilder Class and directly get the water potion in the ModRecipeProvider class but i've unsuccessfull;
My code for the ModRecipeBuilder classs and grapefruit_soda item.
ShapelessRecipeBuilder.shapeless(RecipeCategory.MISC, ModItems.GRAPEFRUIT_SODA.get(), 1) .requires(ModItems.PURPLE_HAZE_BUD.get(), 3) .unlockedBy(getHasName(ModItems.WEED_BUD.get()), has(ModItems.WEED_BUD.get())) .requires(Items.CHORUS_FRUIT, 2) .unlockedBy(getHasName(Items.CHORUS_FRUIT), has(Items.CHORUS_FRUIT)) .requires(Ingredient.of(PotionUtils.setPotion(new ItemStack(Items.POTION), Potions.WATER))) .save(pWriter);
How can I go about this, thanks in advance.
Just use the water bottle item.
Hello! I need help with my Minecraft Mod for 1.18.2. The CurseForge mod is Here.
You see, i have 2 major errors in my code right now, described on my forum post describing the issue Here.