Jump to content

jackmano

Forge Modder
  • Posts

    29
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    TARDIS
  • Personal Text
    Working on creation of Synthetic Gems

jackmano's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Maybe look at the code for Quarry in the Buildcraft Github? I know the quarry loads chunks.
  2. I'm making a mod that adds a synthetic blaze rod and I need to make it so it works instead of a blaze rod in item recipes that use a blaze rod. Like in IC2 you can make copper wire from Mekanism copper or TC Copper.
  3. 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 - 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
  4. Whoa! Java fail! I read that was the teminate condition! Well, thanks alot?
  5. 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); } } }
  6. 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 : [email protected],[email protected],[email protected],[email protected] [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
  7. 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); } } }
  8. 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 HEEELP!!!
  9. Oh, thank you! Divines bless your kind heart! *Gift of Charity added
  10. 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; } } } }
  11. SOLVED!!! OMG thank you! Cheers, made my day! Locking thread!
  12. Tried everything except the texture path in the model, where is that??? Here's what I'm getting- just only grey, it's like all the pixels in the texture are being averaged out...
×
×
  • Create New...

Important Information

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