Have 2 Different Recipe But Have Same Result Need Help Checking Item In Crafting Grid For Result

Started by son_savasci on

Topic category: Help with modding (Java Edition)

Last seen on 02:27, 21. Dec 2023
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have 2 Different Recipe But Have Same Result Need Help Checking Item In Crafting Grid For Result

Hey. I have 3 recipe for same result. But my problem is this;

 

1st Recipe is Giving morphine(directly. Is main recipe)

2st Recipe is Giving morphine(using bottled 2/2 morphine)

3st Recipe is Giving morphine(using bottled 2/1 morphine)

 

When producing the second recipe, I want it to work with the item used in the third recipe.
No problem in the first recipe.
When I use a full bottle in the second recipe, I want to get the half bottle of morphine and morphine needle with the result. Like the milk bucket used when making a cake.

 

The bottles used in the recipe are 2 different items, full and empty.
This is a shapeless recipe. How can I detect the full or empty of the bottle in this recipe and make it work accordingly?
If there is a full bottle, give the half bottle with the needle.
If there is a half bottle, give the empty bottle with the needle.

 

How i can ? Thanks from now.