This is part of the Tutorial Code for Tile Entities with one slot.
I want to know the role of each parameter in moveItemStackTo().
(or mergeItemStack() in other mappings.)
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
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