Hello all,
I'm in the process of making an armor mod with ModLoader. The mod will add boots that will make you jump higher (SlimeBoots). I'm having some trouble with the "jump higher" part, it doesn't seem to be working.
This is the code to check if the player is wearing the boots, and if they are, makes the player jump 6 times higher than normal.
I have no errors with this code. The problem is, it doesn't make the player jump 6 times higher. I've tried anything, all help would be greatly appreciated. Thanks
-Gord360
This is my first time modding and I was making a simple stone tile as a test block, I fixed all the errors I got except this one that I don't understand how to fix:
src\minecraft\net\minecraft\src\mod_StoneTile.java:4: error: mod_StoneTile is not abstract and does not override abstract method load() in BaseMod
public class mod_StoneTile extends BaseMod
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
This is my first time modding and I was making a simple stone tile as a test block, I fixed all the errors I got except this one that I don't understand how to fix:
src\minecraft\net\minecraft\src\mod_StoneTile.java:4: error: mod_StoneTile is not abstract and does not override abstract method load() in BaseMod
public class mod_StoneTile extends BaseMod
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Mods loaded: 2
ModLoader 1.2.5
mod_Platnum Minecraft 1.2.5 and above Platnum Mod
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 1e7e5031 --------
Generated 4/7/12 11:25 AM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_30, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce GTX 560/PCI/SSE2 version 4.2.0, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: -106
at net.minecraft.src.ExtendedBlockStorage.setExtBlockID(ExtendedBlockStorage.java:83)
at net.minecraft.src.Chunk.<init>(Chunk.java:113)
at net.minecraft.src.ChunkProviderGenerate.provideChunk(ChunkProviderGenerate.java:290)
at net.minecraft.src.ChunkProvider.loadChunk(ChunkProvider.java:93)
at net.minecraft.src.ChunkProvider.provideChunk(ChunkProvider.java:119)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:654)
at net.minecraft.src.SpawnerAnimals.getRandomSpawningPointInChunk(SpawnerAnimals.java:21)
at net.minecraft.src.SpawnerAnimals.performSpawning(SpawnerAnimals.java:89)
at net.minecraft.src.World.tick(World.java:2850)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1903)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:870)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 16416a42 ----------
I was working on some blocks, but when I went to test out the Heater block, the game wouldn't give it to me through SPC, and would crash when I put the recipe into a table. The code for my mod file is here:
package net.minecraft.src;
import java.util.Random;
public class mod_Xyneria extends BaseMod
{
//Declarations
public static final Block Xyneria = (new Xyneria (200, ModLoader.addOverride("/terrain.png", "/blocks/xyneria.png")).setHardness(1.5F).setResistance(1.0F).setBlockName("Xyneria").setLightValue(0.5F));
public static final Item XynerianGem = new Item(17000).setItemName("XynerianGem").setIconIndex(ModLoader.addOverride("/gui/items.png", "/items/xyneriangem.png"));
public static final Block Heater = (new Heater(180, ModLoader.addOverride("/terrain.png", "/blocks/xyneria.png")).setHardness(2.5F).setResistance(6.0F).setBlockName("Heater"));
private World world;
public void load ()
{
ModLoader.registerBlock(Xyneria);
ModLoader.addName(Xyneria, "Xynerian Ore");
ModLoader.addName(XynerianGem, "Xynerian Gem");
world = ModLoader.getMinecraftInstance().theWorld;
ModLoader.addRecipe(new ItemStack(Xyneria, 1), new Object[] { "###", "###", "###", Character.valueOf('#'), XynerianGem });
ModLoader.addSmelting(Block.netherrack.blockID, new ItemStack(XynerianGem));
ModLoader.addRecipe(new ItemStack(Heater, 1), new Object[] {"X X", "XXX", "X X", Character.valueOf('X'), Block.cobblestone});
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int a= 0; a < 20; a++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(125);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(mod_Xyneria.Xyneria.blockID, 40)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public void generateNether(World world, Random random, int chunkX, int chunkZ)
{
for(int a= 0; a < 20; a++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(125);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenNether(mod_Xyneria.Xyneria.blockID, 40)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.2.5";
}
//MultiTexture Blocks
public static int BottomSide;
public static int TopSide;
public static int LeftSide;
public static int RightSide;
public static int FrontSide;
public static int BackSide;
public static int HeaterTop;
public static int HeaterBottom;
public static int HeaterFront;
public static int HeaterLeft;
public static int HeaterRight;
public static int HeaterBack;{
//Texture Overrides
BottomSide = ModLoader.addOverride("/terrain.png", "/blocks/bottomore.png");
TopSide = ModLoader.addOverride("/terrain.png", "/blocks/topore.png");
LeftSide = ModLoader.addOverride("/terrain.png", "/blocks/leftore.png");
RightSide = ModLoader.addOverride("/terrain.png", "/blocks/rightore.png");
FrontSide = ModLoader.addOverride("/terrain.png", "/blocks/frontore.png");
BackSide = ModLoader.addOverride("/terrain.png", "/blocks/backore.png");
HeaterTop = ModLoader.addOverride("/terrain.png", "/blocks/heatertop.png");
HeaterBottom = ModLoader.addOverride("/terrain.png", "/blocks/heatertop.png");
HeaterFront = ModLoader.addOverride("/terrain.png", "/blocks/heaterfront.png");
HeaterLeft = ModLoader.addOverride("/terrain.png", "/blocks/heaterleft.png");
HeaterRight = ModLoader.addOverride("/terrain.png", "/blocks/heaterleft.png");
HeaterBack = ModLoader.addOverride("/terrain.png", "/blocks/heaterleft.png");
}
}
And the code for the actual heater is here:
package net.minecraft.src;
import java.util.Random;
public class Heater extends Block
{
public Heater(int i, int j)
{
super(i, j, Material.rock);
}
public int quantityDropped(Random random)
{
return 1;
}
public int idDropped(int i, Random random, int j)
{
return(mod_Xyneria.Heater.blockID);
}
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
{
float f = 0.0625F;
return AxisAlignedBB.getBoundingBoxFromPool((float)par2 + f, par3, (float)par4 + f, (float)(par2 + 1) - f, (float)(par3 + 1) - f, (float)(par4 + 1) - f);
}
public int getBlockDataFromSideAndMetaData(int i, int j){
if (i==0){return mod_Xyneria.HeaterBottom;}
if (i==1){return mod_Xyneria.HeaterTop;}
if (i==2){return mod_Xyneria.HeaterLeft;}//sidea
if (i==3){return mod_Xyneria.HeaterRight;}//sideb
if (i==4){return mod_Xyneria.HeaterFront;}//sidec
if (i==5){return mod_Xyneria.HeaterBack;}//sided
if (j==1){return 166;}
return j != 2 ? 20 : 177;
}
}
If anyone could give me a hand with this, it would be greatly appreciated!
YOU didnt register the block Heater. Simple fails get the best of us.
help i keep having this error i know that it is because it cant find the picture from my class for some reason here is my error:
Mods loaded: 2
ModLoader 1.2.5
mod_ObsidianApple 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT bfeee903 --------
Generated 4/7/12 4:40 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6310 Graphics version 4.1.10834 Compatibility Profile Context, ATI Technologies Inc.
java.lang.RuntimeException: java.lang.Exception: Image not found: /mcp/applemod/obsidianapple.png
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1451)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1104)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.Exception: Image not found: /mcp/applemod/obsidianapple.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1024)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1443)
... 5 more
--- END ERROR REPORT 1cd0b6ad ----------
and here is my class file:
package net.minecraft.src;
public class mod_ObsidianApple extends BaseMod
{
public static final Item obsidianapple = new ItemFood(124, 20, 60F, true).setItemName("Obsidian Apple");
public void load()
{
obsidianapple.iconIndex = ModLoader.addOverride("/gui/items.png", "/applemod/obsidianapple.png");
ModLoader.addName(obsidianapple, "Obsidian Apple");
ModLoader.addRecipe(new ItemStack(obsidianapple, 1), new Object [] {"@@@", "@#@", "@@@", Character.valueOf('#'), Item.appleRed, Character.valueOf('@'), Block.obsidian});
}
public String getVersion()
{
return "1.2.5";
}
}
Here is an error I got while trying to add armour.
There were no errors in eclipse, only this while trying to startclient.
Mods loaded: 1
ModLoader 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 9f578458 --------
Generated 4/11/12 8:03 AM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_31, 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.NullPointerException
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:398)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:412)
at net.minecraft.src.mod_Draconian.<init>(mod_Draconian.java:79)
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:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 167a8f1d ----------
Hello, I have two errors that I do not know how to fix:
Error 1:
src/minecraft/net/minecraft/src/mod_ClassicWool.java:6: missing method body, or declare abstract
public void load();
^
Error 2:
src/minecraft/net/minecraft/src/mod_ClassicWool.java:133: cannot find symbol
symbol : method AddName(net.minecraft.src.Item,java.lang.String)
location: class net.minecraft.src.ModLoader
ModLoader.AddName(ClGreen, "Classic Green Dye");
^
Here is the code in the mod_ClassicWool.java:
package net.minecraft.src;
public class mod_ClassicWool extends BaseMod
{
public void load();
public static final Block ClassicGreen = new BlockClassicGreen(202, 0).setBlockName("Classic Green").setHardness(.5F).setResistance(4F).setLightValue(0F);
{
ClassicGreen.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/ClassicWool/green.png");
ModLoader.registerBlock(ClassicGreen);
ModLoader.addName(ClassicGreen, "Classic Green");
ModLoader.addRecipe(new ItemStack(ClassicGreen, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
}
public static final Block ClassicRed = new BlockClassicRed(203, 0).setBlockName("Classic Red").setHardness(.5F).setResistance(1F).setLightValue(0F);
{
ClassicRed.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/ClassicWool/red.png");
ModLoader.registerBlock(ClassicRed);
ModLoader.addName(ClassicRed, "Classic Red");
ModLoader.addRecipe(new ItemStack(ClassicRed, 1), new Object [] {"#", Character.valueOf('#'), Block.stone});
}
public static final Block ClassicOrange = new BlockClassicOrange(204, 0).setBlockName("Classic Orange").setHardness(.5F).setResistance(1F).setLightValue(0F);
{
ClassicOrange.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/ClassicWool/orange.png");
ModLoader.registerBlock(ClassicOrange);
ModLoader.addName(ClassicOrange, "Classic Orange");
ModLoader.addRecipe(new ItemStack(ClassicOrange, 1), new Object [] {"#", Character.valueOf('#'), Block.grass});
}
public static final Block ClassicBlue = new BlockClassicBlue(205, 0).setBlockName("Classic Blue").setHardness(.5F).setResistance(1F).setLightValue(0F);
{
ClassicBlue.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/ClassicWool/blue.png");
ModLoader.registerBlock(ClassicBlue);
ModLoader.addName(ClassicBlue, "Classic Blue");
ModLoader.addRecipe(new ItemStack(ClassicBlue, 1), new Object [] {"#", Character.valueOf('#'), Block.gravel});
}
public static final Block ClassicBluePurple = new BlockClassicBluePurple(206, 0).setBlockName("Classic Blue/Purple").setHardness(.5F).setResistance(1F).setLightValue(0F);
{
ClassicBluePurple.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/ClassicWool/bluepurple.png");
ModLoader.registerBlock(ClassicBluePurple);
ModLoader.addName(ClassicBluePurple, "Classic Blue/Purple");
ModLoader.addRecipe(new ItemStack(ClassicBluePurple, 1), new Object [] {"#", Character.valueOf('#'), Block.planks});
}
public static final Block ClassicGreenBlue = new BlockClassicGreenBlue(207, 0).setBlockName("Classic Green/Blue").setHardness(.5F).setResistance(1F).setLightValue(0F);
{
ClassicGreenBlue.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/ClassicWool/greenblue.png");
ModLoader.registerBlock(ClassicGreenBlue);
ModLoader.addName(ClassicGreenBlue, "Classic Green/Blue");
ModLoader.addRecipe(new ItemStack(ClassicGreenBlue, 1), new Object [] {"#", Character.valueOf('#'), Block.sand});
}
public static final Block ClassicPink = new BlockClassicPink(208, 0).setBlockName("Classic Pink").setHardness(.5F).setResistance(1F).setLightValue(0F);
{
ClassicPink.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/ClassicWool/pink.png");
ModLoader.registerBlock(ClassicPink);
ModLoader.addName(ClassicPink, "Classic Pink");
ModLoader.addRecipe(new ItemStack(ClassicPink, 1), new Object [] {"#", Character.valueOf('#'), Block.tnt});
}
public static final Block ClassicLightGreen = new BlockClassicLightGreen(209, 0).setBlockName("Classic Light Green").setHardness(.5F).setResistance(1F).setLightValue(0F);
{
ClassicLightGreen.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/ClassicWool/lightgreen.png");
ModLoader.registerBlock(ClassicLightGreen);
ModLoader.addName(ClassicLightGreen, "Classic Light Green");
ModLoader.addRecipe(new ItemStack(ClassicLightGreen, 1), new Object [] {"#", Character.valueOf('#'), Block.obsidian});
}
public static final Block ClassicLightPink = new BlockClassicLightPink(210, 0).setBlockName("Classic Light Pink").setHardness(.5F).setResistance(1F).setLightValue(0F);
{
ClassicLightPink.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/ClassicWool/lightpink.png");
ModLoader.registerBlock(ClassicLightPink);
ModLoader.addName(ClassicLightPink, "Classic Light Pink");
ModLoader.addRecipe(new ItemStack(ClassicLightPink, 1), new Object [] {"#", Character.valueOf('#'), Block.netherrack});
}
public static final Block ClassicLightPurple = new BlockClassicLightPurple(211, 0).setBlockName("Classic Light Purple").setHardness(.5F).setResistance(1F).setLightValue(0F);
{
ClassicLightPurple.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/ClassicWool/lightpurple.png");
ModLoader.registerBlock(ClassicLightPurple);
ModLoader.addName(ClassicLightPurple, "Classic Light Purple");
ModLoader.addRecipe(new ItemStack(ClassicLightPurple, 1), new Object [] {"#", Character.valueOf('#'), Block.bedrock});
}
public static final Block ClassicYellow = new BlockClassicYellow(212, 0).setBlockName("Classic Yellow").setHardness(.5F).setResistance(1F).setLightValue(0F);
{
ClassicYellow.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/ClassicWool/yellow.png");
ModLoader.registerBlock(ClassicYellow);
ModLoader.addName(ClassicYellow, "Classic Yellow");
ModLoader.addRecipe(new ItemStack(ClassicYellow, 1), new Object [] {"#", Character.valueOf('#'), Block.ice});
}
public static final Block ClassicPurple = new BlockClassicPurple(213, 0).setBlockName("Classic Purple").setHardness(.5F).setResistance(1F).setLightValue(0F);
{
ClassicPurple.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/ClassicWool/purple.png");
ModLoader.registerBlock(ClassicPurple);
ModLoader.addName(ClassicPurple, "Classic Purple");
ModLoader.addRecipe(new ItemStack(ClassicPurple, 1), new Object [] {"#", Character.valueOf('#'), Block.glass});
}
public static final Block ClassicLightBlue = new BlockClassicLightBlue(214, 0).setBlockName("Classic Light Blue").setHardness(.5F).setResistance(1F).setLightValue(0F);
{
ClassicLightBlue.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/ClassicWool/lightblue.png");
ModLoader.registerBlock(ClassicLightBlue);
ModLoader.addName(ClassicLightBlue, "Classic Light Blue");
ModLoader.addRecipe(new ItemStack(ClassicLightBlue, 1), new Object [] {"#", Character.valueOf('#'), Block.brick});
}
//ITEMS
public static final Item ClGreen = new ItemClGreen(5001).setItemName("ClassicGreenDye");
{
ClGreen.iconIndex = ModLoader.addOverride("/gui/items.png", "/ClassicWool/greendye.png");
ModLoader.AddName(ClGreen, "Classic Green Dye");
ModLoader.addRecipe(new ItemStack(ClGreen, 1), new Object [] {"#", Character.valueOf('#'), Item.coal});
}
public static final Item ClBlue = new ItemClBlue(5002).setItemName("ClassicBlueDye");
{
ClBlue.iconIndex = ModLoader.addOverride("/gui/items.png", "/ClassicWool/bluedye.png");
ModLoader.AddName(ClBlue, "Classic Blue Dye");
ModLoader.addRecipe(new ItemStack(ClBlue, 1), new Object [] {"#", Character.valueOf('#'), Item.coal});
}
public static final Item ClBluePurple = new ItemClBluePurple(5003).setItemName("ClassicBuePurpleDye");
{
ClBluePurple.iconIndex = ModLoader.addOverride("/gui/items.png", "/ClassicWool/bluepurpledye.png");
ModLoader.AddName(ClBluePurple, "Classic Blue/Purple Dye");
ModLoader.addRecipe(new ItemStack(ClBluePurple, 1), new Object [] {"#", Character.valueOf('#'), Item.coal});
}
public static final Item ClGreenBlue = new ItemClGreenBlue(5004).setItemName("ClassicGreenBlueDye");
{
ClGreenBlue.iconIndex = ModLoader.addOverride("/gui/items.png", "/ClassicWool/greenbluedye.png");
ModLoader.AddName(ClGreenBlue, "Classic Green/Blue Dye");
ModLoader.addRecipe(new ItemStack(ClGreenBlue, 1), new Object [] {"#", Character.valueOf('#'), Item.coal});
}
public static final Item ClLightBlue = new ItemClLightBlue(5005).setItemName("ClassicLightBlueDye");
{
ClLightBlue.iconIndex = ModLoader.addOverride("/gui/items.png", "/ClassicWool/lightbluedye.png");
ModLoader.AddName(ClLightBlue, "Classic Light Blue Dye");
ModLoader.addRecipe(new ItemStack(ClLightBlue, 1), new Object [] {"#", Character.valueOf('#'), Item.coal});
}
public static final Item ClLightGreen = new ItemClLightGreen(5006).setItemName("ClassicLightGreenDye");
{
ClLightGreen.iconIndex = ModLoader.addOverride("/gui/items.png", "/ClassicWool/lightgreendye.png");
ModLoader.AddName(ClLightGreen, "Classic Light Green Dye");
ModLoader.addRecipe(new ItemStack(ClLightGreen, 1), new Object [] {"#", Character.valueOf('#'), Item.coal});
}
public static final Item ClLightPink = new ItemClLightPink(5007).setItemName("ClassicLightPinkDye");
{
ClLightPink.iconIndex = ModLoader.addOverride("/gui/items.png", "/ClassicWool/lightpinkdye.png");
ModLoader.AddName(ClLightPink, "Classic Light Pink Dye");
ModLoader.addRecipe(new ItemStack(ClLightPink, 1), new Object [] {"#", Character.valueOf('#'), Item.coal});
}
public static final Item ClLightPurple = new ItemClLightPurple(5008).setItemName("ClassicLightPurpleDye");
{
ClLightPurple.iconIndex = ModLoader.addOverride("/gui/items.png", "/ClassicWool/lightpurpledye.png");
ModLoader.AddName(ClLightPurple, "Classic Light Purple Dye");
ModLoader.addRecipe(new ItemStack(ClLightPurple, 1), new Object [] {"#", Character.valueOf('#'), Item.coal});
}
public static final Item ClOrange = new ItemClOrange(5009).setItemName("ClassicOrangeDye");
{
ClOrange.iconIndex = ModLoader.addOverride("/gui/items.png", "/ClassicWool/orangedye.png");
ModLoader.AddName(ClOrange, "Classic Orange Dye");
ModLoader.addRecipe(new ItemStack(ClOrange, 1), new Object [] {"#", Character.valueOf('#'), Item.coal});
}
public static final Item ClPink = new ItemClPink(5010).setItemName("ClassicPinkDye");
{
ClPink.iconIndex = ModLoader.addOverride("/gui/items.png", "/ClassicWool/pinkdye.png");
ModLoader.AddName(ClPink, "Classic Pink Dye");
ModLoader.addRecipe(new ItemStack(ClPink, 1), new Object [] {"#", Character.valueOf('#'), Item.coal});
}
public static final Item ClPurple = new ItemClPurple(5011).setItemName("ClassicPurpleDye");
{
ClPurple.iconIndex = ModLoader.addOverride("/gui/items.png", "/ClassicWool/purpledye.png");
ModLoader.AddName(ClPurple, "Classic Purple Dye");
ModLoader.addRecipe(new ItemStack(ClPurple, 1), new Object [] {"#", Character.valueOf('#'), Item.coal});
}
public static final Item ClRed = new ItemClRed(5013).setItemName("ClassicRedDye");
{
ClRed.iconIndex = ModLoader.addOverride("/gui/items.png", "/ClassicWool/reddye.png");
ModLoader.AddName(ClRed, "Classic Red Dye");
ModLoader.addRecipe(new ItemStack(ClRed, 1), new Object [] {"#", Character.valueOf('#'), Item.coal});
}
public static final Item ClYellow = new ItemClYellow(5014).setItemName("ClassicYellowDye");
{
ClYellow.iconIndex = ModLoader.addOverride("/gui/items.png", "/ClassicWool/yellowdye.png");
ModLoader.AddName(ClYellow, "Classic Yellow Dye");
ModLoader.addRecipe(new ItemStack(ClYellow, 1), new Object [] {"#", Character.valueOf('#'), Item.coal});
}
public String getVersion()
{
return "1.2.5";
}
}
Mods loaded: 2 ModLoader 1.2.5 mod_egypt Egypt Mod
Minecraft has crashed! ----------------------
Minecraft has stopped running because it encountered a problem.
When i try to run my game it says:
--- BEGIN ERROR REPORT 4812e0a6 -------- Generated 4/11/12 9:38 PM
Minecraft: Minecraft 1.2.5 OS: Windows 7 (amd64) version 6.1 Java: 1.7.0_03, Oracle Corporation VM: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation LWJGL: 2.4.2 OpenGL: GeForce GTX 460/PCI/SSE2 version 4.2.0, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: 710 at net.minecraft.src.ModLoader.initStats(ModLoader.java:905) at net.minecraft.src.ModLoader.init(ModLoader.java:878) at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157) at net.minecraft.src.RenderManager.<init>(RenderManager.java:85) at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12) at net.minecraft.client.Minecraft.startGame(Minecraft.java:424) at net.minecraft.client.Minecraft.run(Minecraft.java:786) at java.lang.Thread.run(Unknown Source) --- END ERROR REPORT 538c8963 ----------
My code for mod_egypt is
package net.minecraft.src;
public class mod_egypt extends BaseMod {
public static Block HorusStone;
static { HorusStone = ( new BlockHorusStone(710, ModLoader.addOverride("/terrain.png", "/mods/HorusStone.png"))).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("HorusStone"); }
public mod_egypt() { ModLoader.addName(HorusStone, "Horus Stone"); }
Here is my error:
(Its about the ModLoader.addName(Machete, "Machete");, But I dont know what the problem is really :S)
Mods loaded: 2
ModLoader 1.2.5
mod_BladedWeapon 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT cfc22bca --------
Generated 14/05/12 09:29 م
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_27, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: AMD RADEON HD 6670 version 4.1.10428 Compatibility Profile Context, ATI Technologies Inc.
java.lang.NullPointerException
at net.minecraft.src.ModLoader.addName(ModLoader.java:344)
at net.minecraft.src.ModLoader.addName(ModLoader.java:307)
at net.minecraft.src.mod_BladedWeapon.load(mod_BladedWeapon.java:15)
at net.minecraft.src.ModLoader.init(ModLoader.java:856)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 337cd830 ----------
Here is my mod_BladedWeapons:
package net.minecraft.src;
public class mod_BladedWeapon extends BaseMod
{
public static Item Machete;
static
{
//Blades
Item Machete = (new ItemMachete(723, EnumToolMaterial1.MACHETE).setItemName("Blah122")).setIconIndex(ModLoader.addOverride("/gui/items.png", "/BladedWeapons/Machete.png"));
}
public void load()
{
ModLoader.addName(Machete, "Machete");
//Recipes
ModLoader.addRecipe(new ItemStack(Machete, 1), new Object [] {
"# ", "$#$", "%", Character.valueOf('#'), Item.ingotIron, Character.valueOf('$'), Item.leather, Character.valueOf('%'), Item.stick
});
}
public String getVersion()
{
return "1.2.5";
}
}
Hi, ehm got the same error as skinmaker loly + i got a problem with my new ore not generating into the world.
I know that the game crashes cause some ingot text, and i have no idea why it can't generate out my ores into the world.
(Almost first time programming java and first time modding minecraft)
mod_Awesome:
package net.minecraft.src;
import java.util.Random;
public class mod_Awesome extends BaseMod{
public static final Block PlatinumOre = new Block(201, Material.rock).setHardness(1.5F).setBlockName("Platinum Ore").setStepSound(Block.soundMetalFootstep).setResistance(10F);
public static final Item PlatinumIngot = new ItemCrack(2000, 6, 0.8f).setItemName("Plutonium Ingot");
public static final Block PlatinumBlock = new BlockAwesomeBlock(180, Material.rock).setBlockName("Platinum Block").setStepSound(Block.soundStoneFootstep).setResistance(20F);
@Override
public String getVersion() {
return "Awesome v1.0";
}
@Override
public void load() {
ModLoader.registerBlock(PlatinumOre);
//Name
ModLoader.addName(PlatinumOre, "Platinum Ore");
ModLoader.addName(PlatinumIngot, "Platinum Ingot");
ModLoader.addName(PlatinumBlock, "Platinum Block");
//Texture
PlatinumOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "PlatinumOre2.png");
PlatinumIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "Plotum.png");
PlatinumBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "PlatinumBlock.png");
//Recipe
ModLoader .addRecipe(new ItemStack(PlatinumBlock, 1), new Object[]{
"DDD","DDD","DDD",
'D', PlatinumIngot,
});
//Smelting
ModLoader.addSmelting(PlatinumOre.blockID, new ItemStack(PlatinumIngot, 1));
ModLoader.addSmelting(PlatinumBlock.blockID, new ItemStack(PlatinumIngot, 9));
}
//Generation loop
@Override
public void generatesurface(World world, Random rand, int chunkX, int chunkZ){
for(int i = 0; i < 25; i++){
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(128);
int randPosZ = chunkZ + rand.nextInt(16);
new WorldGenMinable(PlatinumOre.blockID, 15).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
}
Thanks for any help
Same problem with your code Pontanan, but more of a problem:
In the declared Blocks and Items Part, follow those results below
Results: Rename "Platinum Ore" to "PlatinumOre"
Results:Rename "Plutonium Ingot" to "PlatinumIngot"
Results: Rename "Platinum Block" to "PlatinumBlock"
That shouldn't give any more errors... unless you typo-ed something else too. Lolz that the "Platinum Ingot" is edible...
private TileEntityIronfurnace ironfurnace; private int coolTime; private int cookTime; private int itemCookTime; }
I used older code from 1.8.1 and when I edited (comparing + replacing using the Furnace Code) it says that ^^^ is: par1 cannot be resolved to a variable (HELP!?)
par1 doesn't exist. It looks like the variable 'i' is used for the rest of the code?
I Don't think You Need The Code For This. But I Get This Error.
Mods loaded: 6
ModLoader 1.2.5
mod_Biome1 1.2.5
mod_carpet 1.2.5
mod_crazyblock 1.2.5
mod_hotdog 1.2.5
mod_HumanNPC 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 2c9c724f --------
Generated 5/20/12 3:56 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics version 2.1.0 - Build 8.15.10.2182, Intel
java.lang.Exception: No more empty terrain sprite indices left!
at net.minecraft.src.ModLoader.getUniqueTerrainSpriteIndex(ModLoader.java:694)
at net.minecraft.src.ModLoader.getUniqueSpriteIndex(ModLoader.java:671)
at net.minecraft.src.ModLoader.addOverride(ModLoader.java:365)
at net.minecraft.src.mod_crazyblock.load(mod_crazyblock.java:9)
at net.minecraft.src.ModLoader.init(ModLoader.java:856)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 6ee6ff54 ----------
I'm in the process of making an armor mod with ModLoader. The mod will add boots that will make you jump higher (SlimeBoots). I'm having some trouble with the "jump higher" part, it doesn't seem to be working.
This is the code to check if the player is wearing the boots, and if they are, makes the player jump 6 times higher than normal.
I have no errors with this code. The problem is, it doesn't make the player jump 6 times higher. I've tried anything, all help would be greatly appreciated. Thanks
-Gord360
src\minecraft\net\minecraft\src\mod_StoneTile.java:4: error: mod_StoneTile is not abstract and does not override abstract method load() in BaseMod
public class mod_StoneTile extends BaseMod
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
add this method to your mod_ file
Follow @jamolnng
The best way to contact me is via twitter.
ModLoader 1.2.5
mod_Platnum Minecraft 1.2.5 and above Platnum Mod
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 1e7e5031 --------
Generated 4/7/12 11:25 AM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_30, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce GTX 560/PCI/SSE2 version 4.2.0, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: -106
at net.minecraft.src.ExtendedBlockStorage.setExtBlockID(ExtendedBlockStorage.java:83)
at net.minecraft.src.Chunk.<init>(Chunk.java:113)
at net.minecraft.src.ChunkProviderGenerate.provideChunk(ChunkProviderGenerate.java:290)
at net.minecraft.src.ChunkProvider.loadChunk(ChunkProvider.java:93)
at net.minecraft.src.ChunkProvider.provideChunk(ChunkProvider.java:119)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:654)
at net.minecraft.src.SpawnerAnimals.getRandomSpawningPointInChunk(SpawnerAnimals.java:21)
at net.minecraft.src.SpawnerAnimals.performSpawning(SpawnerAnimals.java:89)
at net.minecraft.src.World.tick(World.java:2850)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1903)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:870)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 16416a42 ----------
YOU didnt register the block Heater. Simple fails get the best of us.
There were no errors in eclipse, only this while trying to startclient.
ModLoader 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 9f578458 --------
Generated 4/11/12 8:03 AM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_31, 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.NullPointerException
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:398)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:412)
at net.minecraft.src.mod_Draconian.<init>(mod_Draconian.java:79)
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:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 167a8f1d ----------
Error 1:
Error 2:
Here is the code in the mod_ClassicWool.java:
Any help would be greatly appreciated!
ModLoader 1.2.5
mod_egypt Egypt Mod
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
When i try to run my game it says:
--- BEGIN ERROR REPORT 4812e0a6 --------
Generated 4/11/12 9:38 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce GTX 460/PCI/SSE2 version 4.2.0, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: 710
at net.minecraft.src.ModLoader.initStats(ModLoader.java:905)
at net.minecraft.src.ModLoader.init(ModLoader.java:878)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 538c8963 ----------
My code for mod_egypt is
package net.minecraft.src;
public class mod_egypt extends BaseMod
{
public static Block HorusStone;
static
{
HorusStone = ( new BlockHorusStone(710, ModLoader.addOverride("/terrain.png", "/mods/HorusStone.png"))).setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setBlockName("HorusStone");
}
public mod_egypt()
{
ModLoader.addName(HorusStone, "Horus Stone");
}
public void load()
{
}
public String getVersion()
{
return "Egypt Mod";
}
}
Thanks for any help!
Art by me: MrPancakeWolfie@DeviantArt
You will need to go through a complicated process of converting a linux tarball into a directory.
In short, no, and don't try.
Your java isn't good, as PATH is not set (properly), or you didn't install the JDK properly.
Also, you are using 1.7, which might bug MCP
(Its about the ModLoader.addName(Machete, "Machete");, But I dont know what the problem is really :S)
Here is my mod_BladedWeapons:
Please help me
Hmm... skinmaker loly, in your mod_BladedWeapons, you named your item "Blah122"
rename that line to
Same problem with your code Pontanan, but more of a problem:
In the declared Blocks and Items Part, follow those results below
Results: Rename "Platinum Ore" to "PlatinumOre"
Results:Rename "Plutonium Ingot" to "PlatinumIngot"
Results: Rename "Platinum Block" to "PlatinumBlock"
That shouldn't give any more errors... unless you typo-ed something else too. Lolz that the "Platinum Ingot" is edible...
par1 doesn't exist. It looks like the variable 'i' is used for the rest of the code?
ModLoader 1.2.5
mod_Biome1 1.2.5
mod_carpet 1.2.5
mod_crazyblock 1.2.5
mod_hotdog 1.2.5
mod_HumanNPC 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 2c9c724f --------
Generated 5/20/12 3:56 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics version 2.1.0 - Build 8.15.10.2182, Intel
java.lang.Exception: No more empty terrain sprite indices left!
at net.minecraft.src.ModLoader.getUniqueTerrainSpriteIndex(ModLoader.java:694)
at net.minecraft.src.ModLoader.getUniqueSpriteIndex(ModLoader.java:671)
at net.minecraft.src.ModLoader.addOverride(ModLoader.java:365)
at net.minecraft.src.mod_crazyblock.load(mod_crazyblock.java:9)
at net.minecraft.src.ModLoader.init(ModLoader.java:856)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 6ee6ff54 ----------