how do i go about installing the mods i make? i've used mods before, but they're all class files. if i understand this correctly, and correct me if i'm wrong, when you run a new java program somehow, the class files are then created. i was just wondering how to get the class files. i already have the thing scripted, but i'm at a bit of a loss on how to install it. help plz?
Eclipse throws me this little error when I run through eclipse.
27 achievements
195 recipes
Setting user: Player613, -
Client asked for parameter: server
LWJGL Version: 2.4.2
ModLoader 1.3.2 Initializing...
Overriding /terrain.png with /bin/terrain/CobaltOre.png @ 26. 31 left.
Failed to load mod from "mod_EveryCraft.class"
Here's My code:
package net.minecraft.src;
import java.util.Random;
public class mod_EveryCraft extends BaseMod
{
public static final Item CobaltGem = new ItemCobaltGem(2085)
.setItemName("CobaltGem").setTabToDisplayOn(CreativeTabs.tabMisc);
public static final Block oreCobalt = new EveryCraftBlockOre(123, ModLoader.addOverride("/terrain.png", "/bin/terrain/CobaltOre.png")).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("oreCobalt");
public void load()
{
CobaltGem.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/CobaltGem.png");
ModLoader.addName(CobaltGem, "Cobalt Gem");
ModLoader.registerBlock(oreCobalt);
ModLoader.addName(oreCobalt, "Cobalt Ore");
}
public String getVersion()
{
return "1.3.2";
}
}
And this:
package net.minecraft.src;
public class EveryCraftBlockOre extends Block
{
public EveryCraftBlockOre(int i, int j)
{
super(i, j, Material.rock);
}
}
Am I doing something wrong?
EDIT: It throws this as well:
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Exception occured in ModLoader
This error has been saved to C:\Users\Ryan\Desktop\Modding\jars\.\crash-reports\crash-2012-09-23_12.09.30-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT 485f9c68 --------
Generated 9/23/12 12:09 PM
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.6.0_35, Sun Microsystems Inc.
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
- Memory: 1014156232 bytes (967 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB)
- JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
- ModLoader: Mods loaded: 1
ModLoader 1.3.2
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:378)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1369)
at net.minecraft.src.ModLoader.init(ModLoader.java:944)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:186)
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.IllegalArgumentException: Slot 123 is already occupied by net.minecraft.src.BlockRedstoneLight@686963d0 when adding net.minecraft.src.EveryCraftBlockOre@5f18223d
at net.minecraft.src.Block.<init>(Block.java:268)
at net.minecraft.src.Block.<init>(Block.java:300)
at net.minecraft.src.EveryCraftBlockOre.<init>(EveryCraftBlockOre.java:7)
at net.minecraft.src.mod_EveryCraft.<clinit>(mod_EveryCraft.java:10)
... 15 more
--- END ERROR REPORT 2a990d94 ----------
Help! When I decompile minecraft with modloader it gives me these errors:
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\ModLoader.java:1369: addSound(java.lang.String,java.io.File) in net.minecraft.src.SoundPool cannot be applied to (java.lang.String,java.net.URL) soundPoolStreaming.addSound(var16, new URL(String.format("jar:%s!/%s", new Object[] {var11, var7}))); ^
src\minecraft\net\minecraft\src\ModLoader.java:1374: addSound(java.lang.String,java.io.File) in net.minecraft.src.SoundPool cannot be applied to (java.lang.String,java.net.URL) soundPoolMusic.addSound(var16, new URL(String.format("jar:%s!/%s", new Object[] {var11, var7}))); ^
src\minecraft\net\minecraft\src\ModLoader.java:1379: addSound(java.lang.String,java.io.File) in net.minecraft.src.SoundPool cannot be applied to (java.lang.String,java.net.URL) soundPoolSounds.addSound(var16, new URL(String.format("jar:%s!/%s", new Object[] {var11, var7}))); ^
src\minecraft\net\minecraft\src\ModLoader.java:1509: addSound(java.lang.String,java.io.File) in net.minecraft.src.SoundPool cannot be applied to (java.lang.String,java.net.URL) soundPoolStreaming.addSound(var12, new URL(String.format("jar:%s!/%s", new Object[] {var6, var11}))); ^
src\minecraft\net\minecraft\src\ModLoader.java:1514: addSound(java.lang.String,java.io.File) in net.minecraft.src.SoundPool cannot be applied to (java.lang.String,java.net.URL) soundPoolMusic.addSound(var12, new URL(String.format("jar:%s!/%s", new Object[] {var6, var11}))); ^
src\minecraft\net\minecraft\src\ModLoader.java:1519: addSound(java.lang.String,java.io.File) in net.minecraft.src.SoundPool cannot be applied to (java.lang.String,java.net.URL) soundPoolSounds.addSound(var12, new URL(String.format("jar:%s!/%s", new Object[] {var6, var11}))); ^
any chance of a how to spawn an entity from a custom item tutorial?
Rollback Post to RevisionRollBack
http://pcpartpicker.com/p/2kUq0
the average script-follower/lack of common sense: http://www.techtales.com/tftechs.php?m=200504#8418
windoge 8 has the saddest excuse for a BSOD, it just tells you the type of error, no stop code, no nothing, just "something went wrong, all your unsaved work has now been lost to the void that is volatile memory"
I followed you're armor tutorial, but its not giving me the armor values I want, or the textures I made. It doesn't find the textrue to render in game, and it finds the wrong item sprite. When I instead define the armor items as an ItemArmor, instead of the one i created, and use EnumArmorMaterial.DIAMOND, it works, and gives me the right textures, but then I can't edit the armor values without editing the base minecraft classes.
Any help would be great.
...For some reason, when ever I copy your code into Eclipse and edit it all (even before I do so) Eclipse bugs out on me and points out a bunch of errors to me...So are there a bunch of errors in this code that I need to fix (it always says that I need to add another ")", but I never know where to put it, even if I have to....
Could you please revise your code on this tutorial, fix it if needed, and make it simpler where possible, since your tutorials are all on one page, easy to find, and have everything I need...
(Seriously, I've tried almost all of your tutorials, from blocks to items to armour, and then I go to an older modloader tutorial for armor, and it doesn't shoot up any errors)
If you are using mcp then just run the recompile file and it tells you the errors and how to fix them.
I'm trying to make my item be dropped by tall grass, but it keeps on saying this:
src\minecraft\net\minecraft\src\BlockTallGrass.java:54: cannot find symbol
symbol : variable grassClippings
location: class net.minecraft.src.Item
return Item.grassClippings.shiftedIndex;
grassClippings is the item though.
Found the error! Something cannot drop 2 different items.
Never mind, that wasn't the problem. So I still need help. I think it's because I created the grassClippings items with modloader, but tall grass is vanilla.
Just for now I changed tall grass back to normal and made a recipe that is 1 dirt makes 4 grass clippings. Recompiling worked fine, but the game crashed when I tested it. Here's the crash report:
---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3
Time: 05/01/13 5:13 PM
Description: ModLoader has failed to initialize.
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.Character
at net.minecraft.src.CraftingManager.func_92103_a(CraftingManager.java:168)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:524)
at net.minecraft.src.mod_AWholeNewGame.load(mod_AWholeNewGame.java:17)
at net.minecraft.src.ModLoader.init(ModLoader.java:960)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:93)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
at net.minecraft.src.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:41)
at net.minecraft.client.Minecraft.run(Minecraft.java:741)
at java.lang.Thread.run(Thread.java:662)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.6
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.6.0_25, Sun Microsystems Inc.
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
Memory: 1035568896 bytes (987 MB) / 1070399488 bytes (1020 MB) up to 1070399488 bytes (1020 MB)
JVM Flags: 3 total; -Xincgc -Xms1024M -Xmx1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.4.6
mod_AWholeNewGame 0.1
The Meaning of Life, the Universe, and Everything.
Location:
Tamriel
Join Date:
3/25/2012
Posts:
46
Minecraft:
epicman987
Member Details
Can you make a tutorial of how to make a chest w/ modloader?
Rollback Post to RevisionRollBack
I used to be an adventurer like you, then I took an arrow to the knee. That's when I also noticed someone stole my sweet roll. I took a vow that day to become a City Guard and stop petty crimes, and annoy the crap out of you Mr. Fancy Adventurer.
do you create it in the src, or bin, or eclipse?
195 recipes
Setting user: Player613, -
Client asked for parameter: server
LWJGL Version: 2.4.2
ModLoader 1.3.2 Initializing...
Overriding /terrain.png with /bin/terrain/CobaltOre.png @ 26. 31 left.
Failed to load mod from "mod_EveryCraft.class"
Am I doing something wrong?
EDIT: It throws this as well:
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Exception occured in ModLoader
This error has been saved to C:\Users\Ryan\Desktop\Modding\jars\.\crash-reports\crash-2012-09-23_12.09.30-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.
--- BEGIN ERROR REPORT 485f9c68 --------
Generated 9/23/12 12:09 PM
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.6.0_35, Sun Microsystems Inc.
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
- Memory: 1014156232 bytes (967 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB)
- JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
- ModLoader: Mods loaded: 1
ModLoader 1.3.2
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:378)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1369)
at net.minecraft.src.ModLoader.init(ModLoader.java:944)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:186)
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.IllegalArgumentException: Slot 123 is already occupied by net.minecraft.src.BlockRedstoneLight@686963d0 when adding net.minecraft.src.EveryCraftBlockOre@5f18223d
at net.minecraft.src.Block.<init>(Block.java:268)
at net.minecraft.src.Block.<init>(Block.java:300)
at net.minecraft.src.EveryCraftBlockOre.<init>(EveryCraftBlockOre.java:7)
at net.minecraft.src.mod_EveryCraft.<clinit>(mod_EveryCraft.java:10)
... 15 more
--- END ERROR REPORT 2a990d94 ----------
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\ModLoader.java:1369: addSound(java.lang.String,java.io.File) in net.minecraft.src.SoundPool cannot be applied to (java.lang.String,java.net.URL)
soundPoolStreaming.addSound(var16, new URL(String.format("jar:%s!/%s", new Object[] {var11, var7})));
^
src\minecraft\net\minecraft\src\ModLoader.java:1374: addSound(java.lang.String,java.io.File) in net.minecraft.src.SoundPool cannot be applied to (java.lang.String,java.net.URL)
soundPoolMusic.addSound(var16, new URL(String.format("jar:%s!/%s", new Object[] {var11, var7})));
^
src\minecraft\net\minecraft\src\ModLoader.java:1379: addSound(java.lang.String,java.io.File) in net.minecraft.src.SoundPool cannot be applied to (java.lang.String,java.net.URL)
soundPoolSounds.addSound(var16, new URL(String.format("jar:%s!/%s", new Object[] {var11, var7})));
^
src\minecraft\net\minecraft\src\ModLoader.java:1509: addSound(java.lang.String,java.io.File) in net.minecraft.src.SoundPool cannot be applied to (java.lang.String,java.net.URL)
soundPoolStreaming.addSound(var12, new URL(String.format("jar:%s!/%s", new Object[] {var6, var11})));
^
src\minecraft\net\minecraft\src\ModLoader.java:1514: addSound(java.lang.String,java.io.File) in net.minecraft.src.SoundPool cannot be applied to (java.lang.String,java.net.URL)
soundPoolMusic.addSound(var12, new URL(String.format("jar:%s!/%s", new Object[] {var6, var11})));
^
src\minecraft\net\minecraft\src\ModLoader.java:1519: addSound(java.lang.String,java.io.File) in net.minecraft.src.SoundPool cannot be applied to (java.lang.String,java.net.URL)
soundPoolSounds.addSound(var12, new URL(String.format("jar:%s!/%s", new Object[] {var6, var11})));
^
http://pcpartpicker.com/p/2kUq0
the average script-follower/lack of common sense: http://www.techtales.com/tftechs.php?m=200504#8418
windoge 8 has the saddest excuse for a BSOD, it just tells you the type of error, no stop code, no nothing, just "something went wrong, all your unsaved work has now been lost to the void that is volatile memory"
Any help would be great.
If you are using mcp then just run the recompile file and it tells you the errors and how to fix them.
src\minecraft\net\minecraft\src\BlockTallGrass.java:54: cannot find symbol
symbol : variable grassClippings
location: class net.minecraft.src.Item
return Item.grassClippings.shiftedIndex;
grassClippings is the item though.
Found the error! Something cannot drop 2 different items.Never mind, that wasn't the problem. So I still need help. I think it's because I created the grassClippings items with modloader, but tall grass is vanilla.
Just for now I changed tall grass back to normal and made a recipe that is 1 dirt makes 4 grass clippings. Recompiling worked fine, but the game crashed when I tested it. Here's the crash report:
// Don't be sad, have a hug! <3
Time: 05/01/13 5:13 PM
Description: ModLoader has failed to initialize.
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.Character
at net.minecraft.src.CraftingManager.func_92103_a(CraftingManager.java:168)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:524)
at net.minecraft.src.mod_AWholeNewGame.load(mod_AWholeNewGame.java:17)
at net.minecraft.src.ModLoader.init(ModLoader.java:960)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:93)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
at net.minecraft.src.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:41)
at net.minecraft.client.Minecraft.run(Minecraft.java:741)
at java.lang.Thread.run(Thread.java:662)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.6
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.6.0_25, Sun Microsystems Inc.
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
Memory: 1035568896 bytes (987 MB) / 1070399488 bytes (1020 MB) up to 1070399488 bytes (1020 MB)
JVM Flags: 3 total; -Xincgc -Xms1024M -Xmx1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: Start[net.minecraft.src.IPlayerUsage, MinecraftFakeLauncher, ThreadShutdown, ...]
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
ModLoader: Mods loaded: 2
ModLoader 1.4.6
mod_AWholeNewGame 0.1