Jump to content

jackmano

Forge Modder
  • Posts

    29
  • Joined

  • Last visited

Posts posted by jackmano

  1. Ok, so I'm using a tile to spawn an EntityItem. Everything works except as soon as it drops the first item, the console spams with messages like this-

    [12:19:29] [Client thread/WARN] [FML]: Attempted to add a EntityItem to the world with a invalid item at (-239.00,  3.00, 434.00), this is most likely a config issue between you and the server. Please double check your configs
    

    It drops the item just like I told it to, so this is kind of a secondary error, but I need it fixed.

    Tile Code -

     

     

    package com.rabidfox.syntheticgems;
    
    import net.minecraft.entity.item.EntityItem;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraft.nbt.NBTTagCompound;
    import net.minecraft.network.NetworkManager;
    import net.minecraft.network.Packet;
    import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.tileentity.TileEntityChest;
    
    
    public class TileMachineCeramicRodHolder extends TileEntity{
    public Boolean rodInserted = false;
    public ItemStack typeCrystal;
    public int left = 120;
    public TileMachineCeramicRodHolder(){  
    }
    @Override
    public void writeToNBT(NBTTagCompound nbt){
    	super.writeToNBT(nbt);
    	nbt.setBoolean("ifyouknowwhatimean", rodInserted);
    	if(typeCrystal != null){
    	nbt.setInteger("crytype", (Item.getIdFromItem(typeCrystal.getItem())));
    	nbt.setInteger("size", typeCrystal.stackSize);
    	}
    }
    public void readFromNBT(NBTTagCompound nbt){
    	super.readFromNBT(nbt);
    	rodInserted = nbt.getBoolean("ifyouknowwhatimean");
    	typeCrystal = new ItemStack(Item.getItemById(nbt.getInteger("crytype")), nbt.getInteger("size"));
    
    }
    public void setRod(Boolean rodIn){
    	rodInserted = rodIn;
    	worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); // Makes the server call getDescriptionPacket for a full data sync
    }
        @Override
        public Packet getDescriptionPacket()
        {
            NBTTagCompound nbttagcompound = new NBTTagCompound();
            writeToNBT(nbttagcompound);
            return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, nbttagcompound);
        }
        
        @Override
        public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity packet)
        {
            readFromNBT(packet.func_148857_g());
            worldObj.func_147479_m(xCoord, yCoord, zCoord);
        }
        @Override 
        public void updateEntity(){
        	if(worldObj.getTileEntity(xCoord, yCoord + 1, zCoord) == null){
        		return;
        	}
        	if(typeCrystal != null && ((TileHydroTorch) worldObj.getTileEntity(xCoord, yCoord + 1, zCoord)).isfire()){
        		left++;
        		TileHydroTorch trch = (TileHydroTorch) worldObj.getTileEntity(xCoord, yCoord + 1, zCoord);
        		if(left >= 120){
        			worldObj.spawnEntityInWorld(new EntityItem(worldObj, xCoord, yCoord, zCoord + 1, typeCrystal));
        			typeCrystal = null;
        			left = 0;
        			trch.killTorch();
        			trch.turnOff();
        		}
        	}
        }
    }
    

     

     

    The TypeCrystals are derived from these-

    crystaltypes = new ArrayList();
    	resultcrystals = new ArrayList();
    	crystaltypes.add(0, Items.blaze_powder);
    	resultcrystals.add(0, new ItemStack(Items.blaze_rod));
    	crystaltypes.add(1, SyntheticGems.itemalumina);
    	resultcrystals.add(1, new ItemStack(Blocks.redstone_block, 3));
    

    I didnt have this problem when I only had the Blaze Rod and Blaze Powder, it just started. PLZ HEEELP

  2. My for loop wont start!

    No crash, it just doesn;t go

    package com.rabidfox.syntheticgems;
    
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Random;
    
    import net.minecraft.init.Items;
    import net.minecraft.item.Item;
    import net.minecraft.nbt.NBTTagCompound;
    import net.minecraft.network.NetworkManager;
    import net.minecraft.network.Packet;
    import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.tileentity.TileEntityChest;
    public class TileHydroTorch extends TileEntity {
    Random rdm = new Random();
    Boolean on = false;
    Boolean fire = false;	
    Boolean ready = false;
    Item returncrystal = null;
    List crystaltypes;
    List resultcrystals;
    public TileHydroTorch(){
    	crystaltypes = new ArrayList();
    	resultcrystals = new ArrayList();
    	crystaltypes.add(0, Items.blaze_powder);
    	resultcrystals.add(0, Items.blaze_rod);
    }
    public int getFacing() {
    	return 0;
    
    }
    
    @Override
    public void writeToNBT(NBTTagCompound nbt){
    	super.writeToNBT(nbt);
    	nbt.setBoolean("on", on);
    	nbt.setBoolean("fire", fire);
    	nbt.setBoolean("ready", ready);
    	nbt.setInteger("returncrystal", Item.getIdFromItem(returncrystal));
    }
    public void readFromNBT(NBTTagCompound nbt){
    	super.readFromNBT(nbt);
    	on = nbt.getBoolean("on");
    	fire = nbt.getBoolean("fire");
    	ready = nbt.getBoolean("ready");
    	returncrystal = Item.getItemById(nbt.getInteger("returncrystal"));
    
    
    }
    public void igniteTorch(){
    	if(on){
    		fire = true;
    		worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); // Makes the server call getDescriptionPacket for a full data sync
    	}
    }
    public void turnOn(){
    	if(!on){
    		on = true;
    		worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); // Makes the server call getDescriptionPacket for a full data sync
    	}
    }
    public void killTorch(){
    	if(fire){
    		fire = false;
    		worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); // Makes the server call getDescriptionPacket for a full data sync
    	}
    }
    public void turnOff(){
    	if(on){
    		on = false;
    		worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); // Makes the server call getDescriptionPacket for a full data sync
    	}
    }
        @Override
        public Packet getDescriptionPacket()
        {
            NBTTagCompound nbttagcompound = new NBTTagCompound();
            writeToNBT(nbttagcompound);
            return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, nbttagcompound);
        }
        
        @Override
        public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity packet)
        {
            readFromNBT(packet.func_148857_g());
            worldObj.func_147479_m(xCoord, yCoord, zCoord);
        }
        public void activate(){
        	if(this.on){
        		this.fire = true;
        	}
        	System.out.println("Activated");
        	if(worldObj.getTileEntity(xCoord, yCoord + 1, zCoord) instanceof TileEntityChest){
            	System.out.println("Chest detected");
    		int slot = 420;
        		TileEntityChest chest = (TileEntityChest)worldObj.getTileEntity(xCoord, yCoord + 1, zCoord);
            	System.out.println("tile getted");
        		for(int i = 29; i == -1; i--){
        	    	System.out.println("for");
        			Item theitem = chest.getStackInSlot(i).getItem();
        			if(theitem != null){
        		    	System.out.println("items not null");
        				if(crystaltypes.contains(theitem)){
        				    int index = crystaltypes.indexOf(theitem);
        				    this.returncrystal = (Item)resultcrystals.get(index);
        			    	System.out.println("set some shit");
        					slot = i;
        				}
        			}
        		}
        		if(!this.on && slot != 420 && RabidFoxUtil.searchChestForItem(SyntheticGems.itemoxybottle, chest) != -1 && RabidFoxUtil.searchChestForItem(SyntheticGems.itemhydbottle, chest) != -1){
        			chest.getStackInSlot(RabidFoxUtil.searchChestForItem(SyntheticGems.itemoxybottle, chest)).stackSize--;
        			chest.getStackInSlot(RabidFoxUtil.searchChestForItem(SyntheticGems.itemhydbottle, chest)).stackSize--;
        	    	System.out.println("deleted some stuff");
        			chest.getStackInSlot(slot).stackSize--;
        			this.on = true;
        		}
        	}
        }
    @Override
    public void updateEntity(){
    		if(on && !fire){
    			this.worldObj.spawnParticle("cloud", 0.5F + (worldObj.rand.nextFloat() / 5), 0.75F, 0.5F + (worldObj.rand.nextFloat() / 5), 0, -0.2F, 0);
    		}
    		if(on && fire){
    			this.worldObj.spawnParticle("flame", 0.5F + (worldObj.rand.nextFloat() / 5), 0.75F, 0.5F + (worldObj.rand.nextFloat() / 5), 0, -0.5F, 0);
    	}
    	}
    }
    

  3. Fixed. Now it says

    [10:55:17] [main/INFO] [GradleStart]: Extra: []
    [10:55:17] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/machi_000/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [10:55:18] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
    [10:55:18] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
    [10:55:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [10:55:18] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
    [10:55:18] [main/INFO] [FML]: Forge Mod Loader version 7.99.16.1448 for Minecraft 1.7.10 loading
    [10:55:18] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_45, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_45
    [10:55:18] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [10:55:18] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [10:55:18] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
    [10:55:18] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [10:55:18] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [10:55:18] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [10:55:18] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [10:55:18] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [10:55:18] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [10:55:18] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [10:55:18] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
    [10:55:22] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [10:55:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [10:55:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [10:55:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [10:55:24] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
    [10:55:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
    [10:55:24] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [10:55:28] [main/INFO]: Setting user: Player197
    [10:55:38] [Client thread/INFO]: LWJGL Version: 2.9.1
    [10:55:51] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
    // Don't be sad, have a hug! <3
    
    Time: 11/5/15 10:55 AM
    Description: Loading screen debug info
    
    This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 8.1 (amd64) version 6.3
    Java Version: 1.8.0_45, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 783152296 bytes (746 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: 
    GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.3.12682 Compatibility Profile Context 13.302.1601.0' Renderer: 'AMD Radeon(TM) R3 Graphics'
    [10:55:52] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
    [10:55:52] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1448 Initialized
    [10:55:52] [Client thread/INFO] [FML]: Replaced 183 ore recipies
    [10:55:53] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
    [10:55:54] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
    [10:55:54] [Client thread/INFO] [FML]: Searching C:\Users\machi_000\Documents\Minecraft Development\syntheticgems\eclipse\mods for mods
    [10:56:03] [Client thread/INFO] [syntheticgems]: Mod syntheticgems is missing the required element 'name'. Substituting syntheticgems
    [10:56:22] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
    [10:56:24] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, syntheticgems] at CLIENT
    [10:56:24] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, syntheticgems] at SERVER
    [10:56:26] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:syntheticgems
    [10:56:26] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
    [10:56:26] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
    [10:56:26] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
    [10:56:26] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
    [10:56:26] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
    [10:56:26] [Client thread/INFO] [FML]: Applying holder lookups
    [10:56:26] [Client thread/INFO] [FML]: Holder lookups applied
    [10:56:26] [Client thread/INFO] [FML]: Injecting itemstacks
    [10:56:26] [Client thread/INFO] [FML]: Itemstack injection complete
    [10:56:27] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:56:27] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
    [10:56:27] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
    [10:56:27] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [10:56:29] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
    [10:56:29] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:56:29] [sound Library Loader/INFO]: Sound engine started
    [10:56:48] [Client thread/WARN]: Invalid sounds.json
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
    at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]
    at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
    at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[TypeAdapterRuntimeTypeWrapper.class:?]
    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) ~[MapTypeAdapterFactory$Adapter.class:?]
    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) ~[MapTypeAdapterFactory$Adapter.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?]
    at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:84) [soundHandler.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:130) [simpleReloadableResourceManager.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:528) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
    at GradleStart.main(Unknown Source) [start/:?]
    Caused by: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:465) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:658) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]
    ... 19 more
    [10:56:51] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
    [10:56:52] [Client thread/INFO]: Created: 256x256 textures/items-atlas
    [10:56:52] [Client thread/INFO] [sTDOUT]: [com.rabidfox.syntheticgems.SyntheticGems:init:129]: Successfully Registered World Generator
    [10:56:53] [Client thread/INFO] [FML]: Injecting itemstacks
    [10:56:53] [Client thread/INFO] [FML]: Itemstack injection complete
    [10:56:54] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
    [10:56:54] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:syntheticgems
    [10:56:56] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
    [10:56:57] [Client thread/INFO]: Created: 256x256 textures/items-atlas
    [10:56:57] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:56:57] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
    [10:56:57] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
    [10:56:57] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:56:57] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:56:57] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
    [10:56:57] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
    [10:56:57] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [10:56:57] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
    [10:56:57] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:56:57] [sound Library Loader/INFO]: Sound engine started
    [10:57:01] [Client thread/WARN]: Invalid sounds.json
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
    at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]
    at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
    at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[TypeAdapterRuntimeTypeWrapper.class:?]
    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) ~[MapTypeAdapterFactory$Adapter.class:?]
    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) ~[MapTypeAdapterFactory$Adapter.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?]
    at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:84) [soundHandler.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:143) [simpleReloadableResourceManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:121) [simpleReloadableResourceManager.class:?]
    at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:654) [Minecraft.class:?]
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:327) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
    at GradleStart.main(Unknown Source) [start/:?]
    Caused by: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:465) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:658) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]
    ... 22 more
    [10:59:27] [server thread/INFO]: Starting integrated minecraft server version 1.7.10
    [10:59:27] [server thread/INFO]: Generating keypair
    [10:59:28] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
    [10:59:28] [server thread/INFO] [FML]: Applying holder lookups
    [10:59:28] [server thread/INFO] [FML]: Holder lookups applied
    [10:59:28] [server thread/INFO] [FML]: Loading dimension 0 (Test) (net.minecraft.server.integrated.IntegratedServer@4e2f3ad8)
    [10:59:28] [server thread/INFO] [FML]: Loading dimension 1 (Test) (net.minecraft.server.integrated.IntegratedServer@4e2f3ad8)
    [10:59:28] [server thread/INFO] [FML]: Loading dimension -1 (Test) (net.minecraft.server.integrated.IntegratedServer@4e2f3ad8)
    [10:59:28] [server thread/INFO]: Preparing start region for level 0
    [10:59:29] [server thread/INFO]: Preparing spawn area: 21%
    [10:59:30] [server thread/INFO]: Changing view distance to 12, from 10
    [10:59:32] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
    [10:59:32] [Netty IO #1/INFO] [FML]: Client protocol version 2
    [10:59:32] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@7.10.99.99,Forge@10.13.4.1448,mcp@9.05,syntheticgems@1.0.0
    [10:59:32] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
    [10:59:32] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
    [10:59:32] [server thread/INFO] [FML]: [server thread] Server side modded connection established
    [10:59:32] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
    [10:59:32] [server thread/INFO]: Player197[local:E:d05b5fbe] logged in with entity id 186 at (-242.5156805705788, 4.0, 440.0834589374958)
    [10:59:32] [server thread/INFO]: Player197 joined the game
    [10:59:39] [Client thread/FATAL]: Unreported exception thrown!
    java.lang.NullPointerException
    at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23) ~[TileHydroTorch.class:?]
    at com.rabidfox.syntheticgems.BlockHydroTorch.createNewTileEntity(BlockHydroTorch.java:48) ~[blockHydroTorch.class:?]
    at net.minecraft.block.Block.createTileEntity(Block.java:1775) ~[block.class:?]
    at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:933) ~[Chunk.class:?]
    at net.minecraft.world.ChunkCache.getTileEntity(ChunkCache.java:102) ~[ChunkCache.class:?]
    at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:189) ~[WorldRenderer.class:?]
    at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618) ~[RenderGlobal.class:?]
    at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263) ~[EntityRenderer.class:?]
    at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087) ~[EntityRenderer.class:?]
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067) ~[Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
    at GradleStart.main(Unknown Source) [start/:?]
    [10:59:39] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----
    // This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]
    
    Time: 11/5/15 10:59 AM
    Description: Unexpected error
    
    java.lang.NullPointerException: Unexpected error
    at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23)
    at com.rabidfox.syntheticgems.BlockHydroTorch.createNewTileEntity(BlockHydroTorch.java:48)
    at net.minecraft.block.Block.createTileEntity(Block.java:1775)
    at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:933)
    at net.minecraft.world.ChunkCache.getTileEntity(ChunkCache.java:102)
    at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:189)
    at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618)
    at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)
    at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)
    at net.minecraft.client.Minecraft.run(Minecraft.java:962)
    at net.minecraft.client.main.Main.main(Main.java:164)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
    at GradleStart.main(Unknown Source)
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- Head --
    Stacktrace:
    at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23)
    at com.rabidfox.syntheticgems.BlockHydroTorch.createNewTileEntity(BlockHydroTorch.java:48)
    at net.minecraft.block.Block.createTileEntity(Block.java:1775)
    at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:933)
    at net.minecraft.world.ChunkCache.getTileEntity(ChunkCache.java:102)
    at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:189)
    at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618)
    at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)
    
    -- Affected level --
    Details:
    Level name: MpServer
    All players: 1 total; [EntityClientPlayerMP['Player197'/186, l='MpServer', x=-242.52, y=5.62, z=440.08]]
    Chunk stats: MultiplayerChunkCache: 140, 140
    Level seed: 0
    Level generator: ID 01 - flat, ver 0. Features enabled: false
    Level generator options: 
    Level spawn location: World: (-234,4,421), Chunk: (at 6,0,5 in -15,26; contains blocks -240,0,416 to -225,255,431), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Level time: 103785 game time, 8201 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    Forced entities: 71 total; [EntityCow['Cow'/128, l='MpServer', x=-198.75, y=4.00, z=445.69], EntityChicken['Chicken'/133, l='MpServer', x=-189.41, y=4.00, z=429.38], EntityHorse['Donkey'/134, l='MpServer', x=-183.03, y=4.00, z=463.88], EntitySheep['Sheep'/135, l='MpServer', x=-187.84, y=4.00, z=491.22], EntitySheep['Sheep'/136, l='MpServer', x=-177.84, y=4.00, z=488.59], EntityPig['Pig'/142, l='MpServer', x=-170.19, y=4.00, z=396.75], EntityChicken['Chicken'/144, l='MpServer', x=-174.47, y=4.00, z=442.44], EntitySheep['Sheep'/145, l='MpServer', x=-166.78, y=4.00, z=441.22], EntityClientPlayerMP['Player197'/186, l='MpServer', x=-242.52, y=5.62, z=440.08], EntityPig['Pig'/26, l='MpServer', x=-321.84, y=4.00, z=473.72], EntityCow['Cow'/32, l='MpServer', x=-311.22, y=4.00, z=373.69], EntityCow['Cow'/33, l='MpServer', x=-311.41, y=4.00, z=378.28], EntitySheep['Sheep'/34, l='MpServer', x=-312.03, y=4.00, z=396.94], EntityChicken['Chicken'/35, l='MpServer', x=-314.53, y=4.00, z=399.56], EntitySheep['Sheep'/36, l='MpServer', x=-318.03, y=4.00, z=409.91], EntityHorse['Horse'/37, l='MpServer', x=-307.34, y=4.00, z=463.13], EntitySheep['Sheep'/38, l='MpServer', x=-311.94, y=4.00, z=448.81], EntityPig['Pig'/39, l='MpServer', x=-308.81, y=4.00, z=475.34], EntitySheep['Sheep'/40, l='MpServer', x=-314.31, y=4.00, z=464.13], EntitySheep['Sheep'/41, l='MpServer', x=-305.22, y=4.00, z=492.81], EntityChicken['Chicken'/42, l='MpServer', x=-319.44, y=4.00, z=482.31], EntityChicken['Chicken'/43, l='MpServer', x=-304.19, y=4.00, z=493.59], EntityChicken['Chicken'/44, l='MpServer', x=-306.53, y=4.00, z=502.47], EntityCow['Cow'/49, l='MpServer', x=-292.53, y=4.00, z=362.06], EntityCow['Cow'/50, l='MpServer', x=-302.03, y=4.00, z=380.13], EntityHorse['Horse'/51, l='MpServer', x=-290.53, y=4.00, z=405.84], EntityCow['Cow'/52, l='MpServer', x=-300.75, y=4.00, z=421.59], EntitySheep['Sheep'/53, l='MpServer', x=-297.03, y=4.00, z=429.09], EntityChicken['Chicken'/54, l='MpServer', x=-301.44, y=4.00, z=448.47], EntityChicken['Chicken'/55, l='MpServer', x=-301.22, y=4.00, z=475.34], EntitySheep['Sheep'/56, l='MpServer', x=-289.25, y=4.00, z=470.63], EntityPig['Pig'/57, l='MpServer', x=-300.91, y=4.00, z=471.97], EntityChicken['Chicken'/58, l='MpServer', x=-300.38, y=4.00, z=473.59], EntityPig['Pig'/59, l='MpServer', x=-301.94, y=4.00, z=476.34], EntityPig['Pig'/66, l='MpServer', x=-278.19, y=4.00, z=399.69], EntityChicken['Chicken'/67, l='MpServer', x=-285.47, y=4.00, z=403.91], EntitySheep['Sheep'/68, l='MpServer', x=-285.13, y=4.00, z=421.19], EntityPig['Pig'/69, l='MpServer', x=-280.25, y=4.00, z=437.84], EntityCow['Cow'/70, l='MpServer', x=-279.97, y=4.00, z=450.06], EntityPig['Pig'/71, l='MpServer', x=-286.09, y=4.00, z=467.13], EntityHorse['Horse'/72, l='MpServer', x=-285.50, y=4.00, z=494.19], EntityChicken['Chicken'/73, l='MpServer', x=-277.34, y=4.00, z=480.41], EntityChicken['Chicken'/74, l='MpServer', x=-278.56, y=4.00, z=505.38], EntityChicken['Chicken'/75, l='MpServer', x=-279.59, y=4.00, z=501.47], EntitySheep['Sheep'/77, l='MpServer', x=-277.88, y=4.00, z=517.13], EntityChicken['Chicken'/81, l='MpServer', x=-259.44, y=4.00, z=364.63], EntityPig['Pig'/83, l='MpServer', x=-259.91, y=4.00, z=368.91], EntityChicken['Chicken'/84, l='MpServer', x=-271.41, y=4.00, z=399.41], EntityChicken['Chicken'/85, l='MpServer', x=-259.34, y=4.00, z=392.81], EntityHorse['Horse'/86, l='MpServer', x=-269.22, y=4.00, z=385.91], EntityCow['Cow'/87, l='MpServer', x=-268.41, y=4.00, z=415.72], EntityHorse['Horse'/88, l='MpServer', x=-259.16, y=4.00, z=466.94], EntityHorse['Horse'/89, l='MpServer', x=-263.34, y=4.00, z=483.84], EntityChicken['Chicken'/96, l='MpServer', x=-245.59, y=4.00, z=364.47], EntityChicken['Chicken'/97, l='MpServer', x=-253.41, y=4.00, z=376.19], EntitySheep['Sheep'/98, l='MpServer', x=-241.94, y=4.00, z=373.91], EntityHorse['Horse'/99, l='MpServer', x=-247.06, y=4.00, z=387.94], EntityChicken['Chicken'/100, l='MpServer', x=-247.56, y=4.00, z=403.41], EntityCow['Cow'/104, l='MpServer', x=-228.50, y=4.00, z=402.31], EntityPig['Pig'/105, l='MpServer', x=-235.03, y=4.00, z=401.94], EntityItem['item.tile.workbench'/106, l='MpServer', x=-237.88, y=4.13, z=431.97], EntityItem['item.tile.monsterStoneEgg.crackedbrick'/107, l='MpServer', x=-237.53, y=4.13, z=432.50], EntityCow['Cow'/108, l='MpServer', x=-231.06, y=4.00, z=498.97], EntitySheep['Sheep'/115, l='MpServer', x=-219.22, y=4.00, z=367.56], EntityCow['Cow'/116, l='MpServer', x=-222.72, y=4.00, z=362.22], EntityChicken['Chicken'/117, l='MpServer', x=-214.59, y=4.00, z=376.56], EntitySheep['Sheep'/118, l='MpServer', x=-224.56, y=4.00, z=500.66], EntityCow['Cow'/119, l='MpServer', x=-223.94, y=4.00, z=516.16], EntitySheep['Sheep'/125, l='MpServer', x=-195.06, y=4.00, z=367.91], EntityCow['Cow'/126, l='MpServer', x=-198.28, y=4.00, z=393.22], EntityChicken['Chicken'/127, l='MpServer', x=-195.41, y=4.00, z=439.44]]
    Retry entities: 0 total; []
    Server brand: fml,forge
    Server type: Integrated singleplayer server
    Stacktrace:
    at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
    at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2566)
    at net.minecraft.client.Minecraft.run(Minecraft.java:991)
    at net.minecraft.client.main.Main.main(Main.java:164)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
    at GradleStart.main(Unknown Source)
    
    -- System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 8.1 (amd64) version 6.3
    Java Version: 1.8.0_45, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 703578088 bytes (670 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1448 4 mods loaded, 4 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHIJAAAA	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
    UCHIJAAAA	FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) 
    UCHIJAAAA	Forge{10.13.4.1448} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) 
    UCHIJAAAA	syntheticgems{1.0.0} [syntheticgems] (bin) 
    GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.3.12682 Compatibility Profile Context 13.302.1601.0' Renderer: 'AMD Radeon(TM) R3 Graphics'
    Launched Version: 1.7.10
    LWJGL: 2.9.1
    OpenGL: AMD Radeon(TM) R3 Graphics GL version 4.3.12682 Compatibility Profile Context 13.302.1601.0, ATI Technologies Inc.
    GL Caps: Using GL 1.3 multitexturing.
    Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
    Anisotropic filtering is supported and maximum anisotropy is 16.
    Shaders are available because OpenGL 2.1 is supported.
    
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: []
    Current Language: English (US)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Anisotropic Filtering: Off (1)
    [10:59:39] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\machi_000\Documents\Minecraft Development\syntheticgems\eclipse\.\crash-reports\crash-2015-11-05_10.59.39-client.txt
    [10:59:39] [Client Shutdown Thread/INFO]: Stopping server
    [10:59:39] [Client Shutdown Thread/INFO]: Saving players
    AL lib: (EE) alc_cleanup: 1 device not closed
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    

  4. package com.rabidfox.syntheticgems;

     

    import java.util.List;

    import java.util.Random;

     

    import net.minecraft.init.Items;

    import net.minecraft.item.Item;

    import net.minecraft.nbt.NBTTagCompound;

    import net.minecraft.network.NetworkManager;

    import net.minecraft.network.Packet;

    import net.minecraft.network.play.server.S35PacketUpdateTileEntity;

    import net.minecraft.tileentity.TileEntity;

    import net.minecraft.tileentity.TileEntityChest;

    public class TileHydroTorch extends TileEntity {

    Random rdm = new Random();

    Boolean on = false;

    Boolean fire = false;

    Boolean ready = false;

    Item returncrystal = null;

    List crystaltypes;

    List resultcrystals;

    public TileHydroTorch(){

    crystaltypes.add(1, Items.blaze_powder);

    resultcrystals.add(1, Items.blaze_rod);

    }

    public int getFacing() {

    return 0;

     

    }

     

    @Override

    public void writeToNBT(NBTTagCompound nbt){

    super.writeToNBT(nbt);

    nbt.setBoolean("on", on);

    nbt.setBoolean("fire", fire);

    nbt.setBoolean("ready", ready);

    nbt.setInteger("returncrystal", Item.getIdFromItem(returncrystal));

    }

    public void readFromNBT(NBTTagCompound nbt){

    super.readFromNBT(nbt);

    on = nbt.getBoolean("on");

    fire = nbt.getBoolean("fire");

    ready = nbt.getBoolean("ready");

    returncrystal = Item.getItemById(nbt.getInteger("returncrystal"));

     

     

    }

    public void igniteTorch(){

    if(on){

    fire = true;

    worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); // Makes the server call getDescriptionPacket for a full data sync

    }

    }

    public void turnOn(){

    if(!on){

    on = true;

    worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); // Makes the server call getDescriptionPacket for a full data sync

    }

    }

    public void killTorch(){

    if(fire){

    fire = false;

    worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); // Makes the server call getDescriptionPacket for a full data sync

    }

    }

    public void turnOff(){

    if(on){

    on = false;

    worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); // Makes the server call getDescriptionPacket for a full data sync

    }

    }

        @Override

        public Packet getDescriptionPacket()

        {

            NBTTagCompound nbttagcompound = new NBTTagCompound();

            writeToNBT(nbttagcompound);

            return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, nbttagcompound);

        }

       

        @Override

        public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity packet)

        {

            readFromNBT(packet.func_148857_g());

            worldObj.func_147479_m(xCoord, yCoord, zCoord);

        }

        public void activate(){

        if(this.on){

        this.fire = true;

        }

        if(worldObj.getTileEntity(xCoord, yCoord + 1, zCoord) instanceof TileEntityChest){

    int slot = 420;

        TileEntityChest chest = (TileEntityChest)worldObj.getTileEntity(xCoord, yCoord + 1, zCoord);

        for(int i = 29; i == -1; i--){

        Item theitem = chest.getStackInSlot(i).getItem();

        if(theitem != null){

        if(crystaltypes.contains(theitem)){

            int index = crystaltypes.indexOf(theitem);

            this.returncrystal = (Item)resultcrystals.get(index);

        slot = i;

        }

        }

        }

        if(!this.on && slot != 420 && RabidFoxUtil.searchChestForItem(SyntheticGems.itemoxybottle, chest) != -1 && RabidFoxUtil.searchChestForItem(SyntheticGems.itemhydbottle, chest) != -1){

        chest.getStackInSlot(RabidFoxUtil.searchChestForItem(SyntheticGems.itemoxybottle, chest)).stackSize--;

        chest.getStackInSlot(RabidFoxUtil.searchChestForItem(SyntheticGems.itemhydbottle, chest)).stackSize--;

        chest.getStackInSlot(slot).stackSize--;

        this.on = true;

        }

        }

        }

    @Override

    public void updateEntity(){

    if(on && !fire){

    this.worldObj.spawnParticle("cloud", 0.5F + (worldObj.rand.nextFloat() / 5), 0.75F, 0.5F + (worldObj.rand.nextFloat() / 5), 0, -0.2F, 0);

    }

    if(on && fire){

    this.worldObj.spawnParticle("flame", 0.5F + (worldObj.rand.nextFloat() / 5), 0.75F, 0.5F + (worldObj.rand.nextFloat() / 5), 0, -0.5F, 0);

    }

    }

    }

  5. I have a tile that tests for an item in a chest, and I have a list of items to check for. But when I add them like so:

    crystaltypes.add(1, Items.blaze_powder);
    resultcrystals.add(1, Items.blaze_rod);
    

    it crashes! It only crashes when I load a world, I can get the the main menu.

    Crash Log

     

     

    [10:25:44] [main/INFO] [GradleStart]: Extra: []
    [10:25:44] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/machi_000/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [10:25:44] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
    [10:25:44] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
    [10:25:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [10:25:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
    [10:25:44] [main/INFO] [FML]: Forge Mod Loader version 7.99.16.1448 for Minecraft 1.7.10 loading
    [10:25:44] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_45, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_45
    [10:25:44] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [10:25:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [10:25:44] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
    [10:25:44] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [10:25:44] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [10:25:44] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [10:25:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [10:25:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [10:25:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [10:25:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [10:25:45] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
    [10:25:49] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [10:25:49] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [10:25:49] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [10:25:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [10:25:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
    [10:25:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
    [10:25:50] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [10:25:52] [main/INFO]: Setting user: Player485
    [10:25:56] [Client thread/INFO]: LWJGL Version: 2.9.1
    [10:25:58] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
    // Everything's going to plan. No, really, that was supposed to happen.
    
    Time: 11/5/15 10:25 AM
    Description: Loading screen debug info
    
    This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 8.1 (amd64) version 6.3
    Java Version: 1.8.0_45, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 769913416 bytes (734 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: 
    GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.3.12682 Compatibility Profile Context 13.302.1601.0' Renderer: 'AMD Radeon(TM) R3 Graphics'
    [10:25:59] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
    [10:25:59] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1448 Initialized
    [10:25:59] [Client thread/INFO] [FML]: Replaced 183 ore recipies
    [10:25:59] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
    [10:26:00] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
    [10:26:00] [Client thread/INFO] [FML]: Searching C:\Users\machi_000\Documents\Minecraft Development\syntheticgems\eclipse\mods for mods
    [10:26:00] [Client thread/INFO] [syntheticgems]: Mod syntheticgems is missing the required element 'name'. Substituting syntheticgems
    [10:26:08] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
    [10:26:08] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, syntheticgems] at CLIENT
    [10:26:08] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, syntheticgems] at SERVER
    [10:26:10] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:syntheticgems
    [10:26:10] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
    [10:26:10] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
    [10:26:10] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
    [10:26:10] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
    [10:26:10] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
    [10:26:10] [Client thread/INFO] [FML]: Applying holder lookups
    [10:26:10] [Client thread/INFO] [FML]: Holder lookups applied
    [10:26:10] [Client thread/INFO] [FML]: Injecting itemstacks
    [10:26:10] [Client thread/INFO] [FML]: Itemstack injection complete
    [10:26:11] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:26:11] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
    [10:26:11] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
    [10:26:11] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [10:26:12] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
    [10:26:12] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:26:12] [sound Library Loader/INFO]: Sound engine started
    [10:26:15] [Client thread/WARN]: Invalid sounds.json
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
    at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]
    at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
    at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[TypeAdapterRuntimeTypeWrapper.class:?]
    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) ~[MapTypeAdapterFactory$Adapter.class:?]
    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) ~[MapTypeAdapterFactory$Adapter.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?]
    at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:84) [soundHandler.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:130) [simpleReloadableResourceManager.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:528) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
    at GradleStart.main(Unknown Source) [start/:?]
    Caused by: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:465) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:658) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]
    ... 19 more
    [10:26:18] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
    [10:26:19] [Client thread/INFO]: Created: 256x256 textures/items-atlas
    [10:26:19] [Client thread/INFO] [sTDOUT]: [com.rabidfox.syntheticgems.SyntheticGems:init:129]: Successfully Registered World Generator
    [10:26:19] [Client thread/INFO] [FML]: Injecting itemstacks
    [10:26:19] [Client thread/INFO] [FML]: Itemstack injection complete
    [10:26:20] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
    [10:26:20] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:syntheticgems
    [10:26:21] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
    [10:26:21] [Client thread/INFO]: Created: 256x256 textures/items-atlas
    [10:26:21] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:26:21] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
    [10:26:22] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
    [10:26:22] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:26:22] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:26:22] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
    [10:26:22] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
    [10:26:22] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [10:26:22] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
    [10:26:22] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:26:22] [sound Library Loader/INFO]: Sound engine started
    [10:26:25] [Client thread/WARN]: Invalid sounds.json
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
    at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?]
    at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
    at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[TypeAdapterRuntimeTypeWrapper.class:?]
    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) ~[MapTypeAdapterFactory$Adapter.class:?]
    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) ~[MapTypeAdapterFactory$Adapter.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?]
    at net.minecraft.client.audio.SoundHandler.onResourceManagerReload(SoundHandler.java:84) [soundHandler.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:143) [simpleReloadableResourceManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:121) [simpleReloadableResourceManager.class:?]
    at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:654) [Minecraft.class:?]
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:327) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
    at GradleStart.main(Unknown Source) [start/:?]
    Caused by: com.google.gson.stream.MalformedJsonException: Unterminated array at line 6 column 8
    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:465) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:658) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:667) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?]
    ... 22 more
    [10:26:33] [server thread/INFO]: Starting integrated minecraft server version 1.7.10
    [10:26:33] [server thread/INFO]: Generating keypair
    [10:26:33] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
    [10:26:33] [server thread/INFO] [FML]: Applying holder lookups
    [10:26:33] [server thread/INFO] [FML]: Holder lookups applied
    [10:26:34] [server thread/INFO] [FML]: Loading dimension 0 (Test) (net.minecraft.server.integrated.IntegratedServer@53ec5dd3)
    [10:26:34] [server thread/INFO] [FML]: Loading dimension 1 (Test) (net.minecraft.server.integrated.IntegratedServer@53ec5dd3)
    [10:26:34] [server thread/INFO] [FML]: Loading dimension -1 (Test) (net.minecraft.server.integrated.IntegratedServer@53ec5dd3)
    [10:26:34] [server thread/INFO]: Preparing start region for level 0
    [10:26:35] [server thread/INFO]: Preparing spawn area: 3%
    [10:26:36] [server thread/INFO]: Preparing spawn area: 40%
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.lang.NullPointerException
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at java.lang.Class.newInstance(Unknown Source)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.tileentity.TileEntity.createAndLoadEntity(TileEntity.java:123)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadEntities(AnvilChunkLoader.java:525)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:41)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:12)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraftforge.common.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:344)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraftforge.common.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:302)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:12)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:144)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:119)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:305)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
    [10:26:36] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
    [10:26:36] [server thread/WARN]: Skipping BlockEntity with id tilehydrotorch
    [10:26:37] [server thread/INFO]: Changing view distance to 12, from 10
    [10:26:38] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
    [10:26:38] [Netty IO #1/INFO] [FML]: Client protocol version 2
    [10:26:38] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@7.10.99.99,Forge@10.13.4.1448,mcp@9.05,syntheticgems@1.0.0
    [10:26:38] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
    [10:26:38] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
    [10:26:39] [server thread/INFO] [FML]: [server thread] Server side modded connection established
    [10:26:39] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
    [10:26:39] [server thread/INFO]: Player485[local:E:25823ee6] logged in with entity id 186 at (-242.5156805705788, 4.0, 440.0834589374958)
    [10:26:39] [server thread/INFO]: Player485 joined the game
    [10:26:42] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2341ms behind, skipping 46 tick(s)
    [10:26:43] [Client thread/WARN]: Failed to load texture: syntheticgems:textures/blocks/tesrhydrotorch.png
    java.io.FileNotFoundException: syntheticgems:textures/blocks/tesrhydrotorch.png
    at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
    at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:35) ~[simpleTexture.class:?]
    at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
    at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:45) [TextureManager.class:?]
    at com.rabidfox.syntheticgems.ItemRendererHydroTorch.renderItem(ItemRendererHydroTorch.java:61) [itemRendererHydroTorch.class:?]
    at net.minecraftforge.client.ForgeHooksClient.renderInventoryItem(ForgeHooksClient.java:183) [ForgeHooksClient.class:?]
    at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:583) [RenderItem.class:?]
    at net.minecraft.client.gui.GuiIngame.renderInventorySlot(GuiIngame.java:973) [GuiIngame.class:?]
    at net.minecraftforge.client.GuiIngameForge.renderHotbar(GuiIngameForge.java:209) [GuiIngameForge.class:?]
    at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:144) [GuiIngameForge.class:?]
    at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1114) [EntityRenderer.class:?]
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
    at GradleStart.main(Unknown Source) [start/:?]
    [10:26:45] [Client thread/FATAL]: Unreported exception thrown!
    java.lang.NullPointerException
    at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23) ~[TileHydroTorch.class:?]
    at com.rabidfox.syntheticgems.BlockHydroTorch.createNewTileEntity(BlockHydroTorch.java:48) ~[blockHydroTorch.class:?]
    at net.minecraft.block.Block.createTileEntity(Block.java:1775) ~[block.class:?]
    at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:933) ~[Chunk.class:?]
    at net.minecraft.world.ChunkCache.getTileEntity(ChunkCache.java:102) ~[ChunkCache.class:?]
    at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:189) ~[WorldRenderer.class:?]
    at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618) ~[RenderGlobal.class:?]
    at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263) ~[EntityRenderer.class:?]
    at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087) ~[EntityRenderer.class:?]
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067) ~[Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
    at GradleStart.main(Unknown Source) [start/:?]
    [10:26:45] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----
    // Would you like a cupcake?
    
    Time: 11/5/15 10:26 AM
    Description: Unexpected error
    
    java.lang.NullPointerException: Unexpected error
    at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23)
    at com.rabidfox.syntheticgems.BlockHydroTorch.createNewTileEntity(BlockHydroTorch.java:48)
    at net.minecraft.block.Block.createTileEntity(Block.java:1775)
    at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:933)
    at net.minecraft.world.ChunkCache.getTileEntity(ChunkCache.java:102)
    at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:189)
    at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618)
    at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)
    at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)
    at net.minecraft.client.Minecraft.run(Minecraft.java:962)
    at net.minecraft.client.main.Main.main(Main.java:164)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
    at GradleStart.main(Unknown Source)
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- Head --
    Stacktrace:
    at com.rabidfox.syntheticgems.TileHydroTorch.<init>(TileHydroTorch.java:23)
    at com.rabidfox.syntheticgems.BlockHydroTorch.createNewTileEntity(BlockHydroTorch.java:48)
    at net.minecraft.block.Block.createTileEntity(Block.java:1775)
    at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:933)
    at net.minecraft.world.ChunkCache.getTileEntity(ChunkCache.java:102)
    at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:189)
    at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1618)
    at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)
    
    -- Affected level --
    Details:
    Level name: MpServer
    All players: 1 total; [EntityClientPlayerMP['Player485'/186, l='MpServer', x=-242.52, y=5.62, z=440.08]]
    Chunk stats: MultiplayerChunkCache: 85, 85
    Level seed: 0
    Level generator: ID 01 - flat, ver 0. Features enabled: false
    Level generator options: 
    Level spawn location: World: (-234,4,421), Chunk: (at 6,0,5 in -15,26; contains blocks -240,0,416 to -225,255,431), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Level time: 103658 game time, 8074 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    Forced entities: 61 total; [EntityChicken['Chicken'/128, l='MpServer', x=-195.41, y=4.00, z=439.44], EntityCow['Cow'/129, l='MpServer', x=-198.75, y=4.00, z=445.69], EntityChicken['Chicken'/132, l='MpServer', x=-183.72, y=4.00, z=421.03], EntityHorse['Donkey'/133, l='MpServer', x=-183.03, y=4.00, z=463.88], EntitySheep['Sheep'/134, l='MpServer', x=-180.91, y=4.00, z=488.06], EntitySheep['Sheep'/135, l='MpServer', x=-176.81, y=4.00, z=487.78], EntityPig['Pig'/142, l='MpServer', x=-170.19, y=4.00, z=396.75], EntityClientPlayerMP['Player485'/186, l='MpServer', x=-242.52, y=5.62, z=440.08], EntityCow['Cow'/31, l='MpServer', x=-311.22, y=4.00, z=373.69], EntitySheep['Sheep'/32, l='MpServer', x=-319.91, y=4.00, z=380.88], EntityCow['Cow'/33, l='MpServer', x=-311.41, y=4.00, z=378.28], EntitySheep['Sheep'/34, l='MpServer', x=-312.03, y=4.00, z=396.94], EntityChicken['Chicken'/35, l='MpServer', x=-314.53, y=4.00, z=399.56], EntitySheep['Sheep'/36, l='MpServer', x=-318.03, y=4.00, z=409.91], EntityHorse['Horse'/37, l='MpServer', x=-307.34, y=4.00, z=463.13], EntitySheep['Sheep'/38, l='MpServer', x=-311.78, y=4.00, z=448.69], EntityPig['Pig'/39, l='MpServer', x=-310.88, y=4.00, z=478.84], EntitySheep['Sheep'/40, l='MpServer', x=-314.31, y=4.00, z=464.13], EntitySheep['Sheep'/41, l='MpServer', x=-305.22, y=4.00, z=492.81], EntityChicken['Chicken'/42, l='MpServer', x=-319.44, y=4.00, z=482.31], EntityChicken['Chicken'/43, l='MpServer', x=-304.19, y=4.00, z=493.59], EntityChicken['Chicken'/44, l='MpServer', x=-306.53, y=4.00, z=502.47], EntityCow['Cow'/50, l='MpServer', x=-302.03, y=4.00, z=380.13], EntityHorse['Horse'/51, l='MpServer', x=-289.81, y=4.00, z=406.00], EntityCow['Cow'/52, l='MpServer', x=-300.75, y=4.00, z=421.59], EntitySheep['Sheep'/53, l='MpServer', x=-291.09, y=4.00, z=423.84], EntityChicken['Chicken'/54, l='MpServer', x=-301.44, y=4.00, z=448.47], EntityChicken['Chicken'/55, l='MpServer', x=-301.34, y=4.00, z=475.56], EntitySheep['Sheep'/56, l='MpServer', x=-289.25, y=4.00, z=470.63], EntityPig['Pig'/57, l='MpServer', x=-300.91, y=4.00, z=471.97], EntityChicken['Chicken'/58, l='MpServer', x=-300.38, y=4.00, z=473.59], EntityPig['Pig'/59, l='MpServer', x=-302.69, y=4.00, z=477.97], EntityPig['Pig'/66, l='MpServer', x=-278.19, y=4.00, z=399.69], EntityChicken['Chicken'/67, l='MpServer', x=-286.59, y=4.00, z=401.44], EntitySheep['Sheep'/68, l='MpServer', x=-285.13, y=4.00, z=421.19], EntityPig['Pig'/69, l='MpServer', x=-280.25, y=4.00, z=437.84], EntityCow['Cow'/70, l='MpServer', x=-279.97, y=4.00, z=450.06], EntityPig['Pig'/71, l='MpServer', x=-286.09, y=4.00, z=467.13], EntityHorse['Horse'/72, l='MpServer', x=-285.50, y=4.00, z=494.19], EntityChicken['Chicken'/73, l='MpServer', x=-277.34, y=4.00, z=480.41], EntityChicken['Chicken'/74, l='MpServer', x=-278.56, y=4.00, z=505.38], EntityChicken['Chicken'/75, l='MpServer', x=-279.59, y=4.00, z=501.47], EntityPig['Pig'/83, l='MpServer', x=-259.91, y=4.00, z=368.91], EntityChicken['Chicken'/84, l='MpServer', x=-271.41, y=4.00, z=399.41], EntityChicken['Chicken'/85, l='MpServer', x=-259.47, y=4.00, z=392.47], EntityHorse['Horse'/86, l='MpServer', x=-269.22, y=4.00, z=385.91], EntityCow['Cow'/87, l='MpServer', x=-265.69, y=4.00, z=414.25], EntityHorse['Horse'/88, l='MpServer', x=-259.16, y=4.00, z=466.94], EntityHorse['Horse'/89, l='MpServer', x=-263.34, y=4.00, z=483.84], EntityChicken['Chicken'/97, l='MpServer', x=-254.53, y=4.00, z=375.44], EntitySheep['Sheep'/98, l='MpServer', x=-241.94, y=4.00, z=373.91], EntityChicken['Chicken'/99, l='MpServer', x=-252.34, y=4.00, z=395.25], EntityHorse['Horse'/100, l='MpServer', x=-247.06, y=4.00, z=387.94], EntityCow['Cow'/104, l='MpServer', x=-228.50, y=4.00, z=402.31], EntityPig['Pig'/105, l='MpServer', x=-238.53, y=4.00, z=404.88], EntityItem['item.tile.workbench'/106, l='MpServer', x=-237.88, y=4.13, z=431.97], EntityItem['item.tile.monsterStoneEgg.crackedbrick'/107, l='MpServer', x=-237.53, y=4.13, z=432.50], EntityCow['Cow'/108, l='MpServer', x=-232.34, y=4.00, z=497.81], EntityChicken['Chicken'/117, l='MpServer', x=-214.59, y=4.00, z=376.56], EntitySheep['Sheep'/118, l='MpServer', x=-220.63, y=4.00, z=499.84], EntityCow['Cow'/127, l='MpServer', x=-198.28, y=4.00, z=393.22]]
    Retry entities: 0 total; []
    Server brand: fml,forge
    Server type: Integrated singleplayer server
    Stacktrace:
    at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
    at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2566)
    at net.minecraft.client.Minecraft.run(Minecraft.java:991)
    at net.minecraft.client.main.Main.main(Main.java:164)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
    at GradleStart.main(Unknown Source)
    
    -- System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 8.1 (amd64) version 6.3
    Java Version: 1.8.0_45, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 735853056 bytes (701 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1448 4 mods loaded, 4 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHIJAAAA	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
    UCHIJAAAA	FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) 
    UCHIJAAAA	Forge{10.13.4.1448} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar) 
    UCHIJAAAA	syntheticgems{1.0.0} [syntheticgems] (bin) 
    GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.3.12682 Compatibility Profile Context 13.302.1601.0' Renderer: 'AMD Radeon(TM) R3 Graphics'
    Launched Version: 1.7.10
    LWJGL: 2.9.1
    OpenGL: AMD Radeon(TM) R3 Graphics GL version 4.3.12682 Compatibility Profile Context 13.302.1601.0, ATI Technologies Inc.
    GL Caps: Using GL 1.3 multitexturing.
    Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
    Anisotropic filtering is supported and maximum anisotropy is 16.
    Shaders are available because OpenGL 2.1 is supported.
    
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: []
    Current Language: English (US)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Anisotropic Filtering: Off (1)
    [10:26:45] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\machi_000\Documents\Minecraft Development\syntheticgems\eclipse\.\crash-reports\crash-2015-11-05_10.26.45-client.txt
    [10:26:45] [Client Shutdown Thread/INFO]: Stopping server
    [10:26:45] [Client Shutdown Thread/INFO]: Saving players
    AL lib: (EE) alc_cleanup: 1 device not closed
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    

     

     

    HEEELP!!!

     

  6. K, so i have a tile that I want to have different effects, but it wont change the variable that selects which effect! I'm using

    TileHydroTorch htorch = (TileHydroTorch)icommandsender.getEntityWorld().getTileEntity(x,y,z);
    			  if(Integer.parseInt(commands[3]) > 2 || Integer.parseInt(commands[3]) < 0 || Integer.parseInt(commands[3]) != (int)Integer.parseInt(commands[3]))
    			  htorch.state = (Integer.parseInt(commands[3]));
    

    to grab the tile from the world and set the variable, but it does nothing. I tried some

    System.out.println("did such and such");
    

    's and they say that htorch.state was called. But whenever I check the tile, it isnt changed! HELP!

    tile code

    package com.rabidfox.syntheticgems;
    
    import java.util.Random;
    
    import net.minecraft.nbt.NBTTagCompound;
    import net.minecraft.tileentity.TileEntity;
    public class TileHydroTorch extends TileEntity {
    public int state;
    public int ticksleft;
    Random rdm = new Random();
    public int getFacing() {
    	return 0;
    
    }
    public TileHydroTorch(){
    	ticksleft = 10;
    	state = 0;
    }
    @Override
    public void writeToNBT(NBTTagCompound nbt){
    	super.writeToNBT(nbt);
    	nbt.setInteger("state", state);
    }
    @Override
    public void readFromNBT(NBTTagCompound nbt){
    	super.readFromNBT(nbt);
    	state = nbt.getInteger("state");
    }
    
    @Override
    public void updateEntity(){
    	ticksleft--;
    	if(state > 2 || state < 0 || state != (int)state){
    		System.err.println("The Hydrogen Torch at " + this.xCoord + this.yCoord + this.zCoord +" has an invalid state value of " + state + "! Must be 0(off), 1(spraying hydrogen), 2(spraying fire)! Use the setHydroTorchState command to fix it!");
    	}
    	if(state == 2){
    		worldObj.spawnParticle("flame", xCoord +(rdm.nextFloat()/5) + (0.25F * 1.5), yCoord +0.5F, zCoord +(rdm.nextFloat()/5) + (0.25F * 1.5), 0.0D, -0.5D, 0.0D);
    	}
    	if(state == 1){
    		if(ticksleft == 0){
    		worldObj.spawnParticle("cloud", xCoord +(rdm.nextFloat()/2) + (0.25F * 1.5), yCoord +0.5F, zCoord +(rdm.nextFloat()/2) + (0.25F * 1.5), 0.0D, 0.03D, 0.0D);
    		ticksleft = 10;
    
    		}
    	}
    
    }
    }
    

  7. I made a tesr renderer, a tile entity to render, and a block, and I know the renderer works because I rendered other models with it. But when I use my own OBJ model, the texture doesn't work. It's super simple, I just resized the default Blender cube and exported to OBJ, but the texture wont work. The cube renders, but just 1 color, however the color seems to be related to the texture, like I set the texture to the blaze texture and it was orange, pig was pink, etc. It looks like one pixel of the texture renders, depending on what way I look, like if i use a texture from a mob, that has some transparent pixels, sometimes the model is see-through, but if i use a solid texture, its never see-through. Please help, I need to make models that actually have textures! (My renderer is TESRHydroTorch, block is BlockHydroTorch, etc)

    Tile Class

     

     

    package com.rabidfox.syntheticgems;
    
    import net.minecraft.tileentity.TileEntity;
    
    public class TileHydroTorch extends TileEntity {
    
    public int getFacing() {
    	// TODO Auto-generated method stub
    	return 0;
    }
    
    }
    
    

     

     

    Block Class

     

     

    package com.rabidfox.syntheticgems;
    
    import net.minecraft.block.BlockContainer;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.renderer.texture.IIconRegister;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.util.IIcon;
    import net.minecraft.world.IBlockAccess;
    import net.minecraft.world.World;
    
    public class BlockHydroTorch extends BlockContainer{
    public BlockHydroTorch(){
    	super(Material.circuits);
    	setBlockName("syntheticgems" + "_" + "blockhydrotorch");
    	setCreativeTab(SyntheticGems.sgemstab);
    	setBlockTextureName("minecraft" + ":" + "iron_block");
    	setHardness(10.0F);
    }
    @Override
    public boolean shouldSideBeRendered(IBlockAccess world, int x, int y, int z, int side)
    {
    return false;
    }
    
    @Override
    public boolean isOpaqueCube()
    {
    return false;
    }
    
    @Override
    public boolean renderAsNormalBlock()
    {
    return false;
    }
    @Override
    public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
    	   return new TileHydroTorch();
    }
    }
    

     

     

    Renderer

     

     

    package com.rabidfox.syntheticgems;
    
    import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.util.ResourceLocation;
    import net.minecraftforge.client.model.AdvancedModelLoader;
    import net.minecraftforge.client.model.IModelCustom;
    
    import org.lwjgl.opengl.GL11;
    import org.lwjgl.opengl.GL12;
    
    public class TESRHydroTorch extends TileEntitySpecialRenderer{
    
    IModelCustom model = AdvancedModelLoader.loadModel(new ResourceLocation("syntheticgems", "obj/untitled.obj"));
    ResourceLocation texture = new ResourceLocation("minecraft", "textures/entity/pig/pig.png");
    
    @Override
        public void renderTileEntityAt(TileEntity te, double posX, double posY, double posZ, float timeSinceLastTick) {
    TileHydroTorch te2 = (TileHydroTorch) te;
    
    		bindTexture(texture);
    
    		GL11.glPushMatrix();
    		GL11.glTranslated(posX + 0.5, posY + 0.5, posZ + 0.5);
    		GL11.glPushMatrix();
    		model.renderAll();
    		GL11.glPopMatrix();
    		GL11.glPopMatrix();
    	}
    }
    

     

     

    Log (no crash)

    [10:59:01] [main/INFO] [GradleStart]: Extra: []
    [10:59:02] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/machi_000/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [10:59:02] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
    [10:59:02] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
    [10:59:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [10:59:02] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
    [10:59:02] [main/INFO] [FML]: Forge Mod Loader version 7.99.16.1448 for Minecraft 1.7.10 loading
    [10:59:02] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_45, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_45
    [10:59:02] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [10:59:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [10:59:02] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
    [10:59:02] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [10:59:02] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [10:59:02] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [10:59:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [10:59:02] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [10:59:02] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
    [10:59:02] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [10:59:03] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
    [10:59:08] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [10:59:08] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
    [10:59:08] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
    [10:59:10] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [10:59:10] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
    [10:59:10] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
    [10:59:10] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [10:59:13] [main/INFO]: Setting user: Player608
    [10:59:18] [Client thread/INFO]: LWJGL Version: 2.9.1
    [10:59:22] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
    // Sorry 
    
    Time: 10/22/15 10:59 AM
    Description: Loading screen debug info
    
    This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 8.1 (amd64) version 6.3
    Java Version: 1.8.0_45, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 777851592 bytes (741 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: 
    GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.3.12682 Compatibility Profile Context 13.302.1601.0' Renderer: 'AMD Radeon(TM) R3 Graphics'
    [10:59:23] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
    [10:59:23] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1448 Initialized
    [10:59:23] [Client thread/INFO] [FML]: Replaced 183 ore recipies
    [10:59:24] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
    [10:59:25] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
    [10:59:25] [Client thread/INFO] [FML]: Searching C:\Users\machi_000\Documents\Minecraft Development\syntheticgems\eclipse\mods for mods
    [10:59:27] [Client thread/INFO] [syntheticgems]: Mod syntheticgems is missing the required element 'name'. Substituting syntheticgems
    [10:59:36] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
    [10:59:38] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, syntheticgems] at CLIENT
    [10:59:38] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, syntheticgems] at SERVER
    [10:59:40] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:syntheticgems
    [10:59:40] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
    [10:59:40] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
    [10:59:40] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
    [10:59:41] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
    [10:59:41] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
    [10:59:41] [Client thread/INFO] [FML]: Applying holder lookups
    [10:59:41] [Client thread/INFO] [FML]: Holder lookups applied
    [10:59:41] [Client thread/INFO] [FML]: Injecting itemstacks
    [10:59:41] [Client thread/INFO] [FML]: Itemstack injection complete
    [10:59:41] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:59:41] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
    [10:59:42] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
    [10:59:42] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [10:59:43] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
    [10:59:43] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [10:59:43] [sound Library Loader/INFO]: Sound engine started
    [10:59:58] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
    [10:59:59] [Client thread/INFO]: Created: 256x256 textures/items-atlas
    [10:59:59] [Client thread/INFO] [sTDOUT]: [com.rabidfox.syntheticgems.SyntheticGems:init:132]: Successfully Registered World Generator
    [10:59:59] [Client thread/INFO] [sTDOUT]: [com.rabidfox.syntheticgems.SyntheticGems:init:135]: Successfully Bound Hydro Torch TESR
    [10:59:59] [Client thread/INFO] [FML]: Injecting itemstacks
    [10:59:59] [Client thread/INFO] [FML]: Itemstack injection complete
    [11:00:00] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
    [11:00:00] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:syntheticgems
    [11:00:01] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
    [11:00:01] [Client thread/INFO]: Created: 256x256 textures/items-atlas
    [11:00:01] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [11:00:01] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
    [11:00:02] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
    [11:00:02] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [11:00:02] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [11:00:02] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
    [11:00:02] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
    [11:00:02] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [11:00:02] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
    [11:00:02] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
    [11:00:02] [sound Library Loader/INFO]: Sound engine started
    

  8. I need to register a group of item with a for loop. I just need it for registering of some items that are multicolored like spawn eggs, but there's a bunch in an array. I need a way to register the entire array of items.

    Item array

     

    public static Item[] seedrods = {

    //new ItemSeedRod(hex, "name", isItPlural)

    new ItemSeedRod(0xFFF32D, "Blaze Rod", false),

    new ItemSeedRod(0x2B3DA, "Diamond", false),

    new ItemSeedRod(0x496BC9, "Lapis Lazuli", true),

    new ItemSeedRod(0x40DE58, "Emerald", false),

    new ItemSeedRod(0xFA0714, "Redstone", true),

    new ItemSeedRod(0xEEEEEE, "Blaze Rod", false),

    };

     

  9. I made a tile entity with gui, gui handler, container, etc, and everything works except (and this is a big except) I can put items in the inventory, move them around, etc, but if I close the gui and reopen it, the item isn't there! Please Help! 

    Tile Entity

     

    package com.rabidfox.syntheticgems;
    
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.inventory.IInventory;
    import net.minecraft.inventory.ISidedInventory;
    import net.minecraft.item.ItemStack;
    import net.minecraft.nbt.NBTTagCompound;
    import net.minecraft.nbt.NBTTagList;
    import net.minecraft.tileentity.TileEntity;
    
    
    public class TileMachineElectrolyzer extends TileEntity implements ISidedInventory{
    private int electrolysistime = 0;
    private ItemStack[] slots = new ItemStack[3];
    private ItemStack slotStack = null;
    public TileMachineElectrolyzer(){
    	System.out.println("Tile Placed");
    }
    @Override
    public ItemStack decrStackSize(int slot, int amt)
    {
    // we only have one stack here
    ItemStack stack = null;
        slotStack = slots[slot];
    if (slotStack != null)
    {
    if (slotStack.stackSize <= amt)
    {
    stack = slotStack;
    slotStack = null;
    System.out.println("Returned " + stack.getDisplayName() + " x " + String.valueOf(stack.stackSize) + " from slot # " + String.valueOf(slot) + " with a maximum size of " + String.valueOf(amt) + ".");
    slots[slot] = null;
    return stack;
    }
    else
    {
    stack = slotStack.splitStack(amt);
    if (slotStack.stackSize == 0)
    {
    slotStack = null;
    return null;
    }
    }
    }
    return null;
    }
      @Override
        public ItemStack getStackInSlotOnClosing(int p_70304_1_)
        {
            if (this.slots[p_70304_1_] != null)
            {
                ItemStack itemstack = this.slots[p_70304_1_];
                this.slots[p_70304_1_] = null;
                return itemstack;
            }
            else
            {
                return null;
            }
        }
       @Override
       public void writeToNBT(NBTTagCompound nbt)
       {
          super.writeToNBT(nbt);
          NBTTagList nbttaglist = new NBTTagList();
          for (int i = 0; i < this.slots.length; ++i)
          {
              if (this.slots[i] != null)
              {
                  NBTTagCompound nbttagcompound1 = new NBTTagCompound();
                  nbttagcompound1.setByte("Slot", (byte)i);
                  this.slots[i].writeToNBT(nbttagcompound1);
                  nbttaglist.appendTag(nbttagcompound1);
              }
          }
          nbt.setTag("Items", nbttaglist);
    
          if (this.hasCustomInventoryName())
          {
              nbt.setString("CustomName", "Electrolyzer");
          }
      }
    
       @Override
       public void readFromNBT(NBTTagCompound par1)
       {
          super.readFromNBT(par1);
          NBTTagList nbttaglist = par1.getTagList("Items", 10);
          for (int i = 0; i < nbttaglist.tagCount(); ++i)
          {
              NBTTagCompound nbttagcompound1 = nbttaglist.getCompoundTagAt(i);
              byte b0 = nbttagcompound1.getByte("Slot");
    
              if (b0 >= 0 && b0 < this.slots.length)
              {
                  this.slots[b0] = ItemStack.loadItemStackFromNBT(nbttagcompound1);
              }
          }
       }
    @Override
    public int getSizeInventory() {
    // TODO Auto-generated method stub
    return slots.length;
    }
    @Override
    public ItemStack getStackInSlot(int slot) {
    slotStack = slots[slot];
    return slotStack;
    }
    @Override
    public void setInventorySlotContents(int p_70299_1_, ItemStack p_70299_2_)
    {
        this.slots[p_70299_1_] = p_70299_2_;
    
        if (p_70299_2_ != null && p_70299_2_.stackSize > this.getInventoryStackLimit())
        {
            p_70299_2_.stackSize = this.getInventoryStackLimit();
        }
    }
    @Override
    public String getInventoryName() {
    // TODO Auto-generated method stub
    return "Electrolysis Chamber";
    }
    @Override
    public boolean hasCustomInventoryName() {
    // TODO Auto-generated method stub
    return true;
    }
    @Override
    public int getInventoryStackLimit() {
    // TODO Auto-generated method stub
    return 1;
    }
    @Override
    public boolean isUseableByPlayer(EntityPlayer player) {
            return worldObj.getTileEntity(xCoord, yCoord, zCoord) == this &&
            player.getDistanceSq(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5) < 64;
    }
    @Override
    public void openInventory() {
    System.out.println(slots);
    }
    @Override
    public void closeInventory() {
    System.out.println(slots);
    }
    @Override
    public boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_) {
    // TODO Auto-generated method stub
    return true;
    }
    @Override
    public int[] getAccessibleSlotsFromSide(int p_94128_1_) {
    // TODO Auto-generated method stub
    return null;
    }
    @Override
    public boolean canInsertItem(int p_102007_1_, ItemStack p_102007_2_,
    	int p_102007_3_) {
    // TODO Auto-generated method stub
        return this.isItemValidForSlot(p_102007_1_, p_102007_2_);
    }
    @Override
    public boolean canExtractItem(int p_102008_1_, ItemStack p_102008_2_,
    	int p_102008_3_) {
    // TODO Auto-generated method stub
    return false;
    }
    }

     

    Container

     

    package com.rabidfox.syntheticgems;
    
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.entity.player.InventoryPlayer;
    import net.minecraft.init.Items;
    import net.minecraft.inventory.Container;
    import net.minecraft.inventory.Slot;
    import net.minecraft.item.ItemStack;
    
    public class ContainerElectrolyzer extends Container{
    @Override
    public boolean canInteractWith(EntityPlayer p_75145_1_) {
    	// TODO Auto-generated method stub
    	return true;
    }
    public ContainerElectrolyzer(InventoryPlayer inventoryplayer, TileMachineElectrolyzer elec){
    int i;
    addSlotToContainer(new Slot(elec, 0, 80, 57));
    addSlotToContainer(new Slot(elec, 1, 62, 17));
    addSlotToContainer(new Slot(elec, 2, 98, 17));
     for (i = 0; i < 3; ++i)
         {
             for (int j = 0; j < 9; ++j)
             {
                 this.addSlotToContainer(new Slot(inventoryplayer, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));
             }
         }
    
         for (i = 0; i < 9; ++i)
         {
             this.addSlotToContainer(new Slot(inventoryplayer, i, 8 + i * 18, 142));
         }
    }
    @Override
    public ItemStack transferStackInSlot(EntityPlayer player, int slot){
    if(!((Slot)this.inventorySlots.get(slot)).getHasStack()){
    	return null;
    }
    if(slot == 0){
    	Slot stack1 = (Slot)this.inventorySlots.get(0);
    	if(!player.inventory.addItemStackToInventory(stack1.getStack())){
    		return null;
    	}else
    		return stack1.getStack();
    }
    Slot stack = (Slot)this.inventorySlots.get(slot);
    if(stack != null){
    	if(stack.getStack().getItem() == Items.water_bucket){
    		if(!((Slot)this.inventorySlots.get(0)).getHasStack()){
    			return stack.getStack();
    		}
    	}
    }
    return null;
    }
    }
    

     

    Gui

     

    package com.rabidfox.syntheticgems;
    
    import net.minecraft.client.gui.inventory.GuiContainer;
    import net.minecraft.client.resources.I18n;
    import net.minecraft.entity.player.InventoryPlayer;
    import net.minecraft.util.ResourceLocation;
    
    import org.lwjgl.opengl.GL11;
    
    import cpw.mods.fml.relauncher.Side;
    import cpw.mods.fml.relauncher.SideOnly;
    
    @SideOnly(Side.CLIENT)
    public class GuiElectrolyzer extends GuiContainer
    {
        private static final ResourceLocation electrolyzergui = new ResourceLocation("syntheticgems:textures/gui/electrolyzergui.png");
        private TileMachineElectrolyzer tileelec;
        private static final String __OBFID = "CL_00000758";
    public static final int GUI_ID = 9002;
    
        public GuiElectrolyzer(InventoryPlayer p_i1091_1_, TileMachineElectrolyzer p_i1091_2_)
        {
            super(new ContainerElectrolyzer(p_i1091_1_, p_i1091_2_));
            this.tileelec = p_i1091_2_;
        }
    
        /**
         * Draw the foreground layer for the GuiContainer (everything in front of the items)
         */
        protected void drawGuiContainerForegroundLayer(int p_146979_1_, int p_146979_2_)
        { 
            String s = this.tileelec.hasCustomInventoryName() ? this.tileelec.getInventoryName() : I18n.format(this.tileelec.getInventoryName(), new Object[0]);
            this.fontRendererObj.drawString(s, this.xSize / 2 - this.fontRendererObj.getStringWidth(s) / 2, 6, 4210752);
            this.fontRendererObj.drawString(I18n.format("container.inventory", new Object[0]), 8, this.ySize - 96 + 2, 4210752);
        }
    
        protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_)
        {
            GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
            this.mc.getTextureManager().bindTexture(electrolyzergui);
            int k = ((this.width - this.xSize) / 2);
            int l = ((this.height - this.ySize) / 2);
            this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
        }
    }
    

     

    Handler

     

    package com.rabidfox.syntheticgems;
    
    import net.minecraft.client.gui.GuiMerchant;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.inventory.ContainerMerchant;
    import net.minecraft.world.World;
    import cpw.mods.fml.common.network.IGuiHandler;
    
    public class GuiHandlerElectrolyzer implements IGuiHandler {
    
        public Object getServerGuiElement(int ID, EntityPlayer player, World world,
        int x, int y, int z) {
        // TODO Auto-generated method stub
        	System.out.println("Server");
        return new ContainerElectrolyzer(player.inventory, new TileMachineElectrolyzer());
        }
    
        @Override
        public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
            if (ID == com.rabidfox.syntheticgems.GuiElectrolyzer.GUI_ID) {
                System.out.print("create gui.\n");
                return new com.rabidfox.syntheticgems.GuiElectrolyzer(player.inventory, new TileMachineElectrolyzer());
            }
            return null;
        }
    }
    

     

    Main Class

     

    package com.rabidfox.syntheticgems;
    
    import net.minecraft.block.Block;
    import net.minecraft.init.Items;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraft.tileentity.TileEntity;
    import cpw.mods.fml.common.Mod;
    import cpw.mods.fml.common.Mod.EventHandler;
    import cpw.mods.fml.common.event.FMLInitializationEvent;
    import cpw.mods.fml.common.event.FMLPreInitializationEvent;
    import cpw.mods.fml.common.network.NetworkRegistry;
    import cpw.mods.fml.common.registry.GameRegistry;
    
    @Mod(modid = "syntheticgems", version = "1.0.0")
    public class SyntheticGems {
    //Instance
    @Mod.Instance("syntheticgems") public static SyntheticGems instance;
    //Tile Variables//
    public static Class<? extends TileEntity> tilemachineelectrolyzer;
    //Block Variables//
    public static Block orebauxite;
    public static Block oresodium;
    public static Block machineelectrolyzer;
    //Item Variables//
    public static Item itemoxybottle;
    public static Item itemhydbottle;
    public static Item itemsodiumraw;
    public static Item itemlye;
    public static Item itemlyesolution;
    @EventHandler
    public void preinit(FMLPreInitializationEvent event)
    {
    	//Register Gui Handlers//
    	NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandlerElectrolyzer());
    	//Block Variable Defining//
    	orebauxite = new OreBauxite();
    	orebauxite.setHarvestLevel("pickaxe", 1);
    	oresodium = new OreSodium();
    	oresodium.setHarvestLevel("pickaxe", 0);
    	machineelectrolyzer = new MachineElectrolyzer();
    	//Item Variable Defining//
    	itemoxybottle = new ItemOxygenBottle();
    	itemhydbottle = new ItemHydrogenBottle();
    	itemsodiumraw = new ItemSodiumRaw();
    	itemlye = new ItemLye();
    	itemlyesolution = new ItemLyeSolution();
    	//Tile Variable Registering//
    	GameRegistry.registerTileEntity(TileMachineElectrolyzer.class, "tileelectrolyzer");
    	//Block Variable Registering//
    	GameRegistry.registerBlock(orebauxite, "orebauxite");
    	GameRegistry.registerBlock(oresodium, "oresodium");
    	GameRegistry.registerBlock(machineelectrolyzer, "machineelectrolyzer");
    	//Item Variable Registering//
    	GameRegistry.registerItem(itemsodiumraw, "itemsodiumraw");   
    	GameRegistry.registerItem(itemlye, "itemlye");  
    	GameRegistry.registerItem(itemlyesolution, "itemlyesolution");  
    	GameRegistry.registerItem(itemoxybottle, "itemoxy");
    	GameRegistry.registerItem(itemhydbottle, "itemhyd");
    	//Smelting//
    	GameRegistry.addSmelting(oresodium, new ItemStack(itemsodiumraw), (float) 0.1);
    	//Shapeless//
    	GameRegistry.addShapelessRecipe(new ItemStack(itemlye,1), itemsodiumraw, Items.water_bucket);
    	GameRegistry.addShapelessRecipe(new ItemStack(itemlyesolution,1), new ItemStack(itemlye), new ItemStack(Items.potionitem, 0));
    }
    	//Shaped//
    @EventHandler
    public void init(FMLInitializationEvent event)
    {
    	//Generator Registry//
    	 GameRegistry.registerWorldGenerator(new SynthOreGen(), 5);
    }
    }
    

     

    Help is MASSIVELY APPRECIATED!!!

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.