warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Flint.java:5: error: mod_Flint is not abstra
ct and does not override abstract method load() in BaseMod
public class mod_Flint extends BaseMod
^
1 error
1 warning
mod_Flint File:
package net.minecraft.src;
import net.minecraft.client.Minecraft;
public class mod_Flint extends BaseMod
{
public mod_Flint()
{
FlintSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/DaSnipeKid/Flintsword.png");
ModLoader.AddName(FlintSword, "Flint Sword");
ModLoader.AddRecipe(new ItemStack(FlintSword, 1), new Object[] {" s ", " s ", " | ", Character.valueOf('s'), Item.seeds, Character.valueOf('|'), Item.stick});
}
static
{
new ItemSword(1004, EnumToolMaterial.EMERALD).setItemName("5");
}
public String Version()
{
return "1.0.0";
}
public static Item FlintSword;
}
Please help me i dont understand whats wrong.
Please,next time put in code form
And make sure that your code is updated
1.0.0 code has change some abit
Check out my post above
What the ....
What i do wrong if i use 1.0.0 codes?
There's nothing wrong if you use 1.0.0 code
but it seems like ur code wasnt 1.0.0 code
u can check out this tutorial thread on the post 'How to fix the problem'(ModLoader)
I'm getting errors.
This is the error i get when i do startclient.
Mods loaded: 1
ModLoader 1.0.0
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 141ccf11 --------
Generated 11/28/11 8:17 PM
Minecraft: Minecraft 1.0.0
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_26, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce 6150SE nForce 430/PCI/SSE2 version 2.1.2, NVIDIA Corporation
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:265)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1214)
at net.minecraft.src.ModLoader.init(ModLoader.java:733)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
at net.minecraft.client.Minecraft.run(Minecraft.java:613)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 400
at net.minecraft.src.Block.<init>(Block.java:209)
at net.minecraft.src.Block.<init>(Block.java:238)
at net.minecraft.src.ExpiteOre.<init>(ExpiteOre.java:10)
at net.minecraft.src.mod_ExpiteOre.<clinit>(mod_ExpiteOre.java:35)
... 15 more
--- END ERROR REPORT affd9111 ----------
This is my mod code
package net.minecraft.src;
public class mod_ExpiteOre extends BaseMod
{
public static Block ExpiteOre;
public String Version()
{
return "Expite Ore v1";
}
public mod_ExpiteOre()
{
ModLoader.RegisterBlock(ExpiteOre);
ExpiteOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/Blocks/ExpiteOre.png");
ModLoader.AddName(ExpiteOre, "Expite Ore");
}
@Override
public String getVersion() {
// TODO Auto-generated method stub
return null;
}
@Override
public void load() {
// TODO Auto-generated method stub
}
static
{
new ExpiteOre(400, 0).setHardness(10F).setResistance(10F).setLightValue(0F).setBlockName("ExpiteOre");
}
}
And this is my Block code
package net.minecraft.src;
import java.util.Random;
public class ExpiteOre extends Block
{
public ExpiteOre(int i, int j)
{
super(i, j, Material.iron);
}
public int idDropped(int i, Random random)
{
return mod_ExpiteOre.ExpiteOre.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
Thanks for the tutorials, they (and you, in the process) helped me start with Minecraft modding.
Just a question, though. Can you put a tutorial on how to set up a new EnumToolMaterials.java file? (Like, for example, "EnumTools<Mod>.java") I have found out that, with all my mods installed, I cannot edit the EnumToolMaterials.java since it is a base file.
Everytime I TRY to make a custom EnumTools, though, I get this error.
required: int,EnumToolMaterial
found: int,EnumKoLMod
reason: actual argument EnumKoLMod cannot be converted to EnumToolMaterial by me
thod invocation conversion
Thanks for the tutorials, they (and you, in the process) helped me start with Minecraft modding.
Just a question, though. Can you put a tutorial on how to set up a new EnumToolMaterials.java file? (Like, for example, "EnumTools<Mod>.java") I have found out that, with all my mods installed, I cannot edit the EnumToolMaterials.java since it is a base file.
Everytime I TRY to make a custom EnumTools, though, I get this error.
required: int,EnumToolMaterial
found: int,EnumKoLMod
reason: actual argument EnumKoLMod cannot be converted to EnumToolMaterial by me
thod invocation conversion
I used to know this as Modloader used to support this but sense it doesn't anymore I have to find a new way around it. I will pm you when I find how to
package net.minecraft.src;
import java.util.Random;
public class BlockNamehere extends Block
{
public BlockNamehere(int i, int j)
{
super(i, j, Material.grass);
}
public int idDropped(int i, Random random)
{
return mod_Namehere.Namehere.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
//Frogbite99 Tutorials
//Please like the topic if you learned something
mod_Namehere.java
package net.minecraft.src;
public class mod_Namehere extends BaseMod
{
public static Block Namehere;
public String Version()
{
return "1.0.0 - Frogbite99 Tutorials";
}
public mod_Namehere()
{
ModLoader.RegisterBlock(Namehere);
Namehere.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Blocks/Namehere.png");
ModLoader.AddName(Namehere, "Namehere");
ModLoader.AddRecipe(new ItemStack(Namehere, 1), new Object[] {"###", "###", "###", Character.valueOf('#'), Item.seeds});
}
static
{
new BlockNamehere(210, 0).setHardness(1.0F).setResistance(1.0F).setLightValue(1.0F).setBlockName("1");
}
}
//Frogbite99 Tutorials
//Please like the topic if you learned something
Help
Change everything with Namehere
setHardness(1.0F) || How long it takes to break the block
setResistance(1.0F) || How it effects towards explosives
setLightValue(1.0F) || How much the block lights up
setBlockName("1") || Put whatever you want here ("")
(210, 0) || The ID
("/terrain.png", "/Blocks/Namehere.png"); || This goes in the C:\mcp44\eclipse\Client\bin
Items + ModLoader
ItemNamehere.java
package net.minecraft.src;
public class ItemNamehere extends Item
{
public ItemNamehere (int i)
{
super(i);
maxStackSize = 64;
}
}
//Frogbite99 Tutorials
//Please like the topic if you learned something
mod_Namehere
package net.minecraft.src;
public class mod_Namehere extends BaseMod
{
public static Item Namehere;
public String Version()
{
return "1.0.0 - Frogbite99 Tutorials";
}
public mod_Namehere()
{
Namehere.iconIndex = ModLoader.addOverride("/gui/items.png", "/Items/Namehere.png");
ModLoader.AddName(Namehere, "Namehere");
ModLoader.AddRecipe(new ItemStack(Namehere, 1), new Object[] {"###", "###", "###", Character.valueOf('#'), Item.seeds});
}
static
{
new Item(1000).setItemName("1");
}
}
//Frogbite99 Tutorials
//Please like the topic if you learned something
Help
Change everything with Namehere
("/gui/items.png", "/Items/Namehere.png") || This goes in the C:\mcp44\eclipse\Client\bin
(1000) || The ID
Food + ModLoader
mod_Namehere.java
package net.minecraft.src;
public class mod_Namehere extends BaseMod
{
public static Item Namehere;
public String Version()
{
return "1.0.0 - Frogbite99 Tutorials";
}
public mod_Namehere()
{
Namehere.iconIndex = ModLoader.addOverride("/gui/items.png", "/Items/Namehere.png");
ModLoader.AddName(Namehere, "Namehere");
}
static
{
new ItemFood(1000, 10, true).setItemName("1");
}
}
//Frogbite99 Tutorials
//Please like the topic if you learned something
Help
Change everything with Namehere
("/gui/items.png", "/Items/Namehere.png") || This goes in the C:\mcp44\eclipse\Client\bin
(1000, 10, true) || ID, How much it heals(10 = 5), true/false
Armor + ModLoader
mod_Namehere.java
package net.minecraft.src;
import net.minecraft.client.Minecraft;
public class mod_Namehere extends BaseMod
{
public mod_Namehere()
{
NamehereHelmet.iconIndex = ModLoader.addOverride("/gui/items.png", "/Armor/Nameherehelmet.png");
NamehereBody.iconIndex = ModLoader.addOverride("/gui/items.png", "/Armor/Nameherebody.png");
NamehereLegs.iconIndex = ModLoader.addOverride("/gui/items.png", "/Armor/Nameherelegs.png");
NamehereBoots.iconIndex = ModLoader.addOverride("/gui/items.png", "/Armor/Namehereboots.png");
ModLoader.AddName(NamehereHelmet, "Namehere Helmet");
ModLoader.AddName(NamehereBody, "Namehere Chestplate");
ModLoader.AddName(NamehereLegs, "Namehere Leggings");
ModLoader.AddName(NamehereBoots, "Namehere Boots");
ModLoader.AddRecipe(new ItemStack(NamehereHelmet, 1), new Object[] {"sss", "s s", " ", Character.valueOf('s'), Item.seeds});
ModLoader.AddRecipe(new ItemStack(NamehereBody, 1), new Object[] {"s s", "sss", "sss", Character.valueOf('s'), Item.seeds});
ModLoader.AddRecipe(new ItemStack(NamehereLegs, 1), new Object[] {"sss", "s s", "s s", Character.valueOf('s'), Item.seeds});
ModLoader.AddRecipe(new ItemStack(NamehereBoots, 1), new Object[] {" ", "s s", "s s", Character.valueOf('s'), Item.seeds});
}
static
{
new ItemArmor(1000, 3, ModLoader.AddArmor("NamehereArmor"), 0).setItemName("1");
new ItemArmor(1001, 3, ModLoader.AddArmor("NamehereArmor"), 1).setItemName("2");
new ItemArmor(1002, 3, ModLoader.AddArmor("NamehereArmor"), 2).setItemName("3");
new ItemArmor(1003, 3, ModLoader.AddArmor("NamehereArmor"), 3).setItemName("4");
}
public String Version()
{
return "1.0.0 - Frogbite99 Tutorials";
}
public static Item NamehereHelmet;
public static Item NamehereBody;
public static Item NamehereLegs;
public static Item NamehereBoots;
}
//Frogbite99 Tutorials
//Please like the topic if you learned something
Help
Change everything with Namehere
("/gui/items.png", "/Armor/Nameherehelmet.png") || This goes in the C:\mcp44\eclipse\Client\bin
(1000, 3, || ID, 3 = diamond material
1 = wood || 2 = stone || 3 = diamond || 4 = gold
Tools + ModLoader
mod_Namehere.java
package net.minecraft.src;
import net.minecraft.client.Minecraft;
public class mod_Namehere extends BaseMod
{
public mod_Namehere()
{
NameherePickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/Tools/Nameherepick.png");
NamehereShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/Tools/Nameherespade.png");
NamehereAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/Tools/Namehereaxe.png");
NamehereHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/Tools/Nameherehoe.png");
NamehereSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/Tools/Nameheresword.png");
ModLoader.AddName(NameherePickaxe, "Namehere Pickaxe");
ModLoader.AddName(NamehereShovel, "Namehere Shovel");
ModLoader.AddName(NamehereAxe, "Namehere Axe");
ModLoader.AddName(NamehereHoe, "Namehere Hoe");
ModLoader.AddName(NamehereSword, "Namehere Sword");
ModLoader.AddRecipe(new ItemStack(NameherePickaxe, 1), new Object[] {"sss", " | ", " | ", Character.valueOf('s'), Item.seeds, Character.valueOf('|'), Item.stick});
ModLoader.AddRecipe(new ItemStack(NamehereShovel, 1), new Object[] {" s ", " | ", " | ", Character.valueOf('s'), Item.seeds, Character.valueOf('|'), Item.stick});
ModLoader.AddRecipe(new ItemStack(NamehereAxe, 1), new Object[] {"ss ", "s| ", " | ", Character.valueOf('s'), Item.seeds, Character.valueOf('|'), Item.stick});
ModLoader.AddRecipe(new ItemStack(NamehereHoe, 1), new Object[] {"ss ", " | ", " | ", Character.valueOf('s'), Item.seeds, Character.valueOf('|'), Item.stick});
ModLoader.AddRecipe(new ItemStack(NamehereSword, 1), new Object[] {" s ", " s ", " | ", Character.valueOf('s'), Item.seeds, Character.valueOf('|'), Item.stick});
}
static
{
new ItemPickaxe(1000, EnumToolMaterial.EMERALD).setItemName("1");
new ItemSpade(1001, EnumToolMaterial.EMERALD).setItemName("2");
new ItemAxe(1002, EnumToolMaterial.EMERALD).setItemName("3");
new ItemHoe(1003, EnumToolMaterial.EMERALD).setItemName("4");
new ItemSword(1004, EnumToolMaterial.EMERALD).setItemName("5");
}
public String Version()
{
return "1.0.0 - Frogbite99 Tutorials";
}
public static Item NameherePickaxe;
public static Item NamehereShovel;
public static Item NamehereAxe;
public static Item NamehereHoe;
public static Item NamehereSword;
}
//Frogbite99 Tutorials
//Please like the topic if you learned something
Help
Change everything with Namehere
("/gui/items.png", "/Armor/Nameherehelmet.png") || This goes in the C:\mcp44\eclipse\Client\bin
Generating Ores + ModLoader
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < Rarity; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(Height);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Namehere.Namehere.blockID, Vein Size)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
Help
Rarity= How rare the ore is
Height = Height above bedrock
Vein Size = How many it generates together
Put this outside of all ModLoader coding/variables
Hi how do you define blocks in the terrain.png I don't understand where to put the block texture, when I started minecraft after recompiling(No Errors) I got this error:
Error:
Mods loaded: 1
ModLoader 1.0.0
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 141ccf11 --------
Generated 12/3/11 12:01 PM
Minecraft: Minecraft 1.0.0
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_25, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics version 2.1.0 - Build 8.15.10.2202, Intel
java.lang.RuntimeException: java.lang.Exception: Image not found: /Blocks/RubyOre.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1354)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:1063)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:26)
at net.minecraft.client.Minecraft.func_40001_x(Minecraft.java:729)
at net.minecraft.client.Minecraft.run(Minecraft.java:627)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.Exception: Image not found: /Blocks/RubyOre.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1024)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1346)
... 5 more
--- END ERROR REPORT 25599c5b ----------
mod_GemCraft:
package net.minecraft.src;
public class mod_GemCraft extends BaseMod
{
public static Block rubyOre;
public String Version()
{
return "1.0.0";
}
public mod_GemCraft()
{
ModLoader.RegisterBlock(rubyOre);
rubyOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Blocks/grass.png");
ModLoader.AddName(rubyOre, "rubyOre");
ModLoader.AddRecipe(new ItemStack(rubyOre, 1), new Object[] {"###", "###", "###", Character.valueOf('#'), Block.dirt});
}
static
{
new BlockrubyOre(210, 0).setHardness(1.0F).setResistance(1.0F).setLightValue(1.0F).setBlockName("1");
}
@Override
public String getVersion() {
// TODO Auto-generated method stub
return null;
}
@Override
public void load() {
// TODO Auto-generated method stub
}
}
BlockrubyOre:
package net.minecraft.src;
import java.util.Random;
public class BlockrubyOre extends Block
{
public BlockrubyOre(int i, int j)
{
super(i, j, Material.grass);
}
public int idDropped(int i, Random random)
{
return mod_GemCraft.rubyOre.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
I got everything working but then when i started my client this came out. Does anyone know whats the problem?
The Error:
--- BEGIN ERROR REPORT 141ccf11 --------
Generated 12/3/11 10:00 AM
Minecraft: Minecraft 1.0.0
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_01, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Quadro NVS 290/PCI/SSE2 version 3.3.0, NVIDIA Corporation
java.lang.StringIndexOutOfBoundsException: String index out of range: 6
at java.lang.String.charAt(String.java:695)
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:300)
at net.minecraft.src.ModLoader.AddRecipe(ModLoader.java:372)
at net.minecraft.src.mod_Tin.<init>(mod_Tin.java:17)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:265)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1214)
at net.minecraft.src.ModLoader.init(ModLoader.java:733)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
at net.minecraft.client.Minecraft.run(Minecraft.java:613)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 2b5171 ----------
My mod_Tin file:
package net.minecraft.src;
public class mod_Tin extends BaseMod
{
public static final Item Tin = new Item(31415).setItemName("Tin");
public String Version()
{
return "1.0.0";
}
public mod_Tin()
{
Tin.iconIndex = ModLoader.addOverride("/gui/items.png", "/DaSnipeKid/Food/Tin.png");
ModLoader.AddName(Tin, "Tin");
ModLoader.AddRecipe(new ItemStack(Tin, 1), new Object[] {"", "x x", " x ", Character.valueOf('x'), Item.seeds});
}
@Override
public String getVersion() {
return null;
}
@Override
public void load() {
}
}
My ItemTin file:
package net.minecraft.src;
import java.util.Random;
public class ItemTin extends Item
{
public ItemTin (int i)
{
super(i);
maxStackSize = 4;
}
}
Try using this
package net.minecraft.src;
public class mod_Tin extends BaseMod
{
public static final Item Tin = new Item(31415).setItemName("Tin");
public String Version()
{
return "1.0.0";
}
public mod_Tin()
{
Tin.iconIndex = ModLoader.addOverride("/gui/items.png", "/DaSnipeKid/Food/Tin.png");
ModLoader.AddName(Tin, "Tin");
ModLoader.AddRecipe(new ItemStack(Tin, 1), new Object[] {" ", "x x", " x ", Character.valueOf('x'), Item.seeds});
}
@Override
public String getVersion() {
return null;
}
@Override
public void load() {
}
}
== MCP v5.0 ==
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\EntityMpcreature.java:3: net.minecraft.src.Entit
yMpcreature is not abstract and does not override abstract method getMaxHealth()
in net.minecraft.src.EntityLiving
public class EntityMpcreature extends EntityCreature
^
src\minecraft\net\minecraft\src\mod_Mpcreature.java:6: net.minecraft.src.mod_Mpc
reature is not abstract and does not override abstract method load() in net.mine
craft.src.BaseMod
public class mod_Mpcreature extends BaseMod
^
2 errors
my mod_class
package net.minecraft.src;
import java.lang.reflect.Method;
import java.util.Map;
public class mod_Mpcreature extends BaseMod
{
public mod_Mpcreature()
{
ModLoader.RegisterEntityID(EntityMpcreature.class, "Mpcreature", ModLoader.getUniqueEntityId());
ModLoader.AddSpawn(EntityMpcreature.class, 2, 4, 8, EnumCreatureType.creature);
}
public void AddRenderer(Map map)
{
map.put(EntityMpcreature.class, new RenderBiped(new ModelBiped(), 0.5F));
}
public String Version()
{
return "1.0.0 mo'mobs";
}
}
entity code
package net.minecraft.src;
public class EntityMpcreature extends EntityCreature
{
public EntityMpcreature(World world)
{
super(world);
texture = "/mob/Mpcreature.png";
moveSpeed = 1.0F;
isImmuneToFire = true;
health = 1;
}
protected int getDropItemId()
{
return Item.appleRed.shiftedIndex;
}
public boolean canBreatheUnderwater()
{
return true;
}
protected boolean canDespawn()
{
return false;
}
public ItemStack getHeldItem()
{
return defaultHeldItem;
}
private static final ItemStack defaultHeldItem;
static
{
defaultHeldItem = new ItemStack(Item.swordGold, 1);
}
}
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"
Generated 12/4/11 4:04 PM
Minecraft: Minecraft 1.0.0
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_01, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: ATI Mobility Radeon HD 5470 version 2.1.9117, ATI Technologies Inc.
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:265)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1214)
at net.minecraft.src.ModLoader.init(ModLoader.java:733)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
at net.minecraft.client.Minecraft.run(Minecraft.java:613)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1005
at net.minecraft.src.Block.<init>(Block.java:209)
at net.minecraft.src.Block.<init>(Block.java:238)
at net.minecraft.src.BlockCarbonOre.<init>(BlockCarbonOre.java:10)
at net.minecraft.src.mod_cf.<clinit>(mod_cf.java:55)
... 15 more
--- END ERROR REPORT ea624773 ----------
mod_cf
package net.minecraft.src;
import net.minecraft.client.Minecraft;
import java.util.*;
public class mod_cf extends BaseMod
{
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 5; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(25);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_cf.CarbonOre.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public mod_cf()
{
NameherePickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/Tools/cfPick.png");
NamehereShovel.iconIndex = ModLoader.addOverride("/gui/items.png", "/Tools/cfShovel.png");
NamehereAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/Tools/cfAxe.png");
NamehereHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/Tools/cfHoe.png");
NamehereSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/Tools/cfSword.png");
NamehereGem.iconIndex = ModLoader.addOverride("/gui/items.png", "/Tools/cfGem.png");
CarbonOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Tools/ore.png");
ModLoader.AddName(NameherePickaxe, "Carbon Fiber Pickaxe");
ModLoader.AddName(NamehereShovel, "Carbon Fiber Shovel");
ModLoader.AddName(NamehereAxe, "Carbon Fiber Axe");
ModLoader.AddName(NamehereHoe, "Carbon Fiber Hoe");
ModLoader.AddName(NamehereSword, "Carbon Fiber Sword");
ModLoader.AddName(NamehereGem, "Carbon Fiber");
ModLoader.AddRecipe(new ItemStack(NameherePickaxe, 1), new Object[] {"sss", " | ", " | ", Character.valueOf('s'), NamehereGem, Character.valueOf('|'), Item.stick});
ModLoader.AddRecipe(new ItemStack(NamehereShovel, 1), new Object[] {" s ", " | ", " | ", Character.valueOf('s'), NamehereGem, Character.valueOf('|'), Item.stick});
ModLoader.AddRecipe(new ItemStack(NamehereAxe, 1), new Object[] {"ss ", "s| ", " | ", Character.valueOf('s'), NamehereGem, Character.valueOf('|'), Item.stick});
ModLoader.AddRecipe(new ItemStack(NamehereHoe, 1), new Object[] {"ss ", " | ", " | ", Character.valueOf('s'), NamehereGem, Character.valueOf('|'), Item.stick});
ModLoader.AddRecipe(new ItemStack(NamehereSword, 1), new Object[] {" s ", " s ", " | ", Character.valueOf('s'), NamehereGem, Character.valueOf('|'), Item.stick});
}
public String Version()
{
return "1.0.0 - Frogbite99 Tutorials";
}
public static Item NameherePickaxe = new ItemPickaxe(1000, EnumToolMaterial.EMERALD).setItemName("Carbon Fiber Pickaxe");
public static Item NamehereShovel = new ItemSpade(1001, EnumToolMaterial.EMERALD).setItemName("Carbon Fiber Shovel");
public static Item NamehereAxe = new ItemAxe(1002, EnumToolMaterial.EMERALD).setItemName("Carbon Fiber Axe");
public static Item NamehereHoe = new ItemHoe(1003, EnumToolMaterial.EMERALD).setItemName("Carbon Fiber Hoe");
public static Item NamehereSword = new ItemSword(1004, EnumToolMaterial.EMERALD).setItemName("Carbon Fiber Sword");
public static Item NamehereGem = new ItemCarbonFiber(1004).setItemName("CarbonFiber");
public static Block CarbonOre = new BlockCarbonOre(1005, 0).setHardness(0.7F).setResistance(5F).setBlockName("Carbon Ore");
@Override
public String getVersion() {
// TODO Auto-generated method stub
return null;
}
@Override
public void load() {
// TODO Auto-generated method stub
}
}
//Frogbite99 Tutorials
//Please like the topic if you learned something
BlockCarbonOre
package net.minecraft.src;
import java.util.Random;
public class BlockCarbonOre extends Block
{
public BlockCarbonOre(int i, int j)
{
super(i, j, Material.grass);
}
public int idDropped(int i, Random random)
{
return mod_cf.CarbonOre.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
}
ItemCarbonFiber
package net.minecraft.src;
public class ItemCarbonFiber extends Item
{
public ItemCarbonFiber (int i)
{
super(i);
maxStackSize = 16;
}
}
//Frogbite99 Tutorials
//Please like the topic if you learned something
And one more thing i made another mod, in eclipse when i run it, it does not give me any errors. when i reobf and put it in the minecraft.jar file and try to run it, it give me an error which shows and went into back screen very fast! so i cant even see the error. plss help mee..
I just want everyone to know. I am taking a break from minecraft. I have things in my life that are difficult. So I need a break for a week or two. I am sorry
Mods loaded: 1
ModLoader 1.0.0
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 141ccf11 --------
Generated 12/4/11 7:53 PM
Minecraft: Minecraft 1.0.0
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_26, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce 6150SE nForce 430/PCI/SSE2 version 2.1.2, NVIDIA Corporation
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:265)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1214)
at net.minecraft.src.ModLoader.init(ModLoader.java:733)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:162)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:104)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:42)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:314)
at net.minecraft.client.Minecraft.run(Minecraft.java:613)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 400
at net.minecraft.src.Block.<init>(Block.java:209)
at net.minecraft.src.Block.<init>(Block.java:238)
at net.minecraft.src.ExpiteOre.<init>(ExpiteOre.java:10)
at net.minecraft.src.mod_ExpiteOre.<clinit>(mod_ExpiteOre.java:5)
... 15 more
--- END ERROR REPORT d324088 ----------
I already posted my code look throught the posts (start from here back). I don't expect frogbite to respond but if another person could please help.
Please,next time put in code form
And make sure that your code is updated
1.0.0 code has change some abit
Check out my post above
There's nothing wrong if you use 1.0.0 code
but it seems like ur code wasnt 1.0.0 code
u can check out this tutorial thread on the post 'How to fix the problem'(ModLoader)
wasnt this ur code?
if this was,then u hasnt chg yet
bump... I think...
Just a question, though. Can you put a tutorial on how to set up a new EnumToolMaterials.java file? (Like, for example, "EnumTools<Mod>.java") I have found out that, with all my mods installed, I cannot edit the EnumToolMaterials.java since it is a base file.
Everytime I TRY to make a custom EnumTools, though, I get this error.
I used to know this as Modloader used to support this but sense it doesn't anymore I have to find a new way around it. I will pm you when I find how to
Hi how do you define blocks in the terrain.png I don't understand where to put the block texture, when I started minecraft after recompiling(No Errors) I got this error:
Error:
mod_GemCraft:
BlockrubyOre:
Try using this
my mod_class
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"
mod_cf
BlockCarbonOre
ItemCarbonFiber
And one more thing i made another mod, in eclipse when i run it, it does not give me any errors. when i reobf and put it in the minecraft.jar file and try to run it, it give me an error which shows and went into back screen very fast! so i cant even see the error. plss help mee..
^The Portal Song!^
http://www.youtube.com/watch?v=b6Q_koTHB54
^Taste the cake song!^
The cake is NOT a lie!
(KMeister)Multi-block Texture Tutorial - http://www.minecraftforum.net/topic/777291-100tutorial-multi-textured-blocks-buckets-blocks-in-creative-more/
(KMeister)Bucket Tutorial - http://www.minecraftforum.net/topic/777291-100tutorial-multi-textured-blocks-buckets-blocks-in-creative-more/
(Strengthowns)Generation Tutorials - http://www.minecraftforum.net/topic/473884-modloader181-strengths-tutorialshelp-281111-generation/
(Strengthowns)Blocks and Items - http://www.minecraftforum.net/topic/473884-modloader181-strengths-tutorialshelp-281111-generation/
(Ziddia)Complete Collection of Good Tutorials - http://www.minecraftforum.net/topic/258531-modloaderzids-tutorials-not-just-modloader12042011/
(StrongJoshua) Multiple/Single out-put furnace - http://www.minecraftforum.net/topic/602390-modloader-strongjoshuas-advanced-tutorials250911/page__st__80__p__8654066#entry8654066
I already posted my code look throught the posts (start from here back). I don't expect frogbite to respond but if another person could please help.
YAY!! Its has my tutorials :biggrin.gif: