SHARE
TWEET

Untitled

a guest Sep 15th, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [INITIALIZATION][CLIENT][ERROR] [crafttweaker]: Error executing {[0:crafttweaker]: Stages\2_two\Staging_items.zs}: null
  2. java.lang.NullPointerException
  3.     at Stages\2_two\Staging_items.__script__(Stages\2_two\Staging_items.zs:60)
  4.     at __ZenMain__.run(Stages\2_two\Staging_items)
  5.     at crafttweaker.runtime.CrTTweaker.loadScript(CrTTweaker.java:225)
  6.     at crafttweaker.runtime.CrTTweaker.loadScript(CrTTweaker.java:105)
  7.     at crafttweaker.mc1120.events.CommonEventHandler.registerRecipes(CommonEventHandler.java:69)
  8.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_898_CommonEventHandler_registerRecipes_Register.invoke(.dynamic)
  9.     at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
  10.     at net.minecraftforge.fml.common.eventhandler.EventBus$1.invoke(EventBus.java:144)
  11.     at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
  12.     at net.minecraftforge.registries.GameData.fireRegistryEvents(GameData.java:857)
  13.     at net.minecraftforge.common.crafting.CraftingHelper.loadRecipes(CraftingHelper.java:629)
  14.     at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:742)
  15.     at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:336)
  16.     at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:535)
  17.     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)
  18.     at net.minecraft.client.main.Main.main(SourceFile:123)
  19.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  20.     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  21.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  22.     at java.lang.reflect.Method.invoke(Unknown Source)
  23.     at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
  24.     at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
  25.  
  26.  
  27.  
  28. Script to the error:
  29.  
  30.  
  31. import crafttweaker.item.IItemStack;
  32. import crafttweaker.oredict.IOreDict;
  33. import crafttweaker.oredict.IOreDictEntry;
  34. import crafttweaker.mods.ILoadedMods;
  35. import crafttweaker.mods.IMod;
  36. import mods.zenstages.Stage;
  37. import mods.zenstages.ZenStager;
  38.  
  39.  
  40. var STAGE = STAGES.two;
  41.  
  42. var mods_to_be_staged as string[] = [
  43.   "deepmoblearning",
  44.   "endrio",
  45.   "tp",
  46.   "weirdinggadget",
  47.   "solarflux",
  48.   "enderstorage",
  49.   "enderutilities",
  50.   "elevatorid",
  51.   "tcomplement",
  52.   "charset",
  53.   "buildinggadgets",
  54.   "bonsaitrees",
  55.   "torchmaster"
  56. ];
  57.  
  58. for items in loadedMods["deepmoblearning"].items {
  59.   mods.ItemStages.addItemStage(STAGE, items);
  60.   mods.recipestages.Recipes.setRecipeStage(STAGE, items);
  61. }
  62.  
  63. for items in loadedMods["enderio"].items {
  64.   mods.ItemStages.addItemStage(STAGE, items);
  65.   mods.recipestages.Recipes.setRecipeStage(STAGE, items);
  66. }
  67.  
  68. for items in loadedMods["tp"].items {
  69.   mods.ItemStages.addItemStage(STAGE, items);
  70.   mods.recipestages.Recipes.setRecipeStage(STAGE, items);
  71. }
  72.  
  73. for items in loadedMods["weirdinggadget"].items {
  74.   mods.ItemStages.addItemStage(STAGE, items);
  75.   mods.recipestages.Recipes.setRecipeStage(STAGE, items);
  76. }
  77.  
  78. for items in loadedMods["enderstorage"].items {
  79.   mods.ItemStages.addItemStage(STAGE, items);
  80.   mods.recipestages.Recipes.setRecipeStage(STAGE, items);
  81. }
  82.  
  83. for items in loadedMods["tcomplement"].items {
  84.   mods.ItemStages.addItemStage(STAGE, items);
  85.   mods.recipestages.Recipes.setRecipeStage(STAGE, items);
  86. }
  87.  
  88.  
  89. for modzz in mods_to_be_staged {
  90.     for items in loadedMods[modzz].items { //<-----ERROR HERE
  91.         mods.ItemStages.addItemStage(STAGE, items);
  92.         mods.recipestages.Recipes.setRecipeStage(STAGE, items);
  93.     }
  94. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top