Advertisement
Camellias_

Untitled

Jul 30th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.87 KB | None | 0 0
  1.                 if(handler.getStackInSlot(0) == VoidaicAltarRecipes.INSTANCE.getIngredient1())
  2.                 {
  3.                     if(handler.getStackInSlot(1) == VoidaicAltarRecipes.INSTANCE.getIngredient2())
  4.                     {
  5.                         if(handler.getStackInSlot(2) == VoidaicAltarRecipes.INSTANCE.getIngredient3())
  6.                         {
  7.                             if(handler.getStackInSlot(0).getItem() == ModItems.SPELL_PAPER
  8.                                 || handler.getStackInSlot(1).getItem() == ModItems.SPELL_PAPER
  9.                                 || handler.getStackInSlot(2).getItem() == ModItems.SPELL_PAPER)
  10.                             {
  11.                                 isCraftingSpell = true;
  12.                                 isCraftingItem = false;
  13.                             }
  14.                             else
  15.                             {
  16.                                 isCraftingItem = true;
  17.                                 isCraftingSpell = false;
  18.                             }
  19.                         }
  20.                     }
  21.                     else if(handler.getStackInSlot(1) == VoidaicAltarRecipes.INSTANCE.getIngredient3())
  22.                     {
  23.                         if(handler.getStackInSlot(2) == VoidaicAltarRecipes.INSTANCE.getIngredient2())
  24.                         {
  25.                             if(handler.getStackInSlot(0).getItem() == ModItems.SPELL_PAPER
  26.                                 || handler.getStackInSlot(1).getItem() == ModItems.SPELL_PAPER
  27.                                 || handler.getStackInSlot(2).getItem() == ModItems.SPELL_PAPER)
  28.                             {
  29.                                 isCraftingSpell = true;
  30.                                 isCraftingItem = false;
  31.                             }
  32.                             else
  33.                             {
  34.                                 isCraftingItem = true;
  35.                                 isCraftingSpell = false;
  36.                             }
  37.                         }
  38.                     }
  39.                 }
  40.                 else if(handler.getStackInSlot(0) == VoidaicAltarRecipes.INSTANCE.getIngredient2())
  41.                 {
  42.                     if(handler.getStackInSlot(1) == VoidaicAltarRecipes.INSTANCE.getIngredient1())
  43.                     {
  44.                         if(handler.getStackInSlot(2) == VoidaicAltarRecipes.INSTANCE.getIngredient3())
  45.                         {
  46.                             if(handler.getStackInSlot(0).getItem() == ModItems.SPELL_PAPER
  47.                                 || handler.getStackInSlot(1).getItem() == ModItems.SPELL_PAPER
  48.                                 || handler.getStackInSlot(2).getItem() == ModItems.SPELL_PAPER)
  49.                             {
  50.                                 isCraftingSpell = true;
  51.                                 isCraftingItem = false;
  52.                             }
  53.                             else
  54.                             {
  55.                                 isCraftingItem = true;
  56.                                 isCraftingSpell = false;
  57.                             }
  58.                         }
  59.                     }
  60.                     else if(handler.getStackInSlot(1) == VoidaicAltarRecipes.INSTANCE.getIngredient3())
  61.                     {
  62.                         if(handler.getStackInSlot(2) == VoidaicAltarRecipes.INSTANCE.getIngredient1())
  63.                         {
  64.                             if(handler.getStackInSlot(0).getItem() == ModItems.SPELL_PAPER
  65.                                 || handler.getStackInSlot(1).getItem() == ModItems.SPELL_PAPER
  66.                                 || handler.getStackInSlot(2).getItem() == ModItems.SPELL_PAPER)
  67.                             {
  68.                                 isCraftingSpell = true;
  69.                                 isCraftingItem = false;
  70.                             }
  71.                             else
  72.                             {
  73.                                 isCraftingItem = true;
  74.                                 isCraftingSpell = false;
  75.                             }
  76.                         }
  77.                     }
  78.                 }
  79.                 else if(handler.getStackInSlot(0) == VoidaicAltarRecipes.INSTANCE.getIngredient3())
  80.                 {
  81.                     if(handler.getStackInSlot(1) == VoidaicAltarRecipes.INSTANCE.getIngredient2())
  82.                     {
  83.                         if(handler.getStackInSlot(2) == VoidaicAltarRecipes.INSTANCE.getIngredient1())
  84.                         {
  85.                             if(handler.getStackInSlot(0).getItem() == ModItems.SPELL_PAPER
  86.                                 || handler.getStackInSlot(1).getItem() == ModItems.SPELL_PAPER
  87.                                 || handler.getStackInSlot(2).getItem() == ModItems.SPELL_PAPER)
  88.                             {
  89.                                 isCraftingSpell = true;
  90.                                 isCraftingItem = false;
  91.                             }
  92.                             else
  93.                             {
  94.                                 isCraftingItem = true;
  95.                                 isCraftingSpell = false;
  96.                             }
  97.                         }
  98.                     }
  99.                     else if(handler.getStackInSlot(1) == VoidaicAltarRecipes.INSTANCE.getIngredient1())
  100.                     {
  101.                         if(handler.getStackInSlot(2) == VoidaicAltarRecipes.INSTANCE.getIngredient2())
  102.                         {
  103.                             if(handler.getStackInSlot(0).getItem() == ModItems.SPELL_PAPER
  104.                                 || handler.getStackInSlot(1).getItem() == ModItems.SPELL_PAPER
  105.                                 || handler.getStackInSlot(2).getItem() == ModItems.SPELL_PAPER)
  106.                             {
  107.                                 isCraftingSpell = true;
  108.                                 isCraftingItem = false;
  109.                             }
  110.                             else
  111.                             {
  112.                                 isCraftingItem = true;
  113.                                 isCraftingSpell = false;
  114.                             }
  115.                         }
  116.                     }
  117.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement