When I start the Game in Eclipse it shows me a colored Item Name and
everything is great. I still cannot recompile that, because the recompiler
does not recognize this §-prefix.
Please help me!
Replace the "_" with your color's code:
Black - 0
Blue - 1
Green - 2
Cyan - 3
Red - 4
Purple - 5
Yellow - 6
White - 7
Grey - 8
Light Blue - 9
Light Green - A
Light Cyan - B
Light Red - C
Light Purple - D
Light Yellow - E
Bright White - F
I have tried fixing it several times but i keep getting the same error
-- Head --
Stacktrace:
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at cpw.mods.fml.common.Loader.getFMLBrandingProperties(Loader.java:832)
at cpw.mods.fml.common.FMLCommonHandler.computeBranding(FMLCommonHandler.java:248)
at cpw.mods.fml.common.FMLCommonHandler.getBrandings(FMLCommonHandler.java:262)
at net.minecraft.client.gui.GuiMainMenu.drawScreen(GuiMainMenu.java:559)
-- Screen render details --
Details:
Screen name: net.minecraft.client.gui.GuiMainMenu
Mouse location: Scaled: (363, 237). Absolute: (727, 4)
Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2
Stacktrace:
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1021)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:867)
at net.minecraft.client.Minecraft.run(Minecraft.java:756)
at java.lang.Thread.run(Thread.java:680)
-- System Details --
Details:
Minecraft Version: 1.5.1
Operating System: Mac OS X (x86_64) version 10.6.8
Java Version: 1.6.0_43, Apple Inc.
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Apple Inc.
Memory: 1014196576 bytes (967 MB) / 1069416448 bytes (1019 MB) up to 1069416448 bytes (1019 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: ~~ERROR~~ NullPointerException: null
LWJGL: 2.4.2
OpenGL: NVIDIA GeForce 9400M OpenGL Engine GL version 2.1 NVIDIA-1.6.36, NVIDIA Corporation
Is Modded: ~~ERROR~~ NullPointerException: null
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at cpw.mods.fml.common.Loader.getFMLBrandingProperties(Loader.java:832)
at cpw.mods.fml.common.FMLCommonHandler.computeBranding(FMLCommonHandler.java:248)
at cpw.mods.fml.common.FMLCommonHandler.getBrandings(FMLCommonHandler.java:262)
at net.minecraft.client.gui.GuiMainMenu.drawScreen(GuiMainMenu.java:559)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1021)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:867)
at net.minecraft.client.Minecraft.run(Minecraft.java:756)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT eae4a78f ----------
Minecraft crashes everytime i run the script...The code seems to be OK (I have copied exactly yours, but needed to add antother "int" value in the setBlockHarvestLevel because it gave an error, maybe there´s the problem)
@Mod(modid="YourMod", name="Your Mod", version="0.0.0")
@NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class YourMod {
@Instance("YourMod")
public static YourMod instance;
@SidedProxy(clientSide="yourname.yourmodname.client.ClientProxy", serverSide="yourname.yourmodname.CommonProxy")
public static CommonProxy proxy;
public static Block yourBlock;
int yourBlockID = 150;
@PreInit
public void preInit(FMLPreInitializationEvent event) {
}
@Init
public void load(FMLInitializationEvent event) {
proxy.registerRenderers();
yourBlock = new YourBlock(yourBlockID, Material.rock).setUnlocalizedName("yourBlock");
LanguageRegistry.addName(yourBlock, "Your Block");
MinecraftForge.setBlockHarvestLevel(yourBlock,0,"pickaxe", 2);
GameRegistry.registerBlock(yourBlock);
}
@PostInit
public void postInit(FMLPostInitializationEvent event) {
}
}
Crash Log:
---- Minecraft Crash Report ----
// Ooh. Shiny.
Time: 31/03/13 01:18 AM
Description: Failed to start game
java.lang.IllegalArgumentException: Slot 150 is already occupied by net.minecraft.block.BlockComparator@639f8c4a when adding yourname.yourmodname.YourBlock@7fb3815e
at net.minecraft.block.Block.(Block.java:340)
at yourname.yourmodname.YourBlock.(YourBlock.java:12)
at yourname.yourmodname.YourMod.load(YourMod.java:39)
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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)
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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:729)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.5.1
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_17, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 881089960 bytes (840 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.44 FML v5.1.10.621 Minecraft Forge 7.7.1.621 4 mods loaded, 4 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
YourMod [Your Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: GeForce GTS 450/PCIe/SSE2 GL version 4.3.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
Thanks for the tutorials!! By the way, sorry if i write everything bad, I speak spanish, but i know some english! :\
Minecraft crashes everytime i run the script...The code seems to be OK (I have copied exactly yours, but needed to add antother "int" value in the setBlockHarvestLevel because it gave an error, maybe there´s the problem)
@Mod(modid="YourMod", name="Your Mod", version="0.0.0")
@NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class YourMod {
@Instance("YourMod")
public static YourMod instance;
@SidedProxy(clientSide="yourname.yourmodname.client.ClientProxy", serverSide="yourname.yourmodname.CommonProxy")
public static CommonProxy proxy;
public static Block yourBlock;
int yourBlockID = 150;
@PreInit
public void preInit(FMLPreInitializationEvent event) {
}
@Init
public void load(FMLInitializationEvent event) {
proxy.registerRenderers();
yourBlock = new YourBlock(yourBlockID, Material.rock).setUnlocalizedName("yourBlock");
LanguageRegistry.addName(yourBlock, "Your Block");
MinecraftForge.setBlockHarvestLevel(yourBlock,0,"pickaxe", 2);
GameRegistry.registerBlock(yourBlock);
}
@PostInit
public void postInit(FMLPostInitializationEvent event) {
}
}
Crash Log:
---- Minecraft Crash Report ----
// Ooh. Shiny.
Time: 31/03/13 01:18 AM
Description: Failed to start game
java.lang.IllegalArgumentException: Slot 150 is already occupied by net.minecraft.block.BlockComparator@639f8c4a when adding yourname.yourmodname.YourBlock@7fb3815e
at net.minecraft.block.Block.(Block.java:340)
at yourname.yourmodname.YourBlock.(YourBlock.java:12)
at yourname.yourmodname.YourMod.load(YourMod.java:39)
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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)
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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:729)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.5.1
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_17, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 881089960 bytes (840 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.44 FML v5.1.10.621 Minecraft Forge 7.7.1.621 4 mods loaded, 4 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
YourMod [Your Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: GeForce GTS 450/PCIe/SSE2 GL version 4.3.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
Thanks for the tutorials!! By the way, sorry if i write everything bad, I speak spanish, but i know some english! :\
java.lang.IllegalArgumentException: Slot 150 is already occupied by net.minecraft.block.BlockComparator@639f8c4a when adding yourname.yourmodname.YourBlock@7fb3815e
at net.minecraft.block.Block.(Block.java:340)
Seems like you put an ID that is 150 which is the ID of the Comparator. Change it for it to work.
java.lang.IllegalArgumentException: Slot 150 is already occupied by net.minecraft.block.BlockComparator@639f8c4a when adding yourname.yourmodname.YourBlock@7fb3815e
at net.minecraft.block.Block.(Block.java:340)
Seems like you put an ID that is 150 which is the ID of the Comparator. Change it for it to work.
Hey Legend 2 things:
1. Could you tell me how do I get my mod to work in the mod folder rather than having to be installed to the jar(Does it work if I just Zip the contents if it edits no base classes).
2. Also if you don't know I can show you how to get a mcmod.info to work it's just you don't have it there and it is really easy.
Here's a code that I like to use for text it kind of reminds me of Borderlands so I use it for cool items.
Simply use it before the text in an item's name - \u00A7e
Hello mcslimey,
I haven't tested this but it should work.
Add this to your import list:
Then add the following code anywhere.
I hope this works for you! By the way, thank you for using my signature - I really appreciate it!
You may want to try this:
Replace the "_" with your color's code:
Black - 0
Blue - 1
Green - 2
Cyan - 3
Red - 4
Purple - 5
Yellow - 6
White - 7
Grey - 8
Light Blue - 9
Light Green - A
Light Cyan - B
Light Red - C
Light Purple - D
Light Yellow - E
Bright White - F
I hope this works...
Stacktrace:
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at cpw.mods.fml.common.Loader.getFMLBrandingProperties(Loader.java:832)
at cpw.mods.fml.common.FMLCommonHandler.computeBranding(FMLCommonHandler.java:248)
at cpw.mods.fml.common.FMLCommonHandler.getBrandings(FMLCommonHandler.java:262)
at net.minecraft.client.gui.GuiMainMenu.drawScreen(GuiMainMenu.java:559)
-- Screen render details --
Details:
Screen name: net.minecraft.client.gui.GuiMainMenu
Mouse location: Scaled: (363, 237). Absolute: (727, 4)
Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2
Stacktrace:
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1021)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:867)
at net.minecraft.client.Minecraft.run(Minecraft.java:756)
at java.lang.Thread.run(Thread.java:680)
-- System Details --
Details:
Minecraft Version: 1.5.1
Operating System: Mac OS X (x86_64) version 10.6.8
Java Version: 1.6.0_43, Apple Inc.
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Apple Inc.
Memory: 1014196576 bytes (967 MB) / 1069416448 bytes (1019 MB) up to 1069416448 bytes (1019 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: ~~ERROR~~ NullPointerException: null
LWJGL: 2.4.2
OpenGL: NVIDIA GeForce 9400M OpenGL Engine GL version 2.1 NVIDIA-1.6.36, NVIDIA Corporation
Is Modded: ~~ERROR~~ NullPointerException: null
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at cpw.mods.fml.common.Loader.getFMLBrandingProperties(Loader.java:832)
at cpw.mods.fml.common.FMLCommonHandler.computeBranding(FMLCommonHandler.java:248)
at cpw.mods.fml.common.FMLCommonHandler.getBrandings(FMLCommonHandler.java:262)
at net.minecraft.client.gui.GuiMainMenu.drawScreen(GuiMainMenu.java:559)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1021)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:867)
at net.minecraft.client.Minecraft.run(Minecraft.java:756)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT eae4a78f ----------
Here's my YourBlock class:
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.LanguageRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraftforge.common.MinecraftForge;
@Mod(modid="YourMod", name="Your Mod", version="0.0.0")
@NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class YourMod {
@Instance("YourMod")
public static YourMod instance;
@SidedProxy(clientSide="yourname.yourmodname.client.ClientProxy", serverSide="yourname.yourmodname.CommonProxy")
public static CommonProxy proxy;
public static Block yourBlock;
int yourBlockID = 150;
@PreInit
public void preInit(FMLPreInitializationEvent event) {
}
@Init
public void load(FMLInitializationEvent event) {
proxy.registerRenderers();
yourBlock = new YourBlock(yourBlockID, Material.rock).setUnlocalizedName("yourBlock");
LanguageRegistry.addName(yourBlock, "Your Block");
MinecraftForge.setBlockHarvestLevel(yourBlock,0,"pickaxe", 2);
GameRegistry.registerBlock(yourBlock);
}
@PostInit
public void postInit(FMLPostInitializationEvent event) {
}
}
Crash Log:
// Ooh. Shiny.
Time: 31/03/13 01:18 AM
Description: Failed to start game
java.lang.IllegalArgumentException: Slot 150 is already occupied by net.minecraft.block.BlockComparator@639f8c4a when adding yourname.yourmodname.YourBlock@7fb3815e
at net.minecraft.block.Block.(Block.java:340)
at yourname.yourmodname.YourBlock.(YourBlock.java:12)
at yourname.yourmodname.YourMod.load(YourMod.java:39)
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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)
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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:729)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.5.1
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_17, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 881089960 bytes (840 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.44 FML v5.1.10.621 Minecraft Forge 7.7.1.621 4 mods loaded, 4 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
YourMod [Your Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: GeForce GTS 450/PCIe/SSE2 GL version 4.3.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
Thanks for the tutorials!! By the way, sorry if i write everything bad, I speak spanish, but i know some english! :\
java.lang.IllegalArgumentException: Slot 150 is already occupied by net.minecraft.block.BlockComparator@639f8c4a when adding yourname.yourmodname.YourBlock@7fb3815e
at net.minecraft.block.Block.(Block.java:340)
Seems like you put an ID that is 150 which is the ID of the Comparator. Change it for it to work.
Thank you a lot! It worked!
1. Could you tell me how do I get my mod to work in the mod folder rather than having to be installed to the jar(Does it work if I just Zip the contents if it edits no base classes).
2. Also if you don't know I can show you how to get a mcmod.info to work it's just you don't have it there and it is really easy.
Simply use it before the text in an item's name - \u00A7e
GameRegistry.addSmelting(Block.dirt.blockID, new ItemStack(Item.diamond), 1.0F);
If you put that in the load function in your mod class it should make a dirt block melt into a diamond and give you xp.