Hi, I'm trying to make a new furnace type thing. However, I am getting the following error:
java.lang.RuntimeException: class net.minecraft.src.TileEntityHeater is missing a mapping! This is a bug!
at net.minecraft.src.TileEntity.writeToNBT(TileEntity.java:60)
at net.minecraft.src.TileEntityHeater.writeToNBT(TileEntityHeater.java:81)
at net.minecraft.src.ChunkLoader.storeChunkInCompound(ChunkLoader.java:179)
at net.minecraft.src.ThreadedChunkLoader.saveChunk(ThreadedChunkLoader.java:98)
at net.minecraft.src.ChunkProvider.unloadAndSaveChunk(ChunkProvider.java:141)
at net.minecraft.src.ChunkProvider.saveChunks(ChunkProvider.java:177)
at net.minecraft.src.World.saveWorld(World.java:365)
at net.minecraft.src.World.saveWorldIndirectly(World.java:2141)
at net.minecraft.client.Minecraft.changeWorld(Minecraft.java:1689)
at net.minecraft.client.Minecraft.changeWorld2(Minecraft.java:1673)
at net.minecraft.client.Minecraft.changeWorld1(Minecraft.java:1668)
at net.minecraft.src.GuiIngameMenu.actionPerformed(GuiIngameMenu.java:56)
at net.minecraft.src.GuiScreen.mouseClicked(GuiScreen.java:82)
at net.minecraft.src.GuiScreen.handleMouseInput(GuiScreen.java:129)
at net.minecraft.src.GuiScreen.handleInput(GuiScreen.java:119)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1309)
at net.minecraft.client.Minecraft.func_40001_x(Minecraft.java:686)
at net.minecraft.client.Minecraft.run(Minecraft.java:627)
at java.lang.Thread.run(Unknown Source)]
Here is the code that MIGHT be causing it:
public void writeToNBT(NBTTagCompound nbttagcompound)
{
super.writeToNBT(nbttagcompound);
nbttagcompound.setShort("HeatTime", (short)heaterHeatTime);
nbttagcompound.setShort("CoolTime", (short)heaterCoolTime);
NBTTagList nbttaglist = new NBTTagList();
for(int i = 0; i < heaterItemStacks.length; i++)
{
if(heaterItemStacks[i] != null)
{
NBTTagCompound nbttagcompound1 = new NBTTagCompound();
nbttagcompound1.setByte("SlotHeater", (byte)i);
heaterItemStacks[i].writeToNBT(nbttagcompound1);
nbttaglist.setTag(nbttagcompound1);
}
}
nbttagcompound.setTag("Items", nbttaglist);
}
Additional info: The error isn't fatal, however it causes the block to disappear after reloading the world.
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 a1dce528 --------
Generated 12/19/11 7:43 PM
Minecraft: Minecraft 1.0.0
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_30, Sun Microsystems Inc.
VM: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
[failed to get system properties (java.lang.NullPointerException)]
org.lwjgl.LWJGLException: Could not create context
at org.lwjgl.opengl.WindowsContextImplementation.nCreate(Native Method)
at org.lwjgl.opengl.WindowsContextImplementation.create(WindowsContextImplementation.java:50)
at org.lwjgl.opengl.Context.<init>(Context.java:120)
at org.lwjgl.opengl.Display.create(Display.java:858)
at org.lwjgl.opengl.Display.create(Display.java:784)
at org.lwjgl.opengl.Display.create(Display.java:765)
at net.minecraft.client.Minecraft.a(SourceFile:237)
at net.minecraft.client.Minecraft.run(SourceFile:644)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 2801fa6a ----------
Quick note, minecraft worked 5 minutes before this.
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/19/11 10:20 PM
Minecraft: Minecraft 1.0.0
OS: Mac OS X (x86_64) version 10.6.8
Java: 1.6.0_29, Apple Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
LWJGL: 2.4.2
OpenGL: NVIDIA GeForce 320M OpenGL Engine version 2.1 NVIDIA-1.6.36, NVIDIA Corporation
java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
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:680)
--- END ERROR REPORT 45d3fc68 ----------
Code for mod_QuickBlock
package net.minecraft.src;
import java.util.Random;
public abstract class mod_QuickBlock extends BaseMod
{
public static final Block quickBlock =
new QuickBlock(123,0).setHardness(2.0F).setResistance(1.0F).setLightValue(0.0F).setBlockName("SandSlow");
public mod_QuickBlock()
{
ModLoader.RegisterBlock(quickBlock);
quickBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/QuickSand.png");
ModLoader.AddName(quickBlock, "Quick Sand");
ModLoader.AddRecipe(new ItemStack(quickBlock, 1), new Object[] {
"X*", Character.valueOf('*'), Block.dirt, Character.valueOf('X'), Item.stick
});
}
public String Version()
{
return "3.14159265";
}
}
Code for QuickBlock
package net.minecraft.src;
import java.util.Random;
public class QuickBlock extends Block
{
public QuickBlock(int i, int j)
{
super(i, j, Material.sand);
}
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
{
float f = 0.125F;
return AxisAlignedBB.getBoundingBoxFromPool(i, j, k, i + 1, (float)(j + 1) - f, k + 1);
}
public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
{
entity.motionX *= 0.40000000000000002D;
entity.motionZ *= 0.40000000000000002D;
}
public int idDropped(int i, Random random)
{
return mod_QuickBlock.quickBlock.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
public String TakenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory)
{
return "mob.ghast.moan";
}
}
when i load up startclient.sh i get this error report (.sh because im on mac) (.sh is pretty much the bat for windows)
java.lang.RuntimeException: java.lang.Exception: Image not found: crystalore.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:680)
Caused by: java.lang.Exception: Image not found: crystalore.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1024)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1346)
... 5 more
i have all the .png files in a couple files
it goes like this
/desktop/minecraft/Crystal/.png files
how would i show this in my code?
my code is like this right now for the override things:
Hi I have managed to get a buch of errors in my code and i am wondering if any of you can help i have made a New Furnace As Such Here is the Code That is causing the Errors:
Mod_Food:
package net.minecraft.src;
import java.util.Random;
public class mod_Food extends BaseMod
{
//Defining Foods
public static Item toast = (new ItemFood(1337, 7, 0.3F, false).setItemName("toasties"));
public static Item PanMix = (new ItemFood(1338, 1,0.3F, false).setItemName("Mixies"));
public static Item pancakes = (new ItemFood(1339,9,0.3F, false).setItemName("pancakies"));
public static Item sushimi = (new ItemFood(1340,8,0.3F, false).setItemName("sushi"));
public static Item rice = (new ItemFood(1341,1,0.3F,false).setItemName("ricey"));
public static Item chocolatemilk = (new ItemFood(1342,4,0.3F,false).setItemName("Chocolatey"));
public static Item cheese = (new ItemFood(1343,6,0.3F,false).setItemName("cheesy"));
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
public static int Fermenterside;
public static int Fermenterfront;
//Recipes
ModLoader.AddSmelting(Item.bread.shiftedIndex, new ItemStack(toast, 1));
ModLoader.AddSmelting(PanMix.shiftedIndex, new ItemStack(pancakes,1));
ModLoader.AddRecipe(new ItemStack(PanMix,1), new Object[] {
" X ", " Y ", " Z ",
Character.valueOf('X'),Item.wheat,Character.valueOf('Y'),Item.sugar,Character.valueOf('Z'),Item.bucketWater });
ModLoader.AddRecipe(new ItemStack(rice,3), new Object[] {
" V ", " W ",
Character.valueOf('V'),Item.wheat,Character.valueOf('W'),Item.bucketWater});
ModLoader.AddRecipe(new ItemStack(sushimi,1), new Object[] {
"TTT","UUU","TTT",
Character.valueOf('T'),rice,Character.valueOf ('U'),Item.fishRaw});
ModLoader.AddRecipe(new ItemStack(chocolatemilk,1), new Object[] {
" S "," R ",
Character.valueOf('S'),new ItemStack (Item.dyePowder,1,3),Character.valueOf ('R'),Item.bucketMilk});
// Codes For Testing
ModLoader.AddSmelting(Block.dirt.blockID, new ItemStack(Item.fishRaw, 8));
ModLoader.AddSmelting(Block.gravel.blockID, new ItemStack(Item.dyePowder,64,3));
public SlotFermenter(EntityPlayer entityplayer, IInventory iinventory, int i, int j, int k)
{
super(iinventory, i, j, k);
}
public boolean isItemValid(ItemStack itemstack)
{
return false;
}
public void onPickupFromSlot(ItemStack itemstack)
{
super.onPickupFromSlot(itemstack);
-------------------------------------------
If anyone Can Help that would be Fantastic!
Thanks
Here Are The Errors:
== ERRORS FOUND ==
src/minecraft/net/minecraft/src/GuiFermenter.java:39: reached end of file while parsing
private TileEntityFermenter FermenterInventory;
^
src/minecraft/net/minecraft/src/SlotFermenter.java:20: reached end of file while parsing
super.onPickupFromSlot(itemstack);
^
src/minecraft/net/minecraft/src/mod_Food.java:14: <identifier> expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: '(' or '[' expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: ')' expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: <identifier> expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: illegal start of type
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: <identifier> expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: ';' expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: illegal start of type
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: <identifier> expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: ';' expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: <identifier> expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: '(' or '[' expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: ')' expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: <identifier> expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: illegal start of type
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: <identifier> expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: ';' expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: illegal start of type
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: <identifier> expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: ';' expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
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/19/11 10:20 PM
Minecraft: Minecraft 1.0.0
OS: Mac OS X (x86_64) version 10.6.8
Java: 1.6.0_29, Apple Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
LWJGL: 2.4.2
OpenGL: NVIDIA GeForce 320M OpenGL Engine version 2.1 NVIDIA-1.6.36, NVIDIA Corporation
java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
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:680)
--- END ERROR REPORT 45d3fc68 ----------
Code for mod_QuickBlock
package net.minecraft.src;
import java.util.Random;
public abstract class mod_QuickBlock extends BaseMod
{
public static final Block quickBlock =
new QuickBlock(123,0).setHardness(2.0F).setResistance(1.0F).setLightValue(0.0F).setBlockName("SandSlow");
public mod_QuickBlock()
{
ModLoader.RegisterBlock(quickBlock);
quickBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/QuickSand.png");
ModLoader.AddName(quickBlock, "Quick Sand");
ModLoader.AddRecipe(new ItemStack(quickBlock, 1), new Object[] {
"X*", Character.valueOf('*'), Block.dirt, Character.valueOf('X'), Item.stick
});
}
public String Version()
{
return "3.14159265";
}
}
Code for QuickBlock
package net.minecraft.src;
import java.util.Random;
public class QuickBlock extends Block
{
public QuickBlock(int i, int j)
{
super(i, j, Material.sand);
}
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
{
float f = 0.125F;
return AxisAlignedBB.getBoundingBoxFromPool(i, j, k, i + 1, (float)(j + 1) - f, k + 1);
}
public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
{
entity.motionX *= 0.40000000000000002D;
entity.motionZ *= 0.40000000000000002D;
}
public int idDropped(int i, Random random)
{
return mod_QuickBlock.quickBlock.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}
public String TakenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory)
{
return "mob.ghast.moan";
}
}
Firstly you wrote [h1] "*" for X* instead of "X*" [/h1]
i Will have a good look at it and find the others :smile.gif:
This isnt an "ERROR" per say, But, it is a really bad thing... So I set my mod to override "/terrain.png" and I forgot that both blocks that I have will override it and so one has the others texture and the other has a grey grass texture... How can I fix this?
Oh and I doubt you need the BlockMetal/BlockRainbow codes so.
package net.minecraft.src;
public class mod_conaneve1 extends BaseMod
{
public static final Block Rainbow =
new BlockRainbow(123,0).setHardness(0.5F).setStepSound(Block.soundGlassFootstep).setBlockName("Rainbow").setLightValue(0.9375F);
public static final Block Metal =
new BlockMetal(124,0).setHardness(5F).setStepSound(Block.soundMetalFootstep).setBlockName("Metal").setLightValue(0F);
public void load()
{
ModLoader.RegisterBlock(Rainbow);
ModLoader.AddName(Rainbow, "Rainbow");
Rainbow.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/mods/Rainbow.png");
ModLoader.AddRecipe(new ItemStack(Rainbow, 1), new Object[] {"##", "##", Character.valueOf('#'), Block.cloth });
ModLoader.RegisterBlock(Metal);
ModLoader.AddName(Metal, "Metal");
Rainbow.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/mods/Metal.png");
ModLoader.AddRecipe(new ItemStack(Metal, 1), new Object[] {"##", "##", Character.valueOf('#'), Block.cobblestone });
}
public String getVersion()
{
return "conaneve1 mod (alpha 0.1) + Modloader";
}
}
I need help with this here is the errors
[spoiler]
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Silcon.java:10: error: ')' expected
ModLoader.AddRecipe.(new ItemStack(SilconOre, 1) new object[] {
src\minecraft\net\minecraft\src\mod_Silcon.java:10: error: not a statement
ModLoader.AddRecipe.(new ItemStack(SilconOre, 1) new object[] {
src\minecraft\net\minecraft\src\mod_Silcon.java:10: error: ';' expected
ModLoader.AddRecipe.(new ItemStack(SilconOre, 1) new object[] {
src\minecraft\net\minecraft\src\mod_Silcon.java:11: error: not a statement
"##", "##", Character.valueOf('#'), Item.silcon
src\minecraft\net\minecraft\src\mod_Silcon.java:11: error: ';' expected
"##", "##", Character.valueOf('#'), Item.silcon
thenext 3 errors are the same
src\minecraft\net\minecraft\src\mod_Silcon.java:10: error: not a statement
"##", "##", Character.valueOf('#'), Item.silcon
then the is a reached end of statement atile paring
}
[spoiler}
here is mod_silcon
[spoiler]
package net.minecraft.src;
import java.until.Random;
public class mod_silcon extends BaseMod {
public void load() {
ModLoader.RegisterBlock(SilconOre);
ModLoader.AddName(SilconOre, "SilconOre");
ModLoader.AddRecipe(new ItemStack(SilconOre, 1) new Object[] {
"##", "##", Character.valueOf('#'), Item.silcon
});
}
@MLProp(min=1.0D, max=100D)
public static int SilconOreID = 255;
public static final Block SilconOre;
static
{
SilconOre = new SilconOre(SilconOreID, ModLoader.addOverride("/terrain.png", "/mod/pie.png")).setHardness(2.0F).setResistance(0.0F).setLightValue(0.5F).setStepSound(soundStoneFootstep).setBlockName("SilconOre");
}
public String getVersion(){
return "1.0.0";
}
[/spoiler]
here is the BlockSilcon Ore code
[spoiler]
ackage net.minecraft.src;
import java.until.Random;
public class BlockSilconOre extends Block{
public BlockSilconOre(int i, int j){
super(i, j, Material.rock);
}
public int idDropped(int i, Random random)
{
return mod_Silcon.SilconOre.blockID;
}
}
This isnt an "ERROR" per say, But, it is a really bad thing... So I set my mod to override "/terrain.png" and I forgot that both blocks that I have will override it and so one has the others texture and the other has a grey grass texture... How can I fix this?
Oh and I doubt you need the BlockMetal/BlockRainbow codes so.
package net.minecraft.src;
public class mod_conaneve1 extends BaseMod
{
public static final Block Rainbow =
new BlockRainbow(123,0).setHardness(0.5F).setStepSound(Block.soundGlassFootstep).setBlockName("Rainbow").setLightValue(0.9375F);
public static final Block Metal =
new BlockMetal(124,0).setHardness(5F).setStepSound(Block.soundMetalFootstep).setBlockName("Metal").setLightValue(0F);
public void load()
{
ModLoader.RegisterBlock(Rainbow);
ModLoader.AddName(Rainbow, "Rainbow");
Rainbow.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/mods/Rainbow.png");
ModLoader.AddRecipe(new ItemStack(Rainbow, 1), new Object[] {"##", "##", Character.valueOf('#'), Block.cloth });
ModLoader.RegisterBlock(Metal);
ModLoader.AddName(Metal, "Metal");
Rainbow.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/mods/Metal.png");
ModLoader.AddRecipe(new ItemStack(Metal, 1), new Object[] {"##", "##", Character.valueOf('#'), Block.cobblestone });
}
public String getVersion()
{
return "conaneve1 mod (alpha 0.1) + Modloader";
}
}
Just add a different override for every block. I would add a folder to keep it organized so a single one might look like this:
hey i am trying to create a block but keep getting this error. my custom texture is in the reobf
along with my class file they are not in a special folder though just sitting freely in the reobf folder
My texture is a photoshop.png and it is called fruitcake
/* Code */
package net.minecraft.src;
public class mod_FruitcakeBlock extends BaseMod
{
public mod_FruitcakeBlock ()
{
ModLoader.RegisterBlock( fruitcake );
ModLoader.AddName( fruitcake, "Fruitcake" );
fruitcake.blockIndexInTexture = ModLoader.addOverride( "/terrain.png", "/fruitcake.png" );
ModLoader.AddRecipe(new ItemStack(fruitcake, 1), new Object [] {
"XXX", "XXX", "XXX", Character.valueOf('X'), Block.sand
});
}
public String getVersion() {
return "1.0.0";
}
public void load() {
}
public static final Block fruitcake;
static
{
fruitcake = (new BlockCake(197, 0)).setHardness(0.5F).setStepSound(Block.soundClothFootstep).setBlockName("fruitcake").disableStats().setRequiresSelfNotify();
}
}
Here is my error
/* error */
java.lang.RuntimeException: java.lang.Exception: Image not found: /fruitcake.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:722)
Caused by: java.lang.Exception: Image not found: /fruitcake.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1024)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1346)
... 5 more
Been having alot of issues trying to generate my ore on the surface. Here's the part of my coding it refers to:
mod_OresExtended:
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 150; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(80);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_OresExtended.tin.blockID, 10)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
}
hey i am trying to create a block but keep getting this error. my custom texture is in the reobf
along with my class file they are not in a special folder though just sitting freely in the reobf folder
My texture is a photoshop.png and it is called fruitcake
/* Code */
package net.minecraft.src;
public class mod_FruitcakeBlock extends BaseMod
{
public mod_FruitcakeBlock ()
{
ModLoader.RegisterBlock( fruitcake );
ModLoader.AddName( fruitcake, "Fruitcake" );
fruitcake.blockIndexInTexture = ModLoader.addOverride( "/terrain.png", "/fruitcake.png" );
ModLoader.AddRecipe(new ItemStack(fruitcake, 1), new Object [] {
"XXX", "XXX", "XXX", Character.valueOf('X'), Block.sand
});
}
public String getVersion() {
return "1.0.0";
}
public void load() {
}
public static final Block fruitcake;
static
{
fruitcake = (new BlockCake(197, 0)).setHardness(0.5F).setStepSound(Block.soundClothFootstep).setBlockName("fruitcake").disableStats().setRequiresSelfNotify();
}
}
Here is my error
/* error */
java.lang.RuntimeException: java.lang.Exception: Image not found: /fruitcake.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:722)
Caused by: java.lang.Exception: Image not found: /fruitcake.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1024)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1346)
... 5 more
Please help me if your can
It says it can't find the image fruitcake.png. Make sure the image is called "fruitcake.png" with no capital letters etc. Also make sure it's in the minecraft.jar and not in an extra folder.
This isnt an "ERROR" per say, But, it is a really bad thing... So I set my mod to override "/terrain.png" and I forgot that both blocks that I have will override it and so one has the others texture and the other has a grey grass texture... How can I fix this?
Oh and I doubt you need the BlockMetal/BlockRainbow codes so.
package net.minecraft.src;
public class mod_conaneve1 extends BaseMod
{
public static final Block Rainbow =
new BlockRainbow(123,0).setHardness(0.5F).setStepSound(Block.soundGlassFootstep).setBlockName("Rainbow").setLightValue(0.9375F);
public static final Block Metal =
new BlockMetal(124,0).setHardness(5F).setStepSound(Block.soundMetalFootstep).setBlockName("Metal").setLightValue(0F);
public void load()
{
ModLoader.RegisterBlock(Rainbow);
ModLoader.AddName(Rainbow, "Rainbow");
Rainbow.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/mods/Rainbow.png");
ModLoader.AddRecipe(new ItemStack(Rainbow, 1), new Object[] {"##", "##", Character.valueOf('#'), Block.cloth });
ModLoader.RegisterBlock(Metal);
ModLoader.AddName(Metal, "Metal");
Rainbow.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/mods/Metal.png");
ModLoader.AddRecipe(new ItemStack(Metal, 1), new Object[] {"##", "##", Character.valueOf('#'), Block.cobblestone });
}
public String getVersion()
{
return "conaneve1 mod (alpha 0.1) + Modloader";
}
}
you have Rainbow.blockIndexInTexture twice, instade of using rainbow and metal.
Been having alot of issues trying to generate my ore on the surface. Here's the part of my coding it refers to:
mod_OresExtended:
public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int i = 0; i < 150; i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(80);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_OresExtended.tin.blockID, 10)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
}
Hi, I'm having trouble getting Minecraft to get the spawn coordinates for an item. The item itself works properly, but when trying to use it when making it get the player spawn coordinates it crashes on me. I'm just practicing general programming so I'm not making it use modLoader.
The item class:
package net.minecraft.src;
import net.minecraft.src.EntityPlayer;
public class ItemEnderArtifact extends Item
{
EntityPlayer ep;
public ItemEnderArtifact(int i)
{
super(i);
maxStackSize = 1;
setMaxDamage(5);
}
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
{
ChunkCoordinates respawn = ep.getPlayerSpawnCoordinate();
entityplayer.setPosition(respawn.posX, respawn.posY, respawn.posZ);
itemstack.damageItem(1, entityplayer);
return itemstack;
}
}
Error report:
--- BEGIN ERROR REPORT a1dce528 --------
Generated 12/20/11 4:10 PM
Minecraft: Minecraft 1.0.0
OS: Windows Vista (amd64) version 6.0
Java: 1.7.0, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce GTX 560 Ti/PCI/SSE2 version 4.2.0, NVIDIA Corporation
java.lang.NullPointerException
at net.minecraft.src.ItemEnderArtifact.onItemRightClick(ItemEnderArtifact.java:19)
at net.minecraft.src.ItemStack.useItemRightClick(ItemStack.java:112)
at net.minecraft.src.PlayerController.sendUseItem(PlayerController.java:63)
at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1162)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1475)
at net.minecraft.client.Minecraft.func_40001_x(Minecraft.java:686)
at net.minecraft.client.Minecraft.run(Minecraft.java:627)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT ae95b2a9 ----------
Hi, I'm having trouble getting Minecraft to get the spawn coordinates for an item. The item itself works properly, but when trying to use it when making it get the player spawn coordinates it crashes on me. I'm just practicing general programming so I'm not making it use modLoader.
The item class:
package net.minecraft.src;
import net.minecraft.src.EntityPlayer;
public class ItemEnderArtifact extends Item
{
EntityPlayer ep;
public ItemEnderArtifact(int i)
{
super(i);
maxStackSize = 1;
setMaxDamage(5);
}
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
{
ChunkCoordinates respawn = ep.getPlayerSpawnCoordinate();
entityplayer.setPosition(respawn.posX, respawn.posY, respawn.posZ);
itemstack.damageItem(1, entityplayer);
return itemstack;
}
}
Error report:
--- BEGIN ERROR REPORT a1dce528 --------
Generated 12/20/11 4:10 PM
Minecraft: Minecraft 1.0.0
OS: Windows Vista (amd64) version 6.0
Java: 1.7.0, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce GTX 560 Ti/PCI/SSE2 version 4.2.0, NVIDIA Corporation
java.lang.NullPointerException
at net.minecraft.src.ItemEnderArtifact.onItemRightClick(ItemEnderArtifact.java:19)
at net.minecraft.src.ItemStack.useItemRightClick(ItemStack.java:112)
at net.minecraft.src.PlayerController.sendUseItem(PlayerController.java:63)
at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1162)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1475)
at net.minecraft.client.Minecraft.func_40001_x(Minecraft.java:686)
at net.minecraft.client.Minecraft.run(Minecraft.java:627)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT ae95b2a9 ----------
EntityPlayer "ep" is never initialized. Try:
package net.minecraft.src;
import net.minecraft.src.EntityPlayer;
public class ItemEnderArtifact extends Item
{
EntityPlayer ep;
public ItemEnderArtifact(int i)
{
super(i);
maxStackSize = 1;
setMaxDamage(5);
}
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
{
ChunkCoordinates respawn = entityplayer.getPlayerSpawnCoordinate();
entityplayer.setPosition(respawn.posX, respawn.posY, respawn.posZ);
itemstack.damageItem(1, entityplayer);
return itemstack;
}
}
Most problems like this can be solved by searching the error on Google.
Here is the code that MIGHT be causing it:
Additional info: The error isn't fatal, however it causes the block to disappear after reloading the world.
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 a1dce528 --------
Generated 12/19/11 7:43 PM
Minecraft: Minecraft 1.0.0
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_30, Sun Microsystems Inc.
VM: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
[failed to get system properties (java.lang.NullPointerException)]
org.lwjgl.LWJGLException: Could not create context
at org.lwjgl.opengl.WindowsContextImplementation.nCreate(Native Method)
at org.lwjgl.opengl.WindowsContextImplementation.create(WindowsContextImplementation.java:50)
at org.lwjgl.opengl.Context.<init>(Context.java:120)
at org.lwjgl.opengl.Display.create(Display.java:858)
at org.lwjgl.opengl.Display.create(Display.java:784)
at org.lwjgl.opengl.Display.create(Display.java:765)
at net.minecraft.client.Minecraft.a(SourceFile:237)
at net.minecraft.client.Minecraft.run(SourceFile:644)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 2801fa6a ----------
Quick note, minecraft worked 5 minutes before this.
Code for mod_QuickBlock
Code for QuickBlock
java.lang.RuntimeException: java.lang.Exception: Image not found: crystalore.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:680)
Caused by: java.lang.Exception: Image not found: crystalore.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1024)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1346)
... 5 more
i have all the .png files in a couple files
it goes like this
/desktop/minecraft/Crystal/.png files
how would i show this in my code?
my code is like this right now for the override things:
Mod_Food:
package net.minecraft.src;
import java.util.Random;
public class mod_Food extends BaseMod
{
//Defining Foods
public static Item toast = (new ItemFood(1337, 7, 0.3F, false).setItemName("toasties"));
public static Item PanMix = (new ItemFood(1338, 1,0.3F, false).setItemName("Mixies"));
public static Item pancakes = (new ItemFood(1339,9,0.3F, false).setItemName("pancakies"));
public static Item sushimi = (new ItemFood(1340,8,0.3F, false).setItemName("sushi"));
public static Item rice = (new ItemFood(1341,1,0.3F,false).setItemName("ricey"));
public static Item chocolatemilk = (new ItemFood(1342,4,0.3F,false).setItemName("Chocolatey"));
public static Item cheese = (new ItemFood(1343,6,0.3F,false).setItemName("cheesy"));
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
public static int Fermenterside;
public static int Fermenterfront;
public void load() {
//Textures
toast.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/toast.png");
PanMix.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/PanMix.png");
pancakes.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/pancake.png");
sushimi.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/sushi.png");
rice.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/rice.png");
chocolatemilk.iconIndex = ModLoader.addOverride("/gui/items.png", "/Breakfast/rice.png");
//Adding Game Names
ModLoader.AddName(toast, "Toast");
ModLoader.AddName(PanMix, "Pancake Mix");
ModLoader.AddName(pancakes, "Pancakes");
ModLoader.AddName(sushimi, "Sushi");
ModLoader.AddName(rice, "Rice");
ModLoader.AddName(chocolatemilk, "Chocolate Milk");
//Recipes
ModLoader.AddSmelting(Item.bread.shiftedIndex, new ItemStack(toast, 1));
ModLoader.AddSmelting(PanMix.shiftedIndex, new ItemStack(pancakes,1));
ModLoader.AddRecipe(new ItemStack(PanMix,1), new Object[] {
" X ", " Y ", " Z ",
Character.valueOf('X'),Item.wheat,Character.valueOf('Y'),Item.sugar,Character.valueOf('Z'),Item.bucketWater });
ModLoader.AddRecipe(new ItemStack(rice,3), new Object[] {
" V ", " W ",
Character.valueOf('V'),Item.wheat,Character.valueOf('W'),Item.bucketWater});
ModLoader.AddRecipe(new ItemStack(sushimi,1), new Object[] {
"TTT","UUU","TTT",
Character.valueOf('T'),rice,Character.valueOf ('U'),Item.fishRaw});
ModLoader.AddRecipe(new ItemStack(chocolatemilk,1), new Object[] {
" S "," R ",
Character.valueOf('S'),new ItemStack (Item.dyePowder,1,3),Character.valueOf ('R'),Item.bucketMilk});
// Codes For Testing
ModLoader.AddSmelting(Block.dirt.blockID, new ItemStack(Item.fishRaw, 8));
ModLoader.AddSmelting(Block.gravel.blockID, new ItemStack(Item.dyePowder,64,3));
}
public mod_Food ()
{
ModLoader.RegisterBlock(FermenterIdle);
ModLoader.AddName(FermenterIdle, "Fermenter");
FermenterIdle.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Breakfast/FermenterTop.png");
Fermenterside = ModLoader addOverride ("/terrain.png", "/Breakfast/Fermenterside.png");
Fermenterfront = ModLoader.addOverride ("/terrain.png", "/Breakfast/Fermenterfront.png");
FermenterActive.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Breakfast/FermenterActive.png");
}
public String getVersion()
{
return "1.0.0";
}
}
Gui Fermenter:
package net.minecraft.src;
import net.minecraft.client.Minecraft;
import org.lwjgl.opengl.GL11;
public class GuiFermenter extends GuiContainer
{
public GuiFermenter(InventoryPlayer inventoryplayer, TileEntityFermenter tileentityFermenter)
{
super(new ContainerFermenter(inventoryplayer, tileentityFermenter));
FermenterInventory = tileentityFermenter;
}
protected void drawGuiContainerForegroundLayer()
{
fontRenderer.drawString("Fermenter", 60, 6, 0x404040);
fontRenderer.drawString("Inventory", 8, (ySize - 96) + 2, 0x404040);
}
protected void drawGuiContainerBackgroundLayer(float f)
{
int i = mc.renderEngine.getTexture("/gui/furnace.png");
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
mc.renderEngine.bindTexture(i);
int j = (width - xSize) / 2;
int k = (height - ySize) / 2;
drawTexturedModalRect(j, k, 0, 0, xSize, ySize);
if(FermenterInventory.isFreezing())
{
int l = FermenterInventory.getCookTimeRemainingScaled(12);
drawTexturedModalRect(j + 56, (k + 36 + 12) - l, 176, 12 - l, 14, l + 2);
}
int i1 = FermenterInventory.getBurnProgressScaled(24);
drawTexturedModalRect(j + 79, k + 34, 176, 14, i1 + 1, 16);
}
private TileEntityFermenter FermenterInventory;
--------------------------------------------------------
SlotFermenter:
package net.minecraft.src;
public class SlotFermenter extends Slot
{
public SlotFermenter(EntityPlayer entityplayer, IInventory iinventory, int i, int j, int k)
{
super(iinventory, i, j, k);
}
public boolean isItemValid(ItemStack itemstack)
{
return false;
}
public void onPickupFromSlot(ItemStack itemstack)
{
super.onPickupFromSlot(itemstack);
If anyone Can Help that would be Fantastic!
Thanks
Here Are The Errors:
== ERRORS FOUND ==
src/minecraft/net/minecraft/src/GuiFermenter.java:39: reached end of file while parsing
private TileEntityFermenter FermenterInventory;
^
src/minecraft/net/minecraft/src/SlotFermenter.java:20: reached end of file while parsing
super.onPickupFromSlot(itemstack);
^
src/minecraft/net/minecraft/src/mod_Food.java:14: <identifier> expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: '(' or '[' expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: ')' expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: <identifier> expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: illegal start of type
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: <identifier> expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: ';' expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: illegal start of type
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: <identifier> expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:14: ';' expected
public static final Block = new FermenterIdle = (1344,false).setBlockName("Fermenter");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: <identifier> expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: '(' or '[' expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: ')' expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: <identifier> expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: illegal start of type
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: <identifier> expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: ';' expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: illegal start of type
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: <identifier> expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:15: ';' expected
public static final Block = new FermenterActive = (1345,false).setBlockName("Fermenting");
^
src/minecraft/net/minecraft/src/mod_Food.java:70: ';' expected
Fermenterside = ModLoader addOverride ("/terrain.png", "/Breakfast/Fermenterside.png");
^
23 errors
==================
Oh and I doubt you need the BlockMetal/BlockRainbow codes so.
[spoiler] thenext 3 errors are the same
then the is a reached end of statement atile paring [spoiler}
here is mod_silcon
[spoiler] [/spoiler]
here is the BlockSilcon Ore code
[spoiler] [/spoiler]
Just add a different override for every block. I would add a folder to keep it organized so a single one might look like this:
no it still has the errors
along with my class file they are not in a special folder though just sitting freely in the reobf folder
My texture is a photoshop.png and it is called fruitcake
/* Code */
package net.minecraft.src;
public class mod_FruitcakeBlock extends BaseMod
{
public mod_FruitcakeBlock ()
{
ModLoader.RegisterBlock( fruitcake );
ModLoader.AddName( fruitcake, "Fruitcake" );
fruitcake.blockIndexInTexture = ModLoader.addOverride( "/terrain.png", "/fruitcake.png" );
ModLoader.AddRecipe(new ItemStack(fruitcake, 1), new Object [] {
"XXX", "XXX", "XXX", Character.valueOf('X'), Block.sand
});
}
public String getVersion() {
return "1.0.0";
}
public void load() {
}
public static final Block fruitcake;
static
{
fruitcake = (new BlockCake(197, 0)).setHardness(0.5F).setStepSound(Block.soundClothFootstep).setBlockName("fruitcake").disableStats().setRequiresSelfNotify();
}
}
Here is my error
/* error */
java.lang.RuntimeException: java.lang.Exception: Image not found: /fruitcake.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:722)
Caused by: java.lang.Exception: Image not found: /fruitcake.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1024)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1346)
... 5 more
Please help me if your can
mod_OresExtended:
and my errors..
I haven't been able to find the fixes for any of these.. anyone know?
It says it can't find the image fruitcake.png. Make sure the image is called "fruitcake.png" with no capital letters etc. Also make sure it's in the minecraft.jar and not in an extra folder.
That didnt work though! It says that -- Wait how would YOU code something like this?
you have Rainbow.blockIndexInTexture twice, instade of using rainbow and metal.
import java.util.Random.
Wow, thanks didn't even notice I missed that.
The item class:
EntityPlayer "ep" is never initialized. Try:
Most problems like this can be solved by searching the error on Google.
THANK YOU! I DIDNT NOTICE THAT :biggrin.gif: