Posted August 6, 20214 yr How can I specify potions in recipes? ShapelessRecipeBuilder.shapeless(ModItems.POSION_APPLE.get()) .requires(Items.APPLE) .requires(Ingredient.of(PotionUtils.setPotion(new ItemStack(Items.POTION), Potions.POISON))) .unlockedBy("has_item", has(Items.APPLE)) .save(consumer); It's not work Edited August 6, 20214 yr by reasure
August 6, 20214 yr Author ShapelessRecipeBuilder.shapeless(ModItems.POISON_APPLE.get()) .requires(Items.APPLE) .requires(NBTIngredient.of(PotionUtils.setPotion(new ItemStack(Items.POTION), Potions.POISON))) .unlockedBy("has_item", has(Items.APPLE)) .save(consumer); It's not work too
August 6, 20214 yr Author { "type": "minecraft:crafting_shapeless", "ingredients": [ { "item": "minecraft:apple" }, { "item": "minecraft:potion" } ], "result": { "item": "reasurecraft:poison_apple" } } Here is Json file
August 6, 20214 yr NBTIngredient doesn't have an of method itself, you're actually calling Ingredient.of. You need to create an instance of NBTIngredient directly (or a class that extends it, since the constructor is protected). Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
August 6, 20214 yr Author { "type": "minecraft:crafting_shapeless", "ingredients": [ { "item": "minecraft:apple" }, { "type": "forge:nbt", "item": "minecraft:potion", "count": 1, "nbt": "{Potion:\"minecraft:poison\"}" } ], "result": { "item": "reasurecraft:poison_apple" } } It worked! Thank you!!! Edited August 6, 20214 yr by reasure
December 19, 2024Dec 19 Ive been looking so hard for a guide on how to add a potion to a recipe for making paints in my mod. This the only one i found which works, and it took forever to find. Thanks a lot!
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.