Hey, I wanted to post here letting you know that I'm going to be using your mod in a modpack I'm making. I'll link it to this post when I release it later this week. Thanks!
Thank you so much for making this mod! I want to use it in a modpack I'm currently developing and the curse page told me to notify you by posting here about it. The pack will be called Minecraft Millionaire and will be hosted on curse. I'll upload it and update this thread when I do later this week. Thanks!
So I tried out both of the suggestions that were posted so far, and the mod started to work.
(on an unrelated note, I got another error, but fixed it by adding .setName("name") after the block declaration. I guess there are a lot of necessary steps needed to satisfy Minecraft architecture)
Hi, I'm relatively new to minecraft modding (but not programming) and I've been experiencing an error when trying to create a block with modloader for 1.3.1. I made the block first and added it to modloader, and when I tested it by trying to run minecraft, it gave me the error "couldn't load mod_..." and the game crashed.
Attempting to debug, I commented out piece by piece of the code I'd written, trying to see where it would start working. At this point, as I ask for help, I've commented out everything from the block's class file except for the constuctor:
protected BlockTurretAir(int par1) {
super(par1, Material.rock);
}
and everything from the mod_... file except for the block's instantiation:
public static final Block artair = (new BlockTurretAir(9005));
For some odd reason, it still crashes, and this was the error report that was given:
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:353)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1344)
at net.minecraft.src.ModLoader.init(ModLoader.java:919)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:161)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:86)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:404)
at net.minecraft.client.Minecraft.run(Minecraft.java:724)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 9005
at net.minecraft.src.Block.<init>(Block.java:266)
at net.minecraft.src.BlockTurretAir.<init>(BlockTurretAir.java:10)
at net.minecraft.src.mod_WarExtras.<clinit>(mod_WarExtras.java:12)
... 15 more
I was hoping someone could help me out with this issue. Thanks!
0
Hey, I wanted to post here letting you know that I'm going to be using your mod in a modpack I'm making. I'll link it to this post when I release it later this week. Thanks!
0
Hi, I'm going to be adding your mod to a modpack I'm currently working on. I'll link it back here once I publicly release it later this week. Thanks!
0
Thank you so much for making this mod! I want to use it in a modpack I'm currently developing and the curse page told me to notify you by posting here about it. The pack will be called Minecraft Millionaire and will be hosted on curse. I'll upload it and update this thread when I do later this week. Thanks!
0
[optional]What do you think of the server?: It seems quite nice up to this point. Hope it gets better for me as a member
0
So I tried out both of the suggestions that were posted so far, and the mod started to work.
(on an unrelated note, I got another error, but fixed it by adding .setName("name") after the block declaration. I guess there are a lot of necessary steps needed to satisfy Minecraft architecture)
Well, thanks!
0
Attempting to debug, I commented out piece by piece of the code I'd written, trying to see where it would start working. At this point, as I ask for help, I've commented out everything from the block's class file except for the constuctor:
and everything from the mod_... file except for the block's instantiation:
public static final Block artair = (new BlockTurretAir(9005));
For some odd reason, it still crashes, and this was the error report that was given:
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:353)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1344)
at net.minecraft.src.ModLoader.init(ModLoader.java:919)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:161)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:86)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:404)
at net.minecraft.client.Minecraft.run(Minecraft.java:724)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 9005
at net.minecraft.src.Block.<init>(Block.java:266)
at net.minecraft.src.BlockTurretAir.<init>(BlockTurretAir.java:10)
at net.minecraft.src.mod_WarExtras.<clinit>(mod_WarExtras.java:12)
... 15 more
I was hoping someone could help me out with this issue. Thanks!