keaft

Untitled

Apr 22nd, 2021 (edited)
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import crafttweaker.item.IIngredient;
  2. import crafttweaker.recipes.ICraftingRecipe;
  3.  
  4. var itemCheck = <minecraft:quartz_block>;
  5. var cullRecipes = recipes.getRecipesFor(itemCheck);
  6. var recipeNumbertoCheck = 1;
  7. print("There are " + cullRecipes.length + " recipes for " + itemCheck.definition.owner + ":" + itemCheck.name);
  8. print("There are " + cullRecipes[recipeNumbertoCheck].ingredients1D.length + " items for " + cullRecipes[recipeNumbertoCheck].resourceDomain + ":" + cullRecipes[recipeNumbertoCheck].name);
  9. for i in 0 to cullRecipes[recipeNumbertoCheck].ingredients1D.length {
  10.     print("in the loop");
  11.     print(cullRecipes[recipeNumbertoCheck].ingredients1D[i].items[0].displayName);
  12. }
Add Comment
Please, Sign In to add comment