Posted September 26, 20231 yr 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. Spoiler 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.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.