
DigitalHeavy
Members-
Posts
9 -
Joined
-
Last visited
Everything posted by DigitalHeavy
-
So basically im trying to have it when certain items are right clicked on my block the item in hand is taken is replaced with a new one. I was also thinking i could do the same type of thing where if the player throws the item on my block they get a new item and the thrown on is destroyed, i figured i could do that with a item event handler, something like the Twilight Forest mod does to create the portal. but i have not been successful ether way. i've also tried PlayerInteractionEvent Any help is great, thanks currently what im trying public boolean onItemRightClick(ItemStack stack, World world, EntityPlayer player, PlayerInteractEvent event) { ItemStack beef = new ItemStack(Items.beef); ItemStack cookedBeef = new ItemStack(Items.cooked_beef); if(player.getCurrentEquippedItem() != null && player.getCurrentEquippedItem() == beef) { player.inventory.addItemStackToInventory(cookedBeef); --player.getCurrentEquippedItem().stackSize; } return true; }
-
Ok so i have a good idea for a Thermal Expansion 3 addon but there doesnt seem to be a Thermal Expansion API only a COFH Lib but that doesnt contain any TE items i would need to use. So how would i go along with getting and using TE items in my mod recipes? Thanks for any help
-
Config Code Is Crashing Minecraft 1.6.4
DigitalHeavy replied to DigitalHeavy's topic in Modder Support
Yeah I suspected that was what was causing the crash, but without the config code it runs fine, then i also tried to export the mod with the config and tried running it with 10gb of ram allocated to it yet it crashed thats why im confused -
I am currently trying to get a config file setup for my mod which i have never had a issue with before but it is crashing minecraft when i try to load a new world with the config code in the mod. I'd love any help with this. My Config Code: public static int CDID; public static Block blockCD; @EventHandler public void initConfiguration(FMLInitializationEvent event){ Configuration config = new Configuration(new File("config/ExtraVanilla.cfg")); config.load(); CDID = config.get("Blocks", "Compressed Dirt", 1871).getInt(); config.save(); } ----------------------------------------------------------------------------------------------------------------------------------------------- Crash Report: Nov 09, 2013 3:31:27 PM net.minecraft.launchwrapper.LogWrapper log INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker Nov 09, 2013 3:31:27 PM net.minecraft.launchwrapper.LogWrapper log INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker Nov 09, 2013 3:31:27 PM net.minecraft.launchwrapper.LogWrapper log INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker 2013-11-09 15:31:27 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.4.20.916 for Minecraft 1.6.4 loading 2013-11-09 15:31:27 [iNFO] [ForgeModLoader] Java is Java HotSpot 64-Bit Server VM, version 1.7.0_25, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7 2013-11-09 15:31:27 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2013-11-09 15:31:27 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg 2013-11-09 15:31:27 [iNFO] [sTDOUT] Loaded 109 rules from AccessTransformer config file forge_at.cfg 2013-11-09 15:31:27 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work! 2013-11-09 15:31:28 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker 2013-11-09 15:31:28 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker 2013-11-09 15:31:28 [iNFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main} 2013-11-09 15:31:28 [iNFO] [Minecraft-Client] Setting user: Player562 2013-11-09 15:31:28 [iNFO] [Minecraft-Client] (Session ID is null) 2013-11-09 15:31:29 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0 2013-11-09 15:31:29 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default 2013-11-09 15:31:29 [iNFO] [sTDOUT] 2013-11-09 15:31:29 [iNFO] [sTDOUT] Starting up SoundSystem... 2013-11-09 15:31:29 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization 2013-11-09 15:31:29 [iNFO] [sTDOUT] MinecraftForge v9.11.1.916 Initialized 2013-11-09 15:31:29 [iNFO] [ForgeModLoader] MinecraftForge v9.11.1.916 Initialized 2013-11-09 15:31:30 [iNFO] [sTDOUT] Replaced 101 ore recipies 2013-11-09 15:31:30 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization 2013-11-09 15:31:30 [iNFO] [ForgeModLoader] Reading custom logging properties from O:\Projects\minecraftforge-src-1.6.4-9.11.1.916\forge\mcp\jars\config\logging.properties 2013-11-09 15:31:30 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2013-11-09 15:31:30 [iNFO] [sTDOUT] Initializing LWJGL OpenAL 2013-11-09 15:31:30 [iNFO] [sTDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) 2013-11-09 15:31:30 [iNFO] [sTDOUT] OpenAL initialized. 2013-11-09 15:31:30 [iNFO] [ForgeModLoader] Searching O:\Projects\minecraftforge-src-1.6.4-9.11.1.916\forge\mcp\jars\mods for mods 2013-11-09 15:31:30 [iNFO] [sTDOUT] 2013-11-09 15:31:31 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2013-11-09 15:31:31 [iNFO] [mcp] Activating mod mcp 2013-11-09 15:31:31 [iNFO] [FML] Activating mod FML 2013-11-09 15:31:31 [iNFO] [Forge] Activating mod Forge 2013-11-09 15:31:31 [iNFO] [ExtraVanilla] Activating mod ExtraVanilla 2013-11-09 15:31:31 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well 2013-11-09 15:31:31 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well 2013-11-09 15:31:31 [WARNING] [ExtraVanilla] Mod ExtraVanilla is missing a pack.mcmeta file, things may not work well 2013-11-09 15:31:31 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ExtraVanilla 2013-11-09 15:31:31 [iNFO] [sTDOUT] 2013-11-09 15:31:31 [iNFO] [sTDOUT] SoundSystem shutting down... 2013-11-09 15:31:31 [iNFO] [sTDOUT] Author: Paul Lamb, www.paulscode.com 2013-11-09 15:31:31 [iNFO] [sTDOUT] 2013-11-09 15:31:31 [iNFO] [sTDOUT] 2013-11-09 15:31:31 [iNFO] [sTDOUT] Starting up SoundSystem... 2013-11-09 15:31:31 [iNFO] [ForgeModLoader] Registering Forge Packet Handler 2013-11-09 15:31:31 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler 2013-11-09 15:31:31 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0 2013-11-09 15:31:31 [iNFO] [sTDOUT] Initializing LWJGL OpenAL 2013-11-09 15:31:31 [iNFO] [sTDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) 2013-11-09 15:31:31 [iNFO] [sTDOUT] OpenAL initialized. 2013-11-09 15:31:31 [iNFO] [sTDOUT] 2013-11-09 15:31:32 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods 2013-11-09 15:31:32 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well 2013-11-09 15:31:32 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well 2013-11-09 15:31:32 [WARNING] [ExtraVanilla] Mod ExtraVanilla is missing a pack.mcmeta file, things may not work well 2013-11-09 15:31:32 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ExtraVanilla 2013-11-09 15:31:32 [iNFO] [sTDOUT] 2013-11-09 15:31:32 [iNFO] [sTDOUT] SoundSystem shutting down... 2013-11-09 15:31:32 [iNFO] [sTDOUT] Author: Paul Lamb, www.paulscode.com 2013-11-09 15:31:32 [iNFO] [sTDOUT] 2013-11-09 15:31:32 [iNFO] [sTDOUT] 2013-11-09 15:31:32 [iNFO] [sTDOUT] Starting up SoundSystem... 2013-11-09 15:31:32 [iNFO] [sTDOUT] Initializing LWJGL OpenAL 2013-11-09 15:31:32 [iNFO] [sTDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) 2013-11-09 15:31:32 [iNFO] [sTDOUT] OpenAL initialized. 2013-11-09 15:31:33 [iNFO] [sTDOUT] 2013-11-09 15:31:35 [sEVERE] [Minecraft-Client] Realms: Invalid session id 2013-11-09 15:31:38 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.4 2013-11-09 15:31:38 [iNFO] [Minecraft-Server] Generating keypair 2013-11-09 15:31:38 [iNFO] [Minecraft-Server] Converting map! 2013-11-09 15:31:38 [iNFO] [Minecraft-Server] Scanning folders... 2013-11-09 15:31:38 [iNFO] [Minecraft-Server] Total conversion count is 0 2013-11-09 15:31:38 [iNFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@280467e3) 2013-11-09 15:31:38 [iNFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@280467e3) 2013-11-09 15:31:38 [iNFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@280467e3) 2013-11-09 15:31:38 [iNFO] [Minecraft-Server] Preparing start region for level 0 2013-11-09 15:31:39 [iNFO] [Minecraft-Server] Preparing spawn area: 17% 2013-11-09 15:31:40 [iNFO] [Minecraft-Server] Preparing spawn area: 49% 2013-11-09 15:31:41 [iNFO] [Minecraft-Server] Preparing spawn area: 81% 2013-11-09 15:32:16 [iNFO] [sTDERR] java.lang.OutOfMemoryError: Java heap space 2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.util.AABBPool.getAABB(AABBPool.java:50) 2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.util.AxisAlignedBB.expand(AxisAlignedBB.java:111) 2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.world.World.getCollidingBoundingBoxes(World.java:1692) 2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:184) 2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:389) 2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:91) 2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691) 2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587) 2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) 2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) 2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-11-09 15:32:16 [sEVERE] [Minecraft-Server] Encountered an unexpected exception OutOfMemoryError java.lang.OutOfMemoryError: Java heap space at net.minecraft.util.AABBPool.getAABB(AABBPool.java:50) at net.minecraft.util.AxisAlignedBB.expand(AxisAlignedBB.java:111) at net.minecraft.world.World.getCollidingBoundingBoxes(World.java:1692) at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:184) at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:389) at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:91) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-11-09 15:32:16 [sEVERE] [Minecraft-Server] This crash report has been saved to: O:\Projects\minecraftforge-src-1.6.4-9.11.1.916\forge\mcp\jars\.\crash-reports\crash-2013-11-09_15.32.16-server.txt 2013-11-09 15:32:16 [iNFO] [Minecraft-Server] Stopping server 2013-11-09 15:32:16 [iNFO] [Minecraft-Server] Saving players 2013-11-09 15:32:16 [iNFO] [Minecraft-Server] Saving worlds 2013-11-09 15:32:16 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld
-
Is this still the proper code for giving a mob a texture, it's not working for me public class EntityEnderAngel extends EntityMob { public EntityEnderAngel(World par1World) { super(par1World); this.texture = "textures/EnderAngel"; }