That may be your opinion, but I have a separate program to view the minecraft classes. On an unrelated note, I fixed my problem and have a new error.
java.lang.NoClassDefFoundError: mod_block (wrong name: test/mod_test)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at ModLoader.addMod(ModLoader.java:289)
at ModLoader.readFromClassPath(ModLoader.java:1210)
at ModLoader.init(ModLoader.java:886)
at ModLoader.addAllRenderers(ModLoader.java:189)
at ahu.<init>(ahu.java:77)
at ahu.<clinit>(ahu.java:8)
at net.minecraft.client.Minecraft.a(SourceFile:273)
at net.minecraft.client.Minecraft.run(SourceFile:657)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT c632ccff ----------
That may be your opinion, but I have a separate program to view the minecraft classes. On an unrelated note, I fixed my problem and have a new error.
java.lang.NoClassDefFoundError: mod_block (wrong name: test/mod_test)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at ModLoader.addMod(ModLoader.java:289)
at ModLoader.readFromClassPath(ModLoader.java:1210)
at ModLoader.init(ModLoader.java:886)
at ModLoader.addAllRenderers(ModLoader.java:189)
at ahu.<init>(ahu.java:77)
at ahu.<clinit>(ahu.java:8)
at net.minecraft.client.Minecraft.a(SourceFile:273)
at net.minecraft.client.Minecraft.run(SourceFile:657)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT c632ccff ----------
It wasn't an opinion :l I was stating facts. I was listing off the purposes that it has. The only opinion was that I said it doesn't get in the way. I don't see how much of an opinion that is for a few reasons, you gave me no arguments to why it gets in the way because it does nothing but help.
Rollback Post to RevisionRollBack
My old signature was stupid and outdated. It's gone now.
Mods loaded: 6
ModLoader 1.2.5
mod_MinorExtras 1.2.5
mod_SecretExtra 1.2.5
mod_CreeperBlock 1.2.5
mod_TMsMod 1.2.5
mod_PocketGodIslanders 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 23c7d936 --------
Generated 21/04/12 9:24 PM
Minecraft: Minecraft 1.2.5
OS: Windows XP (x86) version 5.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Quadro NVS 285/PCI/SSE2 version 2.1.2, NVIDIA Corporation
java.lang.NullPointerException
at tw.a(SourceFile:67)
at tw.a(SourceFile:16)
at ahu.a(ahu.java:149)
at ahu.a(ahu.java:143)
at l.a(SourceFile:313)
at lr.a(SourceFile:838)
at lr.b(SourceFile:695)
at EntityRendererProxy.b(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.x(SourceFile:752)
at net.minecraft.client.Minecraft.run(SourceFile:671)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 53a9a1d0 ----------
Hey Techguy, I followed your steps in making a mob hold something, but your tutorial said it is set up for renderbiped.class. My mob isn't biped, so how can I make it work?
Mods loaded: 6
ModLoader 1.2.5
mod_MinorExtras 1.2.5
mod_SecretExtra 1.2.5
mod_CreeperBlock 1.2.5
mod_TMsMod 1.2.5
mod_PocketGodIslanders 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 23c7d936 --------
Generated 21/04/12 9:24 PM
Minecraft: Minecraft 1.2.5
OS: Windows XP (x86) version 5.1
Java: 1.7.0_03, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Quadro NVS 285/PCI/SSE2 version 2.1.2, NVIDIA Corporation
java.lang.NullPointerException
at tw.a(SourceFile:67)
at tw.a(SourceFile:16)
at ahu.a(ahu.java:149)
at ahu.a(ahu.java:143)
at l.a(SourceFile:313)
at lr.a(SourceFile:838)
at lr.b(SourceFile:695)
at EntityRendererProxy.b(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.x(SourceFile:752)
at net.minecraft.client.Minecraft.run(SourceFile:671)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 53a9a1d0 ----------
Hey Techguy, I followed your steps in making a mob hold something, but your tutorial said it is set up for renderbiped.class. My mob isn't biped, so how can I make it work?
I'm having some issues related to creating a new Fishing Rod.
I made a new class ItemFishingRod, but then when I enter the game and make the Rod, I can swing it but the fishing hook does not appear.
Hello, I'm working on a mod called ArcadiaCraft with Nickelordzero.
I've tried to add armor (this isn't on your page, so maybe you can't help).
source:
mod_ArcadiaCraft.java
package net.minecraft.src;
import java.util.Random;
//The "ArcadiaCraft" Mod was created by.[Nicholas Mitrenga-Abreu and Falco Rainier van der Meulen]
//The Mod(ArcadiaCraft)'s Code:
public class mod_ArcadiaCraft extends BaseMod
{
//declaration
public static final Block ArcraphysBlock = new BlockArcraphysBlock(160, 0).setBlockName("Arcraphys Block").setHardness(5F).setResistance(20F);
public static final Item Arcraphys = new ItemArcraphys(5000).setItemName("Arcraphys");
public static final Block ArcraphysOre = new BlockArcraphysOre(161, 0).setBlockName("Arcraphys Ore").setHardness(5F).setResistance(20F);
public static final Block Diphos = new BlockFlower(162, 0).setBlockName("Diphos");
public static Item ArcraphysHelmet = (new ItemArmor(170, 3, ModLoader.addArmor("ARCRAPHYS"), 0).setItemName("ARCRAPHYS"));
public static Item ArcraphysBody = (new ItemArmor(171, 3, ModLoader.addArmor("ARCRAPHYS"), 1).setItemName("ARCRAPHYS"));
public static Item ArcraphysLegs = (new ItemArmor(172, 3, ModLoader.addArmor("ARCRAPHYS"), 2).setItemName("ARCRAPHYS"));
public static Item ArcraphysBoots = (new ItemArmor(173, 3, ModLoader.addArmor("ARCRAPHYS"), 3).setItemName("ARCRAPHYS"));
public void load()
{
//Texture Overrides
ArcraphysBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/arcBlock.png");
Arcraphys.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/arcraphys.png");
ArcraphysOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Blocks/arcOre.png");
Diphos.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/arc/Plants/Diphos.png");
ArcraphysHelmet.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/arcHelm.png");
ArcraphysLegs.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/arcLeggings.png");
ArcraphysBody.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/arcChest.png");
ArcraphysBoots.iconIndex = ModLoader.addOverride("/gui/items.png", "/arc/Items/arcBoots.png");
//Register Blocks
ModLoader.registerBlock(ArcraphysBlock);
ModLoader.registerBlock(ArcraphysOre);
ModLoader.registerBlock(Diphos);
//Add Names
ModLoader.addName(ArcraphysBlock, "Block of Arcraphys");
ModLoader.addName(Arcraphys, "Arcraphys");
ModLoader.addName(ArcraphysOre, "Arcraphys Ore");
ModLoader.addName(ArcraphysHelmet, "Arcraphys Helmet");
ModLoader.addName(ArcraphysLegs, "Arcraphys Legs");
ModLoader.addName(ArcraphysBody, "Arcraphys Body");
ModLoader.addName(ArcraphysBoots, "Arcraphys Boots");
//Crafting Recipies
ModLoader.addRecipe(new ItemStack(ArcraphysBlock, 1), new Object [] {"###", "###", "###", Character.valueOf('#'), Arcraphys});
ModLoader.addRecipe(new ItemStack(ArcraphysHelmet, 1), new Object [] {"###", "# #", Character.valueOf('#'), Arcraphys});
ModLoader.addRecipe(new ItemStack(ArcraphysLegs, 1), new Object [] {"###", "# #", "# #", Character.valueOf('#'), Arcraphys});
ModLoader.addRecipe(new ItemStack(ArcraphysBody, 1), new Object [] {"# #", "###", "###", Character.valueOf('#'), Arcraphys});
ModLoader.addRecipe(new ItemStack(ArcraphysBoots, 1), new Object [] {"# #", "# #", Character.valueOf('#'), Arcraphys});
//Smelting Recipies
}
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(30 - 4);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(ArcraphysOre.blockID, 10)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.2.5";
}
}
EnumArmorMaterial.java
package net.minecraft.src;
public enum EnumArmorMaterial
{
CLOTH(5, new int[] {
1, 3, 2, 1
}, 15),
CHAIN(15, new int[] {
2, 5, 4, 1
}, 12),
IRON(15, new int[] {
2, 6, 5, 2
}, 9),
GOLD(7, new int[] {
2, 5, 3, 1
}, 25),
DIAMOND(33, new int[] {
3, 8, 6, 3
}, 10),
ARCRAPHYS(66, new int[] {
6, 16, 12, 6
}, 20);
/**
* Holds the maximum damage factor (each piece multiply this by it's own value) of the material, this is the item
* damage (how much can absorb before breaks)
*/
private int maxDamageFactor;
private int damageReductionAmountArray[];
/** Return the enchantability factor of the material */
private int enchantability;
private EnumArmorMaterial(int par3, int par4ArrayOfInteger[], int par5)
{
maxDamageFactor = par3;
damageReductionAmountArray = par4ArrayOfInteger;
enchantability = par5;
}
/**
* Returns the durability for a armor slot of for this type.
*/
public int getDurability(int par1)
{
return ItemArmor.getMaxDamageArray()[par1] * maxDamageFactor;
}
/**
* Return the damage reduction (each 1 point is a half a shield on gui) of the piece index passed (0 = helmet, 1 =
* plate, 2 = legs and 3 = boots)
*/
public int getDamageReductionAmount(int par1)
{
return damageReductionAmountArray[par1];
}
/**
* Return the enchantability factor of the material.
*/
public int getEnchantability()
{
return enchantability;
}
}
And the crash:
== MCP 6.2 (data: 6.2, client: 1.2.5, server: 1.2.5) ==
# 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_ArcadiaCraft.java:15: error: constructor Ite
mArmor in class ItemArmor cannot be applied to given types;
public static Item ArcraphysHelmet = (new ItemArmor(170, 3, ModLoader.addArmor("
ARCRAPHYS"), 0).setItemName("ARCRAPHYS"));
^
required: int,EnumArmorMaterial,int,int
found: int,int,int,int
reason: actual argument int cannot be converted to EnumArmorMaterial by method
invocation conversion
src\minecraft\net\minecraft\src\mod_ArcadiaCraft.java:16: error: constructor Ite
mArmor in class ItemArmor cannot be applied to given types;
public static Item ArcraphysBody = (new ItemArmor(171, 3, ModLoader.addArmor("AR
CRAPHYS"), 1).setItemName("ARCRAPHYS"));
^
required: int,EnumArmorMaterial,int,int
found: int,int,int,int
reason: actual argument int cannot be converted to EnumArmorMaterial by method
invocation conversion
src\minecraft\net\minecraft\src\mod_ArcadiaCraft.java:17: error: constructor Ite
mArmor in class ItemArmor cannot be applied to given types;
public static Item ArcraphysLegs = (new ItemArmor(172, 3, ModLoader.addArmor("AR
CRAPHYS"), 2).setItemName("ARCRAPHYS"));
^
required: int,EnumArmorMaterial,int,int
found: int,int,int,int
reason: actual argument int cannot be converted to EnumArmorMaterial by method
invocation conversion
src\minecraft\net\minecraft\src\mod_ArcadiaCraft.java:18: error: constructor Ite
mArmor in class ItemArmor cannot be applied to given types;
public static Item ArcraphysBoots = (new ItemArmor(173, 3, ModLoader.addArmor("A
RCRAPHYS"), 3).setItemName("ARCRAPHYS"));
^
required: int,EnumArmorMaterial,int,int
found: int,int,int,int
reason: actual argument int cannot be converted to EnumArmorMaterial by method
invocation conversion
4 errors
==================
!! Can not find server sources, try decompiling !!
MCP?! who said I was using mcp? all it's done is get in the way. eclipse already compiled some of my files, so I know the coder pack can't be the only way.
I'm only going to help people using MCP. If someone can't get it to work without using MCP, then they should be using it.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
This is Great it helped me a lot Can anyone tell me how I would make it so you can catch different types of fish? i have the fish made but don't quite get how i would make it so you get them by fishing, i know its something to do with the EntityFishHook. But that's it.
My question was never answered, so I'm going to ask it again. How can I make an already existing mob spawn more or spawn less. Hopefully doing it with the least amount of editing files or none if possible.
Rollback Post to RevisionRollBack
My old signature was stupid and outdated. It's gone now.
Once you create the mod_ file where do u put it before you recompile and the textures??
What do you mean by "Where should I put it?"? Your file should have been created in the minecraft src folder. Look at TechGuy's tutorial on how to set up MCP with Eclipse if you are confused. The images should go in the eclipse/client/bin folder, if I am not mistaken.
This is the only time I'm going to reply to people with problems not directly related to my tutorials. Please just ask in Mod Development. I'm actually more likely to help you there anyway.
Okay so i just made a "Block" and i generated it in the world. Everything is going well except for 1 thing, i am able to mine the block with every pickax, how do i make it so that i can only mine it with a stone pick?
You would have to edit ItemPickaxe.java. You should be able to see how you do it from the code in there already.
if EnumCreatureType is on .creature my mob have a texure but when I change .creature to .monster so they only spawn in the darkess my mob have no texture. also i've found a monsterspawner with my mob but they spawn white looking guys with a G on there head and not the texture I gave them.
please help me out i'm kinda confused how to fix the texture for .monster
My question was never answered, so I'm going to ask it again. How can I make an already existing mob spawn more or spawn less. Hopefully doing it with the least amount of editing files or none if possible.
BiomeGenBase.java -> Constructor -> spawnableCreatureList.add
Also spawnableMonsterList and spawnableWaterCreatureList
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
change the 10, it is the frequency of spawning. For debug purposes (testing your mob) put it VERY high, like 9999999. After everything works, change it to something reasonable like 14
if I want to make a mob with the model of a pig, do i just copy paste the contents of the model/renderPig? and if so, how would i go as to put the model an iron helmet
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at ModLoader.addMod(ModLoader.java:289)
at ModLoader.readFromClassPath(ModLoader.java:1210)
at ModLoader.init(ModLoader.java:886)
at ModLoader.addAllRenderers(ModLoader.java:189)
at ahu.<init>(ahu.java:77)
at ahu.<clinit>(ahu.java:8)
at net.minecraft.client.Minecraft.a(SourceFile:273)
at net.minecraft.client.Minecraft.run(SourceFile:657)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT c632ccff ----------
Soaring in Hoenn
It wasn't an opinion :l I was stating facts. I was listing off the purposes that it has. The only opinion was that I said it doesn't get in the way. I don't see how much of an opinion that is for a few reasons, you gave me no arguments to why it gets in the way because it does nothing but help.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWhy?
Look at the textures section.
Post your code.
Post your render class.
Mod Development.
Mod Development.
I'm only going to help people using MCP. If someone can't get it to work without using MCP, then they should be using it.
together they are powerful beyond imagination."
Here's my render class. Take note I only copied your code in the tut because you haven't explained anything about it yet.
package net.minecraft.src; import org.lwjgl.opengl.GL11; public class RenderCentaur extends RenderLiving { protected ModelCentaur modelNamehereMain; protected float field_40296_d; public RenderCentaur(ModelCentaur par1ModelNamehere, float par2) { this(par1ModelNamehere, par2, 1.0F); modelNamehereMain = par1ModelNamehere; } public RenderCentaur(ModelCentaur par1ModelNamehere, float par2, float par3) { super(par1ModelNamehere, par2); modelNamehereMain = par1ModelNamehere; field_40296_d = par3; } }EDIT: Sorry, I didn't know how to make spoilers.
Add the renderEquippedItems method from ModelBiped to your code. Make sure you change this line, to reference to the correct part of your mob model.
->
If you aren't sure what it is called, post your model class please.
If the above doesn't work then I can't help you, sorry.
together they are powerful beyond imagination."
Uhmm, I can't find the renderEquippedItems ModelBiped.java.
What do you mean by "Where should I put it?"? Your file should have been created in the minecraft src folder. Look at TechGuy's tutorial on how to set up MCP with Eclipse if you are confused. The images should go in the eclipse/client/bin folder, if I am not mistaken.
You would have to edit ItemPickaxe.java. You should be able to see how you do it from the code in there already.
Possibly. I'm not really sure. Try it and it might work.
Post all of your code please. Even if it is the same as mine.
BiomeGenBase.java -> Constructor -> spawnableCreatureList.add
Also spawnableMonsterList and spawnableWaterCreatureList
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumbut what do I change to change the spawn rate? :l
change the 10, it is the frequency of spawning. For debug purposes (testing your mob) put it VERY high, like 9999999. After everything works, change it to something reasonable like 14