//Declaring Init
@Init
public void load(FMLInitializationEvent event){
// define items/blocks
TopazBlock= new TopazBlock(3608,"TopazBlock").setUnlocalizedName("Topaz Block").setHardness(2.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F);
GameRegistry.registerBlock(TopazBlock, "TopazBlock");
LanguageRegistry.addName(TopazBlock, "Topaz Block");
topaz = new GemItems(2013).setUnlocalizedName("Topaz");
//adding names
LanguageRegistry.addName(topaz, "Topaz Gem");
//crafting
}
What Am i Doing Wrong here every other class has no errors but my main one which is this one?The Error is aroung the FMLInitinialization and the mod id name and version? thanks for the help im slowly learning java lol
I think Steven should just stick with the basics first and recreate all the tutorials for ModLoader but for FML then he should start getting into details like dimensions/Ore Gen in Different dimensions New audio/music discs. THEN he should get into complex things like physics that aren't originally in Minecraft, like Tech-Mods and magic stuff. First the basics/fundamentals then the better stuff
//Declaring Init
@Init
public void load(FMLInitializationEvent event){
// define items/blocks
TopazBlock= new TopazBlock(3608,"TopazBlock").setUnlocalizedName("Topaz Block").setHardness(2.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F);
GameRegistry.registerBlock(TopazBlock, "TopazBlock");
LanguageRegistry.addName(TopazBlock, "Topaz Block");
topaz = new GemItems(2013).setUnlocalizedName("Topaz");
//adding names
LanguageRegistry.addName(topaz, "Topaz Gem");
//crafting
}
What Am i Doing Wrong here every other class has no errors but my main one which is this one?The Error is aroung the FMLInitinialization and the mod id name and version? thanks for the help im slowly learning java lol
I would really love to learn how to make a block that items can interact with. I'm thinking like in Bibliocraft, where you right click on a shelf with an item and that item leaves your inventory and appears on the shelf. Or with sword pedestals from Legend Gear.
Hey Steven.I love your let's make a mod tutorial! I never thought it was so easy and fun to make a mod!But I really want to know how to make it so there's like a boss mob or whatever.Can I just copy and paste the Enderdragon's src?Or do I need to re-write the whole code.I know JavaScript,but I'm not that advanced.My friend wants a new boss mob. Oh,and could we also learn and ?
//Declaring Init
@Init
public void load(FMLInitializationEvent event){
// define items/blocks
TopazBlock= new TopazBlock(3608,"TopazBlock").setUnlocalizedName("Topaz Block").setHardness(2.0F).setStepSound(Block.soundMetalFootstep).setResistance(10.0F);
GameRegistry.registerBlock(TopazBlock, "TopazBlock");
LanguageRegistry.addName(TopazBlock, "Topaz Block");
topaz = new GemItems(2013).setUnlocalizedName("Topaz");
//adding names
LanguageRegistry.addName(topaz, "Topaz Gem");
//crafting
}
What Am i Doing Wrong here every other class has no errors but my main one which is this one?The Error is aroung the FMLInitinialization and the mod id name and version? thanks for the help im slowly learning java lol
FINALKILL'S CODE HELPER
PROBLEM:
You put a } at the end of where you make a string for the topaz item.
And You put the imports in the main class file brackets.
Plus, You forgot to put a semi code at the end of the string for the TopazBlock.
ERRORED CODE:
public static Item Topaz}
public static Block TopazBlock
FIXED CODE:
public static Item Topaz;
(just put a semi colon instead)
public static Block TopazBlock;
(you needed a semi colon at the end)
Move your imports so that they are with all the other imports.
DESCRPTION:
The reason why it said you had errors was because you put a semi colon to end the class file. So, that means all the code for the FML initialization event was errored because it was not inside of the brackets that mark the class file.
And you put your imports in the wrong place.
Plus, you forgot the semi colon at the end of one meathod.
PASTEBIN LINK:
none needed.
Red marks the found errors in the given code.
Purple marks a java method (i.e. public, static, final, etc.).
every single time i try to make a block i get this error message:
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader]
mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{5.2.23.737} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge{7.8.1.737} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
kb3jumbled{v1.0.0} [Jumbled Mess!] (bin) Unloaded->Constructed->Pre-initialized->Errored
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] The following problems were captured during this phase
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] Caught exception from kb3jumbled
java.lang.ExceptionInInitializerError
at kb3.bobjoromods.block.BlockRegistry.registerBlocks(BlockRegistry.java:9)
at kb3.bobjoromods.main.Main.load(Main.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.sendEventToModContainer(LoadController.java:192)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:103)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:448)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:733)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 8050
at net.minecraft.block.Block.<init>(Block.java:338)
at kb3.bobjoromods.block.DeployHouse.<init>(DeployHouse.java:9)
at kb3.bobjoromods.block.Blocks.<clinit>(Blocks.java:8)
... 34 more
2013-08-03 17:15:06 [INFO] [STDERR] cpw.mods.fml.common.LoaderException: java.lang.ExceptionInInitializerError
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:147)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:692)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213)
2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:448)
2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:733)
2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.Thread.run(Thread.java:680)
2013-08-03 17:15:06 [INFO] [STDERR] Caused by: java.lang.ExceptionInInitializerError
2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.BlockRegistry.registerBlocks(BlockRegistry.java:9)
2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.main.Main.load(Main.java:31)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:192)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:103)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
2013-08-03 17:15:06 [INFO] [STDERR] ... 5 more
2013-08-03 17:15:06 [INFO] [STDERR] Caused by: java.lang.ArrayIndexOutOfBoundsException: 8050
2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.block.Block.<init>(Block.java:338)
2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.DeployHouse.<init>(DeployHouse.java:9)
2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.Blocks.<clinit>(Blocks.java:8)
2013-08-03 17:15:06 [INFO] [STDERR] ... 34 more
Im running on a mac. Please help.
I can include any attachments necessary
every single time i try to make a block i get this error message:
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader]
mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{5.2.23.737} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge{7.8.1.737} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
kb3jumbled{v1.0.0} [Jumbled Mess!] (bin) Unloaded->Constructed->Pre-initialized->Errored
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] The following problems were captured during this phase
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] Caught exception from kb3jumbled
java.lang.ExceptionInInitializerError
at kb3.bobjoromods.block.BlockRegistry.registerBlocks(BlockRegistry.java:9)
at kb3.bobjoromods.main.Main.load(Main.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.sendEventToModContainer(LoadController.java:192)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:103)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:448)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:733)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 8050
at net.minecraft.block.Block.<init>(Block.java:338)
at kb3.bobjoromods.block.DeployHouse.<init>(DeployHouse.java:9)
at kb3.bobjoromods.block.Blocks.<clinit>(Blocks.java:8)
... 34 more
2013-08-03 17:15:06 [INFO] [STDERR] cpw.mods.fml.common.LoaderException: java.lang.ExceptionInInitializerError
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:147)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:692)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213)
2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:448)
2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:733)
2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.Thread.run(Thread.java:680)
2013-08-03 17:15:06 [INFO] [STDERR] Caused by: java.lang.ExceptionInInitializerError
2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.BlockRegistry.registerBlocks(BlockRegistry.java:9)
2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.main.Main.load(Main.java:31)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:192)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:103)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
2013-08-03 17:15:06 [INFO] [STDERR] ... 5 more
2013-08-03 17:15:06 [INFO] [STDERR] Caused by: java.lang.ArrayIndexOutOfBoundsException: 8050
2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.block.Block.<init>(Block.java:338)
2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.DeployHouse.<init>(DeployHouse.java:9)
2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.Blocks.<clinit>(Blocks.java:8)
2013-08-03 17:15:06 [INFO] [STDERR] ... 34 more
Im running on a mac. Please help.
I can include any attachments necessary
Code please? I cant really tell whats wrong just by looking at your error :/
Code please? I cant really tell whats wrong just by looking at your error :/
Heres the main class file:
package kb3.bobjoromods.main;
import kb3.bobjoromods.block.BlockRegistry;
import kb3.bobjoromods.crafting.Crafting;
import kb3.bobjoromods.item.ItemRegistry;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
@Mod(modid="kb3jumbled",name="Jumbled Mess!",version="v1.0.0")
@NetworkMod(clientSideRequired=true,serverSideRequired=false)
public class Main {
@Init
public void load(FMLInitializationEvent e) {
ItemRegistry.registerItems();
BlockRegistry.registerBlocks();
Crafting.registerCrafting();
}
}
and heres the Blocks file:
package kb3.bobjoromods.block;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
public class Blocks {
public static Block deployHouse = new DeployHouse(8050);
}
BlockRegistry:
package kb3.bobjoromods.block;
import cpw.mods.fml.common.registry.GameRegistry;
public class BlockRegistry {
public static void registerBlocks() {
GameRegistry.registerBlock(Blocks.deployHouse, "deployHouse");
}
}
and finally the Deploy House block itself:
package kb3.bobjoromods.block;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
public class DeployHouse extends Block {
public DeployHouse(int par1) {
super(par1, Material.rock);
}
}
and once again the error report for those who didnt read it
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader]
mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{5.2.23.737} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge{7.8.1.737} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
kb3jumbled{v1.0.0} [Jumbled Mess!] (bin) Unloaded->Constructed->Pre-initialized->Errored
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] The following problems were captured during this phase
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] Caught exception from kb3jumbled
java.lang.ExceptionInInitializerError
at kb3.bobjoromods.block.BlockRegistry.registerBlocks(BlockRegistry.java:9)
at kb3.bobjoromods.main.Main.load(Main.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.sendEventToModContainer(LoadController.java:192)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:103)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:448)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:733)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 8050
at net.minecraft.block.Block.<init>(Block.java:338)
at kb3.bobjoromods.block.DeployHouse.<init>(DeployHouse.java:9)
at kb3.bobjoromods.block.Blocks.<clinit>(Blocks.java:8)
... 34 more
2013-08-03 17:15:06 [INFO] [STDERR] cpw.mods.fml.common.LoaderException: java.lang.ExceptionInInitializerError
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:147)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:692)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213)
2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:448)
2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:733)
2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.Thread.run(Thread.java:680)
2013-08-03 17:15:06 [INFO] [STDERR] Caused by: java.lang.ExceptionInInitializerError
2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.BlockRegistry.registerBlocks(BlockRegistry.java:9)
2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.main.Main.load(Main.java:31)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:192)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:103)
2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
2013-08-03 17:15:06 [INFO] [STDERR] ... 5 more
2013-08-03 17:15:06 [INFO] [STDERR] Caused by: java.lang.ArrayIndexOutOfBoundsException: 8050
2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.block.Block.<init>(Block.java:338)
2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.DeployHouse.<init>(DeployHouse.java:9)
2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.Blocks.<clinit>(Blocks.java:8)
2013-08-03 17:15:06 [INFO] [STDERR] ... 34 more
Please help I did everything right and got no errors but it doesnt show up in the inventory. So I gave myself it (/give [tab] 2245) but it just said there is no block with that Id. And I made the id 2245
please help!
BTW im using forge 1.6.2
Please help I did everything right and got no errors but it doesnt show up in the inventory. So I gave myself it (/give [tab] 2245) but it just said there is no block with that Id. And I made the id 2245
please help!
BTW im using forge 1.6.2
For some reason, i think forge changes id's upon loading. If you have a config file, the correct id will be in it. If you dont, do system.out.println(this.blockid) in your block's constructor, and it will print out the block id into the console.
Well if you count having to remod everything as being easy but if you make a modloader mod it will work with minecraft forge so if you wanted to make a version for both without having to recode then use mod loader as forge has made them compatible with FML!!!
You will have to recode some stuff so nothings deprecated. On the plus side, everything in forge is smp compatible. So, if u only use forge methods, you dont have to worry about modloadermp amd stuff.
Yes, all modloader methods are included in forge, but are client side only.
Ok I got this really weird problem with the ore generation. I did what he said if you want to change the coords that it spawns in(i'm trying to make it more rare) but when I make a new world it just gets stuck on the Building Terrain text. Then I went to see if there was a error on the console but there is nothing. Then like 15 minutes later the error SCMowns got came up and the window closes then starts back up. Then it just crashes all over again, and Iit just keeps doing this till I turn it off. Is there another way of changing rarity? Heres the code for the Generator:
package scoutdrago3.classFilesFolder;
import java.util.Random;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import cpw.mods.fml.common.IWorldGenerator;
import cpw.mods.fml.common.IWorldGenerator;
public class WorldGeneratorWurtziteOre implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world,
IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
switch(world.provider.dimensionId){
//case -1: generateNether(world, random,chunkX*16,chunkZ*16);
case 0 : generateSurface(world, random,chunkX*44,chunkZ*26);
}
}
private void generateSurface(World world, Random random, int BlockX, int BlockZ) {
for(int i =0; i<10;i++){
int Xcoord = BlockX + random.nextInt(44);
int Zcoord = BlockZ + random.nextInt(26);
int Ycoord = random.nextInt(30);
(new WorldGenMinable(MultiMatrialMod.WurtziteOre.blockID, 5)).generate(world, random, Xcoord, Ycoord, Zcoord);
}
}
}
Ok I got this really weird problem with the ore generation. I did what he said if you want to change the coords that it spawns in(i'm trying to make it more rare) but when I make a new world it just gets stuck on the Building Terrain text. Then I went to see if there was a error on the console but there is nothing. Then like 15 minutes later the error SCMowns got came up and the window closes then starts back up. Then it just crashes all over again, and Iit just keeps doing this till I turn it off. Is there another way of changing rarity? Heres the code for the Generator:
package scoutdrago3.classFilesFolder;
import java.util.Random;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import cpw.mods.fml.common.IWorldGenerator;
import cpw.mods.fml.common.IWorldGenerator;
public class WorldGeneratorWurtziteOre implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world,
IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
switch(world.provider.dimensionId){
//case -1: generateNether(world, random,chunkX*16,chunkZ*16);
case 0 : generateSurface(world, random,chunkX*44,chunkZ*26);
}
}
private void generateSurface(World world, Random random, int BlockX, int BlockZ) {
for(int i =0; i<10;i++){
int Xcoord = BlockX + random.nextInt(44);
int Zcoord = BlockZ + random.nextInt(26);
int Ycoord = random.nextInt(30);
(new WorldGenMinable(MultiMatrialMod.WurtziteOre.blockID, 5)).generate(world, random, Xcoord, Ycoord, Zcoord);
}
}
}
Thanks
Where you have case 0, you need it to be just chunkX and chunkZ. I cant remember if its that or chunkX*16, ChunkZ*16. I wil check my code when i get home.
Basically right now you are trying to spawn ores in a chunk bigger than 16*16, which dont exist.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumhave u tried to hover over the errors and import?
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
what about the post you said "u dont want them to go to the trash"
Use @eventhandler instead of @init
I just created a half way done mod with scmowns tutorials! Thanks so much for teaching me how to do this! If you could please check it out. It should be done in a week! http://www.minecraftforum.net/topic/1918584-162forgewip-daggers-mod-v10-by-modattackz/
-ModAttackz
-dlsquared games
FINALKILL'S CODE HELPER
PROBLEM:
You put a } at the end of where you make a string for the topaz item.
And You put the imports in the main class file brackets.
Plus, You forgot to put a semi code at the end of the string for the TopazBlock.
ERRORED CODE:
public static Item Topaz}
public static Block TopazBlock
FIXED CODE:
public static Item Topaz;
(just put a semi colon instead)
public static Block TopazBlock;
(you needed a semi colon at the end)
Move your imports so that they are with all the other imports.
DESCRPTION:
The reason why it said you had errors was because you put a semi colon to end the class file. So, that means all the code for the FML initialization event was errored because it was not inside of the brackets that mark the class file.
And you put your imports in the wrong place.
Plus, you forgot the semi colon at the end of one meathod.
PASTEBIN LINK:
none needed.
Red marks the found errors in the given code.
Purple marks a java method (i.e. public, static, final, etc.).
My modding project, just credit me and let me know if you borrow my code: https://github.com/FinalKill9175/WSBIM-NEW/
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue 2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{5.2.23.737} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized Forge{7.8.1.737} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized kb3jumbled{v1.0.0} [Jumbled Mess!] (bin) Unloaded->Constructed->Pre-initialized->Errored 2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] Caught exception from kb3jumbled java.lang.ExceptionInInitializerError at kb3.bobjoromods.block.BlockRegistry.registerBlocks(BlockRegistry.java:9) at kb3.bobjoromods.main.Main.load(Main.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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.sendEventToModContainer(LoadController.java:192) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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:103) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213) at net.minecraft.client.Minecraft.startGame(Minecraft.java:448) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:733) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.ArrayIndexOutOfBoundsException: 8050 at net.minecraft.block.Block.<init>(Block.java:338) at kb3.bobjoromods.block.DeployHouse.<init>(DeployHouse.java:9) at kb3.bobjoromods.block.Blocks.<clinit>(Blocks.java:8) ... 34 more 2013-08-03 17:15:06 [INFO] [STDERR] cpw.mods.fml.common.LoaderException: java.lang.ExceptionInInitializerError 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:147) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:692) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213) 2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:448) 2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:733) 2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.Thread.run(Thread.java:680) 2013-08-03 17:15:06 [INFO] [STDERR] Caused by: java.lang.ExceptionInInitializerError 2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.BlockRegistry.registerBlocks(BlockRegistry.java:9) 2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.main.Main.load(Main.java:31) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:192) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:103) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) 2013-08-03 17:15:06 [INFO] [STDERR] ... 5 more 2013-08-03 17:15:06 [INFO] [STDERR] Caused by: java.lang.ArrayIndexOutOfBoundsException: 8050 2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.block.Block.<init>(Block.java:338) 2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.DeployHouse.<init>(DeployHouse.java:9) 2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.Blocks.<clinit>(Blocks.java:8) 2013-08-03 17:15:06 [INFO] [STDERR] ... 34 moreI can include any attachments necessary
Code please? I cant really tell whats wrong just by looking at your error :/
Everyone forgot about armour/smelting. I like your ideas either way
Heres the main class file:
package kb3.bobjoromods.main; import kb3.bobjoromods.block.BlockRegistry; import kb3.bobjoromods.crafting.Crafting; import kb3.bobjoromods.item.ItemRegistry; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; @Mod(modid="kb3jumbled",name="Jumbled Mess!",version="v1.0.0") @NetworkMod(clientSideRequired=true,serverSideRequired=false) public class Main { @Init public void load(FMLInitializationEvent e) { ItemRegistry.registerItems(); BlockRegistry.registerBlocks(); Crafting.registerCrafting(); } }package kb3.bobjoromods.block; import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class Blocks { public static Block deployHouse = new DeployHouse(8050); }package kb3.bobjoromods.block; import cpw.mods.fml.common.registry.GameRegistry; public class BlockRegistry { public static void registerBlocks() { GameRegistry.registerBlock(Blocks.deployHouse, "deployHouse"); } }package kb3.bobjoromods.block; import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class DeployHouse extends Block { public DeployHouse(int par1) { super(par1, Material.rock); } }and once again the error report for those who didnt read it
2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue 2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{5.2.23.737} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized Forge{7.8.1.737} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized kb3jumbled{v1.0.0} [Jumbled Mess!] (bin) Unloaded->Constructed->Pre-initialized->Errored 2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-08-03 17:14:56 [SEVERE] [ForgeModLoader] Caught exception from kb3jumbled java.lang.ExceptionInInitializerError at kb3.bobjoromods.block.BlockRegistry.registerBlocks(BlockRegistry.java:9) at kb3.bobjoromods.main.Main.load(Main.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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.sendEventToModContainer(LoadController.java:192) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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:103) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213) at net.minecraft.client.Minecraft.startGame(Minecraft.java:448) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:733) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.ArrayIndexOutOfBoundsException: 8050 at net.minecraft.block.Block.<init>(Block.java:338) at kb3.bobjoromods.block.DeployHouse.<init>(DeployHouse.java:9) at kb3.bobjoromods.block.Blocks.<clinit>(Blocks.java:8) ... 34 more 2013-08-03 17:15:06 [INFO] [STDERR] cpw.mods.fml.common.LoaderException: java.lang.ExceptionInInitializerError 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:147) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:692) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213) 2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:448) 2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:733) 2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.Thread.run(Thread.java:680) 2013-08-03 17:15:06 [INFO] [STDERR] Caused by: java.lang.ExceptionInInitializerError 2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.BlockRegistry.registerBlocks(BlockRegistry.java:9) 2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.main.Main.load(Main.java:31) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:192) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2013-08-03 17:15:06 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2013-08-03 17:15:06 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:597) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) 2013-08-03 17:15:06 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:103) 2013-08-03 17:15:06 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) 2013-08-03 17:15:06 [INFO] [STDERR] ... 5 more 2013-08-03 17:15:06 [INFO] [STDERR] Caused by: java.lang.ArrayIndexOutOfBoundsException: 8050 2013-08-03 17:15:06 [INFO] [STDERR] at net.minecraft.block.Block.<init>(Block.java:338) 2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.DeployHouse.<init>(DeployHouse.java:9) 2013-08-03 17:15:06 [INFO] [STDERR] at kb3.bobjoromods.block.Blocks.<clinit>(Blocks.java:8) 2013-08-03 17:15:06 [INFO] [STDERR] ... 34 moreplease help!
BTW im using forge 1.6.2
Forge. Its more commonly used, has waaaay more hooks, and is easy to use. I used to use modloader but once i switched i was glad i did
Edit: also, it allows more mods to be compatible with each other.
For some reason, i think forge changes id's upon loading. If you have a config file, the correct id will be in it. If you dont, do system.out.println(this.blockid) in your block's constructor, and it will print out the block id into the console.
Yes! Some things are different, but the basics are essentially the same.
Pretty simple. But, yes:
You will have to recode some stuff so nothings deprecated. On the plus side, everything in forge is smp compatible. So, if u only use forge methods, you dont have to worry about modloadermp amd stuff.
Yes, all modloader methods are included in forge, but are client side only.
package scoutdrago3.classFilesFolder; import java.util.Random; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import cpw.mods.fml.common.IWorldGenerator; import cpw.mods.fml.common.IWorldGenerator; public class WorldGeneratorWurtziteOre implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch(world.provider.dimensionId){ //case -1: generateNether(world, random,chunkX*16,chunkZ*16); case 0 : generateSurface(world, random,chunkX*44,chunkZ*26); } } private void generateSurface(World world, Random random, int BlockX, int BlockZ) { for(int i =0; i<10;i++){ int Xcoord = BlockX + random.nextInt(44); int Zcoord = BlockZ + random.nextInt(26); int Ycoord = random.nextInt(30); (new WorldGenMinable(MultiMatrialMod.WurtziteOre.blockID, 5)).generate(world, random, Xcoord, Ycoord, Zcoord); } } }Thanks
Where you have case 0, you need it to be just chunkX and chunkZ. I cant remember if its that or chunkX*16, ChunkZ*16. I wil check my code when i get home.
Basically right now you are trying to spawn ores in a chunk bigger than 16*16, which dont exist.