I tryed to add a smelting recipe and i dont under stand whats wrong D:
heres my code and the error (Its so frustrating that it's raping my mind)
mod_Zimmite:
package net.minecraft.src;
import java.util.Random;
public class mod_Zimmite extends BaseMod
{
public static final Block Zimmite = new BlockZimmite(255, ModLoader.addOverride("/terrain.png", "/zimmy.png")).setHardness(15F).setResistance(200F).setStepSound(Block.soundStoneFootstep).setBlockName("Zimmite"); // It's recommended to have non-screen names starting with a lower case character just for preference
public void load()
{
}
public mod_Zimmite()
{
ModLoader.registerBlock(Zimmite);
ModLoader.addName(Zimmite, "Zimmite Ore");
ModLoader.addSmelting(Block.planks.blockID, new ItemStack(Zimmite, 1));
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 7; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(20);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(Zimmite.blockID, 8)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.2.5";
}
}
mod_ItemZimmiteingot:
package net.minecraft.src;
public class mod_ItemZimmiteingot extends BaseMod
{
public static final Item Zimmiteingot = new ItemZimmiteingot(5000).setItemName("Zimmiteingot");
public void load()
{
Zimmiteingot.iconIndex = ModLoader.addOverride("/gui/items.png", "zimmiteingot.png");
ModLoader.addName(Zimmiteingot, "Zimmite Ingot");
ModLoader.addSmelting(Zimmite.shiftedIndex, newItemStack(Zimmiteingot, 1));
}
public String getVersion()
{
return "1.2.5";
}
}
ItemZimmiteingot:
package net.minecraft.src;
public class ItemZimmiteingot extends Item
{
public ItemZimmiteingot(int i)
{
super(i);
maxStackSize = 64;
}
}
Error:
== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) ==
> Searching for javac.exe in C:\Program Files
# found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, pa
ram csvs, astyle, astyle config
== Recompiling client ==
> Cleaning bin
> Recompiling
'"C:\Program Files\Java\jdk1.7.0_03\bin\javac" -Xlint:-options -deprecation -g -
source 1.6 -target 1....' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_ItemZimmiteingot.java:11: error: cannot find
symbol
ModLoader.addSmelting(Zimmite.shiftedIndex, newItemStack(Zimmite
ingot, 1));
^
symbol: variable Zimmite
location: class mod_ItemZimmiteingot
src\minecraft\net\minecraft\src\mod_ItemZimmiteingot.java:11: error: cannot find
symbol
ModLoader.addSmelting(Zimmite.shiftedIndex, newItemStack(Zimmite
ingot, 1));
^
symbol: method newItemStack(Item,int)
location: class mod_ItemZimmiteingot
2 errors
==================
!! Can not find server sources, try decompiling !!
Press any key to continue . . .
Answer:
Your Zimmite block is not being recognized because Zimmite it is not an accessible variable. You should be able to fix this by replacing:
ModLoader.addSmelting(mod_Zimmite.Zimmite.blockID, new ItemStack(Zimmiteingot, 1));
But that is not efficient. A MUCH better way to fix this is by combining your two mod_ files. You only need one to declare your stuff.
Here is what it should look like:
package net.minecraft.src;
import java.util.Random;
public class mod_Zimmite extends BaseMod
{
public static final Block Zimmite = new BlockZimmite(255, ModLoader.addOverride("/terrain.png", "/zimmy.png")).setHardness(15F).setResistance(200F).setStepSound(Block.soundStoneFootstep).setBlockName("Zimmite"); // It's recommended to have non-screen names starting with a lower case character just for preference
public static final Item Zimmiteingot = new ItemZimmiteingot(5000).setItemName("Zimmiteingot");
public void load()
{
}
public mod_Zimmite()
{
ModLoader.registerBlock(Zimmite);
ModLoader.addName(Zimmite, "Zimmite Ore");
ModLoader.addSmelting(Block.planks.blockID, new ItemStack(Zimmite, 1));
Zimmiteingot.iconIndex = ModLoader.addOverride("/gui/items.png", "zimmiteingot.png");
ModLoader.addName(Zimmiteingot, "Zimmite Ingot");
ModLoader.addSmelting(mod_Zimmite.Zimmite.blockID, new ItemStack(Zimmiteingot, 1));
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 7; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(20);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(Zimmite.blockID, 8)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.2.5";
}
}
how do recipes work i understand it a little bit but i want to know how to make multiple layers
Example:
###
$
$
#=dirt
$=diamond
how would i do that
Edit:Nevermind i found the tutorial
To be honest, I am not sure, it would be nice if you posted the full code, otherwise ether wait for Techguy, or ask in mod development
okay. Thanks for helping!
Here's my EnumCustomToolMaterial.java:
package net.minecraft.src;
public enum EnumCustomToolMaterial
{
GLASS(1, 64, 2F, 0, 9),
DIRT(0, 80, 3F, 0, 8),
LAPIS(1, 200, 5F, 1, 12),
OBSIDIAN(3, 2010, 9F, 3, 11),
REDSTONE(2, 308, 6F, 2, 14);
/**
* The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
*/
private final int harvestLevel;
/**
* The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
*/
private final int maxUses;
/**
* The strength of this tool material against blocks which it is effective against.
*/
private final float efficiencyOnProperMaterial;
/** Damage versus entities. */
private final int damageVsEntity;
/** Defines the natural enchantability factor of the material. */
private final int enchantability;
private EnumCustomToolMaterial(int par3, int par4, float par5, int par6, int par7)
{
harvestLevel = par3;
maxUses = par4;
efficiencyOnProperMaterial = par5;
damageVsEntity = par6;
enchantability = par7;
}
/**
* The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
*/
public int getMaxUses()
{
return maxUses;
}
/**
* The strength of this tool material against blocks which it is effective against.
*/
public float getEfficiencyOnProperMaterial()
{
return efficiencyOnProperMaterial;
}
/**
* Damage versus entities.
*/
public int getDamageVsEntity()
{
return damageVsEntity;
}
/**
* The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
*/
public int getHarvestLevel()
{
return harvestLevel;
}
/**
* Return the natural enchantability factor of the material.
*/
public int getEnchantability()
{
return enchantability;
}
}
I just copied and pasted from the regular EnumToolMaterial pretty much.
Here's my CustomItemSword.java:
package net.minecraft.src;
public class CustomItemSword extends Item
{
private int weaponDamage;
private final EnumCustomToolMaterial toolMaterial;
//Dirt
public CustomItemSword(int par1, EnumCustomToolMaterial DIRT)
{
super(par1);
toolMaterial = DIRT;
maxStackSize = 1;
setMaxDamage(DIRT.getMaxUses());
weaponDamage = 4 + DIRT.getDamageVsEntity();}
//Glass
public void CustomItemSword1(int par1, EnumCustomToolMaterial GLASS)
{
super(par1);
toolMaterial = GLASS;
maxStackSize = 1;
setMaxDamage(GLASS.getMaxUses());
weaponDamage = 4 + GLASS.getDamageVsEntity();
}
/**
* Returns the strength of the stack against a given block. 1.0F base, (Quality+1)*2 if correct blocktype, 1.5F if
* sword
*/
public float getStrVsBlock(ItemStack par1ItemStack, Block par2Block)
{
return par2Block.blockID != Block.web.blockID ? 1.5F : 15F;
}
/**
* Current implementations of this method in child classes do not use the entry argument beside ev. They just raise
* the damage on the stack.
*/
public boolean hitEntity(ItemStack par1ItemStack, EntityLiving par2EntityLiving, EntityLiving par3EntityLiving)
{
par1ItemStack.damageItem(1, par3EntityLiving);
return true;
}
public boolean onBlockDestroyed(ItemStack par1ItemStack, int par2, int par3, int par4, int par5, EntityLiving par6EntityLiving)
{
par1ItemStack.damageItem(2, par6EntityLiving);
return true;
}
/**
* Returns the damage against a given entity.
*/
public int getDamageVsEntity(Entity par1Entity)
{
return weaponDamage;
}
/**
* Returns True is the item is renderer in full 3D when hold.
*/
public boolean isFull3D()
{
return true;
}
/**
* returns the action that specifies what animation to play when the items is being used
*/
public EnumAction getItemUseAction(ItemStack par1ItemStack)
{
return EnumAction.block;
}
/**
* How long it takes to use or consume an item
*/
public int getMaxItemUseDuration(ItemStack par1ItemStack)
{
return 0x11940;
}
/**
* Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer
*/
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
par3EntityPlayer.setItemInUse(par1ItemStack, getMaxItemUseDuration(par1ItemStack));
return par1ItemStack;
}
/**
* Returns if the item (tool) can harvest results from the block type.
*/
public boolean canHarvestBlock(Block par1Block)
{
return par1Block.blockID == Block.web.blockID;
}
/**
* Return the enchantability factor of the item, most of the time is based on material.
*/
public int getItemEnchantability()
{
return toolMaterial.getEnchantability();
}
}
The Dirt Sword one worked (where it says //Dirt), though. The Glass Sword didn't. :/
Here's my mod_GlassSword.java:
package net.minecraft.src;
import java.util.Random;
public class mod_GlassSword extends BaseMod
{
public static final Item GlassSword = new CustomItemSword(3010, EnumCustomToolMaterial.GLASS).setItemName("glasssword");
public void load()
{
GlassSword.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/glasssword.png");
ModLoader.addName(GlassSword, "Glass Sword");
ModLoader.addRecipe(new ItemStack(GlassSword, 1), new Object[]
{
"*", "*", "X",
'X', Item.stick, '*', Block.glass
});
}
public String getVersion()
{
return "3.14159265";
}
}
The only errors in all the .javas are in the CustomItemSword and mod_GlassSword.
CustomItemSword error:
super(par1);
"Constructor call must be the first statement in a constructor"
ModLoader.addSmelting(mod_Zimmite.Zimmite.blockID, new ItemStack(Zimmiteingot, 1));
But that is not efficient. A MUCH better way to fix this is by combining your two mod_ files. You only need one to declare your stuff.
Here is what it should look like:
package net.minecraft.src;
import java.util.Random;
public class mod_Zimmite extends BaseMod
{
public static final Block Zimmite = new BlockZimmite(255, ModLoader.addOverride("/terrain.png", "/zimmy.png")).setHardness(15F).setResistance(200F).setStepSound(Block.soundStoneFootstep).setBlockName("Zimmite"); // It's recommended to have non-screen names starting with a lower case character just for preference
public static final Item Zimmiteingot = new ItemZimmiteingot(5000).setItemName("Zimmiteingot");
public void load()
{
}
public mod_Zimmite()
{
ModLoader.registerBlock(Zimmite);
ModLoader.addName(Zimmite, "Zimmite Ore");
ModLoader.addSmelting(Block.planks.blockID, new ItemStack(Zimmite, 1));
Zimmiteingot.iconIndex = ModLoader.addOverride("/gui/items.png", "zimmiteingot.png");
ModLoader.addName(Zimmiteingot, "Zimmite Ingot");
ModLoader.addSmelting(mod_Zimmite.Zimmite.blockID, new ItemStack(Zimmiteingot, 1));
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 7; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(20);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(Zimmite.blockID, 8)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.2.5";
}
}
It doesn't really matter. There is nothing special about the "name" of your mod_ file. For the example I gave the name would have to be mod_Zimmite because that's what I called it in the class declaration.
Thirdly, everyone is going to encounter errors. A good programmer can discover why it isn't working and fix it themselves. I am not saying I will not help you. I am saying you will learn more if you fix it yourself.
Thirdly, everyone is going to encounter errors. A good programmer can discover why it isn't working and fix it themselves. I am not saying I will not help you. I am saying you will learn more if you fix it yourself.
I know i have bee trying to fix and i looked at my code and realised i named somthing wrng and chaged it and im still gettng rrors i fixed a few but the others i dont see a wa to fix heres te code
Error's
== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) ==
> Searching for javac.exe in C:\Program Files
# found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, pa
ram csvs, astyle, astyle config
== Recompiling client ==
> Cleaning bin
> Recompiling
'"C:\Program Files\Java\jdk1.7.0_03\bin\javac" -Xlint:-options -deprecation -g -
source 1.6 -target 1....' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:3: error: class mod_Zimmit
eblock is public, should be declared in a file named mod_Zimmiteblock.java
public class mod_Zimmiteblock extends BaseMod
^
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:5: error: cannot find symb
ol
public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material.
stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValu
e(1F);
^
symbol: variable Zimmiteblock
location: class mod_Zimmiteblock
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:5: error: cannot find symb
ol
public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material.
stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValu
e(1F);
^
symbol: class BlockZimmiteblock
location: class mod_Zimmiteblock
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:5: error: cannot find symb
ol
public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material.
stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValu
e(1F);
^
symbol: variable stone
location: class Material
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:9: error: cannot find symb
ol
Zimmiteblock.blockIndexInTexture = ModLoader.addOverride("/terra
in.png", "/zimmiteblock.png");
^
symbol: variable Zimmiteblock
location: class mod_Zimmiteblock
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:10: error: cannot find sym
bol
ModLoader.registerBlock(Zimmiteblock);
^
symbol: variable Zimmiteblock
location: class mod_Zimmiteblock
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:11: error: cannot find sym
bol
ModLoader.addName(Zimmiteblock, "Zimmite Block");
^
symbol: variable Zimmiteblock
location: class mod_Zimmiteblock
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:12: error: cannot find sym
bol
ModLoader.addRecipe(new ItemStack(mod_Zimmiteblock.Zimmiteblock.
blockID, 1), new Object []
^
symbol: variable Zimmiteblock
location: class mod_Zimmiteblock
8 errors
==================
!! Can not find server sources, try decompiling !!
Press any key to continue . . .
and the mod_Zimmiteblock
package net.minecraft.src;
public class mod_Zimmiteblock extends BaseMod
{
public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material.stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValue(1F);
public void load()
{
Zimmiteblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/zimmiteblock.png");
ModLoader.registerBlock(Zimmiteblock);
ModLoader.addName(Zimmiteblock, "Zimmite Block");
ModLoader.addRecipe(new ItemStack(mod_Zimmiteblock.Zimmiteblock.blockID, 1), new Object []
{"###", "###", "###", Character.valueOf('#'), mod_ItemZimmiteingot.Zimmiteingot.shiftedIndex});
}
public String getVersion()
{
return "1.2.5";
}
}
I've got an problem with my Block and Ore Generation.
I am getting an error:
--- BEGIN ERROR REPORT ab2d395c --------
Generated 26.07.12 09:49
Minecraft: Minecraft 1.2.5
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_05, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: GeForce 8600 GT/PCI/SSE2/3DNOW! version 3.3.0, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: 500
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 6cb89933 ----------
BlockGoldEssence.java
package net.minecraft.src;
import java.util.Random;
public class BlockGoldEssence extends Block
{
public BlockGoldEssence(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random, int j)
{
return mod_GoldEssence.GoldEssence.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}}
mod_GoldEssence.java
package net.minecraft.src;
public class mod_GoldEssence extends BaseMod
{
public static final Block GoldEssence = new BlockGoldEssence(500, 0).setBlockName("GoldEssence").setHardness(3F).setResistance(4F).setLightValue(1F);
public void load()
{
GoldEssence.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/GoldEssence.png");
ModLoader.registerBlock(GoldEssence);
ModLoader.addName(GoldEssence, "Golden Essence Block");
}
public String getVersion()
{
return "1.2.5";
}
}
mod_GoldEssenceGeneration.java
package net.minecraft.src;
import java.util.Random;
public class mod_GoldEssenceGeneration extends BaseMod
{
public static final Block GoldEssence = new BlockGoldEssence(500, 0).setBlockName("GoldEssence").setHardness(3F).setResistance(4F).setLightValue(1F);
public void load()
{
GoldEssence.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/GoldEssence.png");
ModLoader.registerBlock(GoldEssence);
ModLoader.addName(GoldEssence, "Golden Essence Block");
}
public void generateSurface(World world, Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 7; i++)
{
int randPosX = chunkX + random.nextInt(5);
int randPosY = random.nextInt(30);
int randPosZ = chunkZ + random.nextInt(5);
(new WorldGenMinable(GoldEssence.blockID, 25)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.2.5";
}
}
Anyone know how to fix it?
Your mod_GoldEssence.java block id is to high
try his
public static final Block GoldEssence = new BlockGoldEssence(255, 0).setBlockName("GoldEssence").setHardness(3F).setResistance(4F).setLightValue(1F);
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT e5f5cc10 --------
Generated 7/26/12 3:59 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_05, Oracle Corporation
VM: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel® HD Graphics version 2.1.0 - Build 8.15.10.2555, Intel
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Character
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:371)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:412)
at net.minecraft.src.mod_Deadspace.<init>(mod_Deadspace.java:61)
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 2c81a209 ----------
Please reply because this my second mod i guess so im new to it
Techguy do you know how to make multiple blocks in one png? I had to keep using ModLoader.addOverride and everytime it would say 20 left 19 left 18 left and now I have too many overrides and get a crash that looks like this:
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_morecontent.load(mod_morecontent.java:116)
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)
Techguy do you know how to make multiple blocks in one png? I had to keep using ModLoader.addOverride and everytime it would say 20 left 19 left 18 left and now I have too many overrides and get a crash that looks like this:
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_morecontent.load(mod_morecontent.java:116)
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)
Or do you know anyone that has a tutorial on it.
i know im not techguy but its that Terrian.png has no more spaces left in it think of stone block icon 1 square so minecraft: 30 squares. Your mod: 15
Teriain.png space: 40
it would be too much unless if you could make it reads like a second terrain.png ive used a mod for it before but i forgot what it was called
I know i have bee trying to fix and i looked at my code and realised i named somthing wrng and chaged it and im still gettng rrors i fixed a few but the others i dont see a wa to fix heres te code
Error's
== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) ==
> Searching for javac.exe in C:\Program Files
# found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, pa
ram csvs, astyle, astyle config
== Recompiling client ==
> Cleaning bin
> Recompiling
'"C:\Program Files\Java\jdk1.7.0_03\bin\javac" -Xlint:-options -deprecation -g -
source 1.6 -target 1....' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:3: error: class mod_Zimmit
eblock is public, should be declared in a file named mod_Zimmiteblock.java
public class mod_Zimmiteblock extends BaseMod
^
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:5: error: cannot find symb
ol
public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material.
stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValu
e(1F);
^
symbol: variable Zimmiteblock
location: class mod_Zimmiteblock
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:5: error: cannot find symb
ol
public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material.
stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValu
e(1F);
^
symbol: class BlockZimmiteblock
location: class mod_Zimmiteblock
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:5: error: cannot find symb
ol
public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material.
stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValu
e(1F);
^
symbol: variable stone
location: class Material
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:9: error: cannot find symb
ol
Zimmiteblock.blockIndexInTexture = ModLoader.addOverride("/terra
in.png", "/zimmiteblock.png");
^
symbol: variable Zimmiteblock
location: class mod_Zimmiteblock
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:10: error: cannot find sym
bol
ModLoader.registerBlock(Zimmiteblock);
^
symbol: variable Zimmiteblock
location: class mod_Zimmiteblock
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:11: error: cannot find sym
bol
ModLoader.addName(Zimmiteblock, "Zimmite Block");
^
symbol: variable Zimmiteblock
location: class mod_Zimmiteblock
src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:12: error: cannot find sym
bol
ModLoader.addRecipe(new ItemStack(mod_Zimmiteblock.Zimmiteblock.
blockID, 1), new Object []
^
symbol: variable Zimmiteblock
location: class mod_Zimmiteblock
8 errors
==================
!! Can not find server sources, try decompiling !!
Press any key to continue . . .
and the mod_Zimmiteblock
package net.minecraft.src;
public class mod_Zimmiteblock extends BaseMod
{
public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material.stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValue(1F);
public void load()
{
Zimmiteblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/zimmiteblock.png");
ModLoader.registerBlock(Zimmiteblock);
ModLoader.addName(Zimmiteblock, "Zimmite Block");
ModLoader.addRecipe(new ItemStack(mod_Zimmiteblock.Zimmiteblock.blockID, 1), new Object []
{"###", "###", "###", Character.valueOf('#'), mod_ItemZimmiteingot.Zimmiteingot.shiftedIndex});
}
public String getVersion()
{
return "1.2.5";
}
}
It's just me that gets this crap error. I'm sooo pissed off right now. It keeps giving me a error when I try to "Start Client" tells me that image not found! I NAMED IT CORRECTLY, I PUT IT IN THE RIGHT LOCATION, ITS A .png IMAGE, IT IS A 16x 16x IMAGE, I DONT USE ECLIPSE, and I pasted it in like 5 different places just to be sure, and It stills gives me the error, and yes I have modloader installed. And it recompiles with no Errors! HELP ME PLS!!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Answer:
Your Zimmite block is not being recognized because Zimmite it is not an accessible variable. You should be able to fix this by replacing:
With:
But that is not efficient. A MUCH better way to fix this is by combining your two mod_ files. You only need one to declare your stuff.
Here is what it should look like:
package net.minecraft.src; import java.util.Random; public class mod_Zimmite extends BaseMod { public static final Block Zimmite = new BlockZimmite(255, ModLoader.addOverride("/terrain.png", "/zimmy.png")).setHardness(15F).setResistance(200F).setStepSound(Block.soundStoneFootstep).setBlockName("Zimmite"); // It's recommended to have non-screen names starting with a lower case character just for preference public static final Item Zimmiteingot = new ItemZimmiteingot(5000).setItemName("Zimmiteingot"); public void load() { } public mod_Zimmite() { ModLoader.registerBlock(Zimmite); ModLoader.addName(Zimmite, "Zimmite Ore"); ModLoader.addSmelting(Block.planks.blockID, new ItemStack(Zimmite, 1)); Zimmiteingot.iconIndex = ModLoader.addOverride("/gui/items.png", "zimmiteingot.png"); ModLoader.addName(Zimmiteingot, "Zimmite Ingot"); ModLoader.addSmelting(mod_Zimmite.Zimmite.blockID, new ItemStack(Zimmiteingot, 1)); } public void generateSurface(World world, Random random, int chunkX, int chunkZ) { for(int i = 0; i < 7; i++) { int randPosX = chunkX + random.nextInt(16); int randPosY = random.nextInt(20); int randPosZ = chunkZ + random.nextInt(16); (new WorldGenMinable(Zimmite.blockID, 8)).generate(world, random, randPosX, randPosY, randPosZ); } } public String getVersion() { return "1.2.5"; } }And please put your code in a spoiler next time.
Make high-quality models in the Techne. And do the model in Blender.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumExample:
###
$
$
#=dirt
$=diamond
how would i do that
Edit:Nevermind i found the tutorial
okay. Thanks for helping!
Here's my EnumCustomToolMaterial.java:
package net.minecraft.src; public enum EnumCustomToolMaterial { GLASS(1, 64, 2F, 0, 9), DIRT(0, 80, 3F, 0, 8), LAPIS(1, 200, 5F, 1, 12), OBSIDIAN(3, 2010, 9F, 3, 11), REDSTONE(2, 308, 6F, 2, 14); /** * The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD) */ private final int harvestLevel; /** * The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32) */ private final int maxUses; /** * The strength of this tool material against blocks which it is effective against. */ private final float efficiencyOnProperMaterial; /** Damage versus entities. */ private final int damageVsEntity; /** Defines the natural enchantability factor of the material. */ private final int enchantability; private EnumCustomToolMaterial(int par3, int par4, float par5, int par6, int par7) { harvestLevel = par3; maxUses = par4; efficiencyOnProperMaterial = par5; damageVsEntity = par6; enchantability = par7; } /** * The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32) */ public int getMaxUses() { return maxUses; } /** * The strength of this tool material against blocks which it is effective against. */ public float getEfficiencyOnProperMaterial() { return efficiencyOnProperMaterial; } /** * Damage versus entities. */ public int getDamageVsEntity() { return damageVsEntity; } /** * The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD) */ public int getHarvestLevel() { return harvestLevel; } /** * Return the natural enchantability factor of the material. */ public int getEnchantability() { return enchantability; } }Here's my CustomItemSword.java:
package net.minecraft.src; public class CustomItemSword extends Item { private int weaponDamage; private final EnumCustomToolMaterial toolMaterial; //Dirt public CustomItemSword(int par1, EnumCustomToolMaterial DIRT) { super(par1); toolMaterial = DIRT; maxStackSize = 1; setMaxDamage(DIRT.getMaxUses()); weaponDamage = 4 + DIRT.getDamageVsEntity();} //Glass public void CustomItemSword1(int par1, EnumCustomToolMaterial GLASS) { super(par1); toolMaterial = GLASS; maxStackSize = 1; setMaxDamage(GLASS.getMaxUses()); weaponDamage = 4 + GLASS.getDamageVsEntity(); } /** * Returns the strength of the stack against a given block. 1.0F base, (Quality+1)*2 if correct blocktype, 1.5F if * sword */ public float getStrVsBlock(ItemStack par1ItemStack, Block par2Block) { return par2Block.blockID != Block.web.blockID ? 1.5F : 15F; } /** * Current implementations of this method in child classes do not use the entry argument beside ev. They just raise * the damage on the stack. */ public boolean hitEntity(ItemStack par1ItemStack, EntityLiving par2EntityLiving, EntityLiving par3EntityLiving) { par1ItemStack.damageItem(1, par3EntityLiving); return true; } public boolean onBlockDestroyed(ItemStack par1ItemStack, int par2, int par3, int par4, int par5, EntityLiving par6EntityLiving) { par1ItemStack.damageItem(2, par6EntityLiving); return true; } /** * Returns the damage against a given entity. */ public int getDamageVsEntity(Entity par1Entity) { return weaponDamage; } /** * Returns True is the item is renderer in full 3D when hold. */ public boolean isFull3D() { return true; } /** * returns the action that specifies what animation to play when the items is being used */ public EnumAction getItemUseAction(ItemStack par1ItemStack) { return EnumAction.block; } /** * How long it takes to use or consume an item */ public int getMaxItemUseDuration(ItemStack par1ItemStack) { return 0x11940; } /** * Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer */ public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { par3EntityPlayer.setItemInUse(par1ItemStack, getMaxItemUseDuration(par1ItemStack)); return par1ItemStack; } /** * Returns if the item (tool) can harvest results from the block type. */ public boolean canHarvestBlock(Block par1Block) { return par1Block.blockID == Block.web.blockID; } /** * Return the enchantability factor of the item, most of the time is based on material. */ public int getItemEnchantability() { return toolMaterial.getEnchantability(); } }Here's my mod_GlassSword.java:
package net.minecraft.src; import java.util.Random; public class mod_GlassSword extends BaseMod { public static final Item GlassSword = new CustomItemSword(3010, EnumCustomToolMaterial.GLASS).setItemName("glasssword"); public void load() { GlassSword.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/glasssword.png"); ModLoader.addName(GlassSword, "Glass Sword"); ModLoader.addRecipe(new ItemStack(GlassSword, 1), new Object[] { "*", "*", "X", 'X', Item.stick, '*', Block.glass }); } public String getVersion() { return "3.14159265"; } }The only errors in all the .javas are in the CustomItemSword and mod_GlassSword.
CustomItemSword error:
mod_GlassSword error:
what do iname the combined mod_files?
It doesn't really matter. There is nothing special about the "name" of your mod_ file. For the example I gave the name would have to be mod_Zimmite because that's what I called it in the class declaration.
Of course, you could name it anything.
Example:
mod_Zimdot.java
Understand?
mod_Zimmiteblock
package net.minecraft.src public class mod_Zimmiteblock extends BaseMod { public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material.stone).setBlockname(zimmiteblock).setHardness(3F).setResistance(4F).setLightValue(1F); public void load() { Zimmiteblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/zimmiteblock.png"); ModLoader.registerBlock(Zimmiteblock); ModLoader.addName(Zimmiteblock, "Zimmite Block"); ModLoader.addRecipe(new ItemStack(mod_ItemZimmiteingot.Zimmiteingot.blockID, 1) new Object [] {"###", "###", "###", Character.valueOf('#'), mod_ItemZimmiteingot.Zimmiteingot.blockID}); } public String getVersion() { return "1.2.5"; } }Error
== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) == > Searching for javac.exe in C:\Program Files # found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, pa ram csvs, astyle, astyle config == Recompiling client == > Cleaning bin > Recompiling '"C:\Program Files\Java\jdk1.7.0_03\bin\javac" -Xlint:-options -deprecation -g - source 1.6 -target 1....' failed : 1 == ERRORS FOUND == src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:1: error: ';' expected package net.minecraft.src ^ src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:12: error: ')' expected ModLoader.addRecipe(new ItemStack(mod_ItemZimmiteingot.Zimmitein got.blockID, 1) new Object [] ^ src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:12: error: not a statement ModLoader.addRecipe(new ItemStack(mod_ItemZimmiteingot.Zimmitein got.blockID, 1) new Object [] ^ src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:12: error: ';' expected ModLoader.addRecipe(new ItemStack(mod_ItemZimmiteingot.Zimmitein got.blockID, 1) new Object [] ^ src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:13: error: not a statement {"###", "###", "###", Character.valueOf('#'), mod_ItemZimmiteing ot.Zimmiteingot.blockID}); ^ src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:13: error: ';' expected {"###", "###", "###", Character.valueOf('#'), mod_ItemZimmiteing ot.Zimmiteingot.blockID}); ^ src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:13: error: ';' expected {"###", "###", "###", Character.valueOf('#'), mod_ItemZimmiteing ot.Zimmiteingot.blockID}); ^ src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:13: error: not a statement {"###", "###", "###", Character.valueOf('#'), mod_ItemZimmiteing ot.Zimmiteingot.blockID}); ^ src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:13: error: ';' expected {"###", "###", "###", Character.valueOf('#'), mod_ItemZimmiteing ot.Zimmiteingot.blockID}); ^ src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:13: error: illegal start o f expression {"###", "###", "###", Character.valueOf('#'), mod_ItemZimmiteing ot.Zimmiteingot.blockID}); ^ 10 errors ================== !! Can not find server sources, try decompiling !! Press any key to continue . . .Answer:
First, spoilers are made like this(without the *):
[*Spoiler]
Text here...
[*/Spoiler]
Second, your code line needs to be:
ModLoader.addRecipe(new ItemStack(mod_ItemZimmiteingot.Zimmiteingot.shiftedIndex, 1) new Object [] {"###", "###", "###", Character.valueOf('#'), mod_ItemZimmiteingot.Zimmiteingot.shiftedIndex});Instead of:
ModLoader.addRecipe(new ItemStack(mod_ItemZimmiteingot.Zimmiteingot.blockID, 1) new Object [] {"###", "###", "###", Character.valueOf('#'), mod_ItemZimmiteingot.Zimmiteingot.blockID});Thirdly, everyone is going to encounter errors. A good programmer can discover why it isn't working and fix it themselves. I am not saying I will not help you. I am saying you will learn more if you fix it yourself.
I know i have bee trying to fix and i looked at my code and realised i named somthing wrng and chaged it and im still gettng rrors i fixed a few but the others i dont see a wa to fix heres te code
Error's
== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) == > Searching for javac.exe in C:\Program Files # found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, pa ram csvs, astyle, astyle config == Recompiling client == > Cleaning bin > Recompiling '"C:\Program Files\Java\jdk1.7.0_03\bin\javac" -Xlint:-options -deprecation -g - source 1.6 -target 1....' failed : 1 == ERRORS FOUND == src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:3: error: class mod_Zimmit eblock is public, should be declared in a file named mod_Zimmiteblock.java public class mod_Zimmiteblock extends BaseMod ^ src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:5: error: cannot find symb ol public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material. stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValu e(1F); ^ symbol: variable Zimmiteblock location: class mod_Zimmiteblock src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:5: error: cannot find symb ol public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material. stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValu e(1F); ^ symbol: class BlockZimmiteblock location: class mod_Zimmiteblock src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:5: error: cannot find symb ol public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material. stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValu e(1F); ^ symbol: variable stone location: class Material src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:9: error: cannot find symb ol Zimmiteblock.blockIndexInTexture = ModLoader.addOverride("/terra in.png", "/zimmiteblock.png"); ^ symbol: variable Zimmiteblock location: class mod_Zimmiteblock src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:10: error: cannot find sym bol ModLoader.registerBlock(Zimmiteblock); ^ symbol: variable Zimmiteblock location: class mod_Zimmiteblock src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:11: error: cannot find sym bol ModLoader.addName(Zimmiteblock, "Zimmite Block"); ^ symbol: variable Zimmiteblock location: class mod_Zimmiteblock src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:12: error: cannot find sym bol ModLoader.addRecipe(new ItemStack(mod_Zimmiteblock.Zimmiteblock. blockID, 1), new Object [] ^ symbol: variable Zimmiteblock location: class mod_Zimmiteblock 8 errors ================== !! Can not find server sources, try decompiling !! Press any key to continue . . .and the mod_Zimmiteblock
package net.minecraft.src; public class mod_Zimmiteblock extends BaseMod { public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material.stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValue(1F); public void load() { Zimmiteblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/zimmiteblock.png"); ModLoader.registerBlock(Zimmiteblock); ModLoader.addName(Zimmiteblock, "Zimmite Block"); ModLoader.addRecipe(new ItemStack(mod_Zimmiteblock.Zimmiteblock.blockID, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), mod_ItemZimmiteingot.Zimmiteingot.shiftedIndex}); } public String getVersion() { return "1.2.5"; } }Soon to be made!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumBoth of you, post your code (in a spoiler and in code tags
Your mod_GoldEssence.java block id is to high
try his
public static final Block GoldEssence = new BlockGoldEssence(255, 0).setBlockName("GoldEssence").setHardness(3F).setResistance(4F).setLightValue(1F);
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumpackage net.minecraft.src; import java.util.Random; import net.minecraft.client.Minecraft; import java.util.List; public class mod_Deadspace extends BaseMod { public static final Item ItemEnergyCrystal = new ItemEnergyCrystal(5000).setItemName("ItemEnergyCrystal"); public static final Block EnergyCrystal = new BlockEnergyCrystal(163, 0).setBlockName("EnergyCrystal").setHardness(3F).setResistance(4F).setLightValue(1F); Minecraft mc = ModLoader.getMinecraftInstance(); public static final Item PlasmaCutterClip = new Item(499).setMaxStackSize(1).setItemName("Plasma Cutter Ammo"); public static final Item PlasmaCutter= new ItemPlasmaCutter(500, 5, 30, PlasmaCutterClip.shiftedIndex, 0, "gun.fire", "gun.reload").setItemName("Plasma Cutter"); public void load() { ModLoader.setInGameHook(this, true, false); ModLoader.setInGUIHook(this, true, false); } public boolean onTickInGame(float f, Minecraft minecraft) { if(minecraft.currentScreen == null) { creativeInventory = null; } return true; } public boolean onTickInGUI(float f, Minecraft minecraft, GuiScreen guiscreen) { if((guiscreen instanceof GuiContainerCreative) && !(creativeInventory instanceof GuiContainerCreative) && !minecraft.theWorld.isRemote) { Container container = ((GuiContainer)guiscreen).inventorySlots; List list = ((ContainerCreative)container).itemList; int i = 0; list.add(new ItemStack(EnergyCrystal, 1, i)); list.add(new ItemStack(ItemEnergyCrystal, 1, i)); list.add(new ItemStack(PlasmaCutter, 1, i)); list.add(new ItemStack(PlasmaCutterClip, 1, i)); } creativeInventory = guiscreen; return true; } private static GuiScreen creativeInventory; { EnergyCrystal.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Firediamond/EnergyCrystelOre.png"); ModLoader.registerBlock(EnergyCrystal); ModLoader.addName(EnergyCrystal, "Energy Crystal Ore"); ModLoader.addSmelting(EnergyCrystal.blockID, new ItemStack(ItemEnergyCrystal, 1)); ItemEnergyCrystal.iconIndex = ModLoader.addOverride("/gui/items.png", "Firediamond/EnergyCrystelItem.png"); ModLoader.addName(ItemEnergyCrystal, "Energy Crystal"); ModLoader.addName(PlasmaCutter, "Plasma Cutter"); ModLoader.addName(PlasmaCutterClip, "Plasma Cutter Clip"); PlasmaCutter.iconIndex = ModLoader.addOverride("/gui/items.png", "Firediamond/PlasmaCutter.png"); PlasmaCutterClip.iconIndex = ModLoader.addOverride("/gui/items.png", "Firediamond/PlasmaCutterAmmo.png"); ModLoader.addRecipe(new ItemStack(PlasmaCutter, 1), new Object [] {" ### ", " #$$","#$%", Character.valueOf('%'), ItemEnergyCrystal, Character.valueOf('#'), Item.ingotIron,Character.valueOf('$'), Item.dyePowder, 1 , 4}); ModLoader.addRecipe(new ItemStack(PlasmaCutterClip, 1), new Object [] {"## "," $$ "," $%", Character.valueOf('%'), ItemEnergyCrystal, Character.valueOf('#'), Item.ingotIron,Character.valueOf('$'), Item.dyePowder, 1 , 4}); } public void generateSurface(World world, Random random, int chunkX, int chunkZ) { for(int i = 0; i < 5; i++) { int randPosX = chunkX + random.nextInt(16); int randPosY = random.nextInt(128); int randPosZ = chunkZ + random.nextInt(16); (new WorldGenMinable(EnergyCrystal.blockID, 25)).generate(world, random, randPosX, randPosY, randPosZ); } } public String getVersion() { return "1.2.5"; } }Mods loaded: 2
ModLoader 1.2.5
mod_Color_Blocks 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT e5f5cc10 --------
Generated 7/26/12 3:59 PM
Minecraft: Minecraft 1.2.5
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_05, Oracle Corporation
VM: Java HotSpotâ„¢ 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel® HD Graphics version 2.1.0 - Build 8.15.10.2555, Intel
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Character
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:371)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:412)
at net.minecraft.src.mod_Deadspace.<init>(mod_Deadspace.java:61)
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 2c81a209 ----------
Soon to be made!
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumi know im not techguy but its that Terrian.png has no more spaces left in it think of stone block icon 1 square so minecraft: 30 squares. Your mod: 15
Teriain.png space: 40
it would be too much unless if you could make it reads like a second terrain.png ive used a mod for it before but i forgot what it was called
Error's
== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) == > Searching for javac.exe in C:\Program Files # found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, pa ram csvs, astyle, astyle config == Recompiling client == > Cleaning bin > Recompiling '"C:\Program Files\Java\jdk1.7.0_03\bin\javac" -Xlint:-options -deprecation -g - source 1.6 -target 1....' failed : 1 == ERRORS FOUND == src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:3: error: class mod_Zimmit eblock is public, should be declared in a file named mod_Zimmiteblock.java public class mod_Zimmiteblock extends BaseMod ^ src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:5: error: cannot find symb ol public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material. stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValu e(1F); ^ symbol: variable Zimmiteblock location: class mod_Zimmiteblock src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:5: error: cannot find symb ol public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material. stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValu e(1F); ^ symbol: class BlockZimmiteblock location: class mod_Zimmiteblock src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:5: error: cannot find symb ol public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material. stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValu e(1F); ^ symbol: variable stone location: class Material src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:9: error: cannot find symb ol Zimmiteblock.blockIndexInTexture = ModLoader.addOverride("/terra in.png", "/zimmiteblock.png"); ^ symbol: variable Zimmiteblock location: class mod_Zimmiteblock src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:10: error: cannot find sym bol ModLoader.registerBlock(Zimmiteblock); ^ symbol: variable Zimmiteblock location: class mod_Zimmiteblock src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:11: error: cannot find sym bol ModLoader.addName(Zimmiteblock, "Zimmite Block"); ^ symbol: variable Zimmiteblock location: class mod_Zimmiteblock src\minecraft\net\minecraft\src\mod_ZimmiteBlock.java:12: error: cannot find sym bol ModLoader.addRecipe(new ItemStack(mod_Zimmiteblock.Zimmiteblock. blockID, 1), new Object [] ^ symbol: variable Zimmiteblock location: class mod_Zimmiteblock 8 errors ================== !! Can not find server sources, try decompiling !! Press any key to continue . . .and the mod_Zimmiteblock
package net.minecraft.src; public class mod_Zimmiteblock extends BaseMod { public static final Block ZimmiteBlock = new BlockZimmiteblock(772, 0, Material.stone).setBlockname(Zimmiteblock).setHardness(3F).setResistance(4F).setLightValue(1F); public void load() { Zimmiteblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/zimmiteblock.png"); ModLoader.registerBlock(Zimmiteblock); ModLoader.addName(Zimmiteblock, "Zimmite Block"); ModLoader.addRecipe(new ItemStack(mod_Zimmiteblock.Zimmiteblock.blockID, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), mod_ItemZimmiteingot.Zimmiteingot.shiftedIndex}); } public String getVersion() { return "1.2.5"; } }The line of code is:
protected int getDropItemId()
{
return Item.HumanFlesh.shiftedIndex;
But it is giving me an error saying:
"HumanFlesh can not be resolved or is not a field.