I fixed with with help from _303 but i have another problem i dotn know how i can make it so when i craft a certain mod item because itemID doesnt work
hey thanks but i have another error when i was looking for my new biome the game crashed i presume something to do with my biome?
the error
Mods loaded: 2
ModLoader 1.2.5
mod_Crop 1.2.5
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT 8936f4c2 --------
Generated 06/05/12 18:22
Minecraft: Minecraft 1.2.5
OS: Windows Vista (x86) version 6.0
Java: 1.6.0_32, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce 8600 GS/PCIe/SSE2 version 3.3.0, NVIDIA Corporation
java.lang.ArrayIndexOutOfBoundsException: -96
at net.minecraft.src.ExtendedBlockStorage.setExtBlockID(ExtendedBlockStorage.java:83)
at net.minecraft.src.Chunk.<init>(Chunk.java:113)
at net.minecraft.src.ChunkProviderGenerate.provideChunk(ChunkProviderGenerate.java:290)
at net.minecraft.src.ChunkProvider.loadChunk(ChunkProvider.java:93)
at net.minecraft.src.ChunkProvider.provideChunk(ChunkProvider.java:119)
at net.minecraft.src.World.getChunkFromChunkCoords(World.java:654)
at net.minecraft.src.World.getBlockId(World.java:547)
at net.minecraft.client.Minecraft.preloadWorld(Minecraft.java:2258)
at net.minecraft.client.Minecraft.changeWorld(Minecraft.java:2145)
at net.minecraft.client.Minecraft.changeWorld2(Minecraft.java:2092)
at net.minecraft.client.Minecraft.startWorld(Minecraft.java:1978)
at net.minecraft.src.GuiSelectWorld.selectWorld(GuiSelectWorld.java:204)
at net.minecraft.src.GuiWorldSlot.elementClicked(GuiWorldSlot.java:38)
at net.minecraft.src.GuiSlot.drawScreen(GuiSlot.java:234)
at net.minecraft.src.GuiSelectWorld.drawScreen(GuiSelectWorld.java:231)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1008)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:20)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Thread.java:662)
--- END ERROR REPORT 37d11948 ----------
Put your id of the block that your are generating in your biome below 127. A byte's limit is from -128 to 127, so having a number above 127 will give an OutOfBoundsException.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Hey your tutorials really help me but i have trouble on one thing when i code the NPC to hold an item when i code it and stuff then i test it out my NPC was holding nothing can you see if i made a mistake?
package net.minecraft.src;
import java.util.List;
import java.util.Random;
public class EntitySasuke extends EntityCreature
{
public EntitySasuke(World world)
{
super(world);
texture = "/NarutoMod/NPC/Sasuke.png";
moveSpeed = 0.5F;
//attackStrength = 4; //take this line out if this class doesn't extend EntityMob.
}
public int getMaxHealth()
{
return 20;
}
protected String getLivingSound()
{
return "mob.villager.default";
}
protected String getHurtSound()
{
return "mob.villager.defaulthurt";
}
protected String getDeathSound()
{
return "mob.villager.defaultdeath";
}
protected boolean canDespawn()
{
return false;
}
public ItemStack getHeldItem()
{
return defaultHeldItem;
}
static
{
defaultHeldItem = new ItemStack(Item.swordSteel, 1);
}
private static final ItemStack defaultHeldItem;
}
Hey your tutorials really help me but i have trouble on one thing when i code the NPC to hold an item when i code it and stuff then i test it out my NPC was holding nothing can you see if i made a mistake?
package net.minecraft.src;
import java.util.List;
import java.util.Random;
public class EntitySasuke extends EntityCreature
{
public EntitySasuke(World world)
{
super(world);
texture = "/NarutoMod/NPC/Sasuke.png";
moveSpeed = 0.5F;
//attackStrength = 4; //take this line out if this class doesn't extend EntityMob.
}
public int getMaxHealth()
{
return 20;
}
protected String getLivingSound()
{
return "mob.villager.default";
}
protected String getHurtSound()
{
return "mob.villager.defaulthurt";
}
protected String getDeathSound()
{
return "mob.villager.defaultdeath";
}
protected boolean canDespawn()
{
return false;
}
public ItemStack getHeldItem()
{
return defaultHeldItem;
}
static
{
defaultHeldItem = new ItemStack(Item.swordSteel, 1);
}
private static final ItemStack defaultHeldItem;
}
Can you post your render class please, or are you using RenderBiped?
let me make this a bit more straight, I have tried to make a new ingot and need some help, could you help.
What kind of help do you need?
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Ohh the tutorials never told me that I need to use a RenderBiped Class
It actually does
Understanding the Code
This is set up to work in the RenderBiped class. When this code is read, it calls to the render class, which gets the item we define and renders it icon in the mobs hand.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
== 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_04\bin\javac" -Xlint:-options -deprecation -g -
source 1.6 -target 1....' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Zeeblock.java:5: error: <identifier> expecte
d
public static final Zeeblock = new Zeeblock(125, 0).setBlockName(Testanium).setH
ardness(1F).setResistance(3F).setLightValue(1F);
^
1 error
==================
!! Can not find server sources, try decompiling !!
Press any key to continue . . .
This is my mod_block file
package net.minecraft.src;
public class mod_Zeeblock extends BaseMod
{
public static final Zeeblock = new Zeeblock(125, 0).setBlockName(Testanium).setHardness(1F).setResistance(3F).setLightValue(1F);
public void load()
{
Zeeblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "Zeeblock.png");
ModLoader.registerBlock(Zeeblock);
ModLoader.addName(Zeeblock, "Testanium");
ModLoader.addRecipe(new ItemStack(Zeeblock, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
}
public String getVersion()
{
return "1.2.5";
}
}
This is my BlockNameFile
package net.minecraft.src;
import java.util.Random;
public class Zeeblock extends Block
{
public Zeeblock(int i, int j)
{
super(i, j, Material.dirt);
}
public int idDropped(int i, Random random, int j)
{
return mod_Block.Zeeblock.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}}
What would I have to put in to make an item you're holding light up whenever it's in your hand? Like as soon as you pick it it makes as much light as glowstone in a circle around you? And follows you wherever you go? That's all I need and then my first mod will be complete!
1) How can I get non-custom mob taming as an achievement?
2) can I make multiple items go towards one achievement (i.e. All leather armour)
3) is it possible to redirect the flow of achievements to include you own? (i.e. You need to to craft a diamond pick before you get the nether achievements)
Hey techguy, I successfully made a mob breedable and tamable. To tame it, you need my custom item. It worked, but when I breed it like the same way you breed a wolf, they kiss then a baby appears. Yea, it worked. But the problem is, when I log out, then come back in, the three of them sits like forever and I can't right click them. Why is that?
Edit: I tried the same thing with wolves and they also stucked at sitting.
Edit2: It's not just breeding! When I tamed it and quit the game then came back they are all stuck at sitting!
I copyed your code exactely then changeed the names and i got this error
Syntax error on token "iconIndex", VariableDeclaratorId expected after this token
== 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_04\bin\javac" -Xlint:-options -deprecation -g -
source 1.6 -target 1....' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Zeeblock.java:5: error: <identifier> expecte
d
public static final Zeeblock = new Zeeblock(125, 0).setBlockName(Testanium).setH
ardness(1F).setResistance(3F).setLightValue(1F);
^
1 error
==================
!! Can not find server sources, try decompiling !!
Press any key to continue . . .
This is my mod_block file
package net.minecraft.src;
public class mod_Zeeblock extends BaseMod
{
public static final Zeeblock = new Zeeblock(125, 0).setBlockName(Testanium).setHardness(1F).setResistance(3F).setLightValue(1F);
public void load()
{
Zeeblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "Zeeblock.png");
ModLoader.registerBlock(Zeeblock);
ModLoader.addName(Zeeblock, "Testanium");
ModLoader.addRecipe(new ItemStack(Zeeblock, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
}
public String getVersion()
{
return "1.2.5";
}
}
This is my BlockNameFile
package net.minecraft.src;
import java.util.Random;
public class Zeeblock extends Block
{
public Zeeblock(int i, int j)
{
super(i, j, Material.dirt);
}
public int idDropped(int i, Random random, int j)
{
return mod_Block.Zeeblock.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}}
You need to add "Block" before the name of the instance of your block.
public static final Block Zeeblock = new Zeeblock(125, 0).setBlockName(Testanium).setHardness(1F).setResistance(3F).setLightValue(1F);
The argument of setBlockName needs to be a String:
public static final Block Zeeblock = new Zeeblock(125, 0).setBlockName("Testanium").setHardness(1F).setResistance(3F).setLightValue(1F);
What would I have to put in to make an item you're holding light up whenever it's in your hand? Like as soon as you pick it it makes as much light as glowstone in a circle around you? And follows you wherever you go? That's all I need and then my first mod will be complete!
You need to use Dynamic Lights, no other way without editing base classes(which dynamic lights does for you).
1) How can I get non-custom mob taming as an achievement?
2) can I make multiple items go towards one achievement (i.e. All leather armour)
3) is it possible to redirect the flow of achievements to include you own? (i.e. You need to to craft a diamond pick before you get the nether achievements)
thanks
1. Not sure
2. Not sure
3. It may be possible as the achievements in the game aren't declared as final, I can't remember how to access them though.
Sorry I'm not much of a help, but I haven't really worked with achievements much.
Hey techguy, I successfully made a mob breedable and tamable. To tame it, you need my custom item. It worked, but when I breed it like the same way you breed a wolf, they kiss then a baby appears. Yea, it worked. But the problem is, when I log out, then come back in, the three of them sits like forever and I can't right click them. Why is that?
Edit: I tried the same thing with wolves and they also stucked at sitting.
Edit2: It's not just breeding! When I tamed it and quit the game then came back they are all stuck at sitting!
I have the same problem, been trying to fix it for ages but can't figure it out.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
You need to add "Block" before the name of the instance of your block.
public static final Block Zeeblock = new Zeeblock(125, 0).setBlockName(Testanium).setHardness(1F).setResistance(3F).setLightValue(1F);
The argument of setBlockName needs to be a String:
public static final Block Zeeblock = new Zeeblock(125, 0).setBlockName("Testanium").setHardness(1F).setResistance(3F).setLightValue(1F);
You need to use Dynamic Lights, no other way without editing base classes(which dynamic lights does for you).
I always add an if statement in my world gen class:
public boolean generate(World world, Random rand, int i, int j, int k)
{
if(world.getBlockId(i, j - 1, k) == Block.grass.blockID && world.getBlockId(i, j, k) == 0)
{
world.setBlockWithNotify(i, j, k, block);
}
return true;
}
return false;
}
1. Not sure
2. Not sure
3. It may be possible as the achievements in the game aren't declared as final, I can't remember how to access them though.
Sorry I'm not much of a help, but I haven't really worked with achievements much.
I have the same problem, been trying to fix it for ages but can't figure it out.
Hey, just wanna let you know. I recompiled and reobsfuscate then tested it with real minecraft and it doesn't happen there. It doesn't get stuck. Mysterious, eh?
Hey, just wanna let you know. I recompiled and reobsfuscate then tested it with real minecraft and it doesn't happen there. It doesn't get stuck. Mysterious, eh?
That's really strange, perhaps it is because of the rebuilding of the jar or something when in MCP? I hope mine is the same and that I have spent hours trying to fix a problem that isn't really there.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Now this error:
== 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 (x86)\Java\jdk1.7.0_03\bin\javac" -Xlint:-options -deprecatio
n -g -source 1.6 -tar...' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_gcc.java:3: error: mod_gcc is not abstract a
nd does not override abstract method load() in BaseMod
public class mod_gcc extends BaseMod
^
1 error
==================
!! Can not find server sources, try decompiling !!
Для продолжения нажмите любую клавишу . . .
Now this error:
== 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 (x86)\Java\jdk1.7.0_03\bin\javac" -Xlint:-options -deprecatio
n -g -source 1.6 -tar...' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_gcc.java:3: error: mod_gcc is not abstract a
nd does not override abstract method load() in BaseMod
public class mod_gcc extends BaseMod
^
1 error
==================
!! Can not find server sources, try decompiling !!
Для продолжения нажмите любую клавишу . . .
If you get that error, you aren't using my tutorials. I am only helping people using my tutorials on this thread. But, just so some idiot doesn't lead you off in the wrong direction by telling you to add that method and leaving it empty, I will show you what to do. Just psot your code and I will show you what to do.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
It should be
The second part of that is probably causing both of your errors.
Put your id of the block that your are generating in your biome below 127. A byte's limit is from -128 to 127, so having a number above 127 will give an OutOfBoundsException.
together they are powerful beyond imagination."
Can you post your render class please, or are you using RenderBiped?
What kind of help do you need?
together they are powerful beyond imagination."
It actually does
together they are powerful beyond imagination."
# 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 (x86)\Java\jdk1.7.0_03\bin\javac" -Xlint:-options -deprecatio
n -g -source 1.6 -tar...' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_gcc.java:3: error: cannot find symbol
public class mod_gcc extends BaseMod
^
symbol: class BaseMod
1 error
==================
!! Can not find server sources, try decompiling !!
Для продолжения нажмите любую клавишу . . .
What is wrong? I don't understand.
This is my mod_block file
This is my BlockNameFile
Sorry i wasnt reading properly >_< i just looked it over i dont know how to change it
1) How can I get non-custom mob taming as an achievement?
2) can I make multiple items go towards one achievement (i.e. All leather armour)
3) is it possible to redirect the flow of achievements to include you own? (i.e. You need to to craft a diamond pick before you get the nether achievements)
thanks
Edit: I tried the same thing with wolves and they also stucked at sitting.
Edit2: It's not just breeding! When I tamed it and quit the game then came back they are all stuck at sitting!
You didn't decompile with ModLoader installed.
Post your code, even if it is the same.
You need to add "Block" before the name of the instance of your block.
The argument of setBlockName needs to be a String:
You need to use Dynamic Lights, no other way without editing base classes(which dynamic lights does for you).
I always add an if statement in my world gen class:
1. Not sure
2. Not sure
3. It may be possible as the achievements in the game aren't declared as final, I can't remember how to access them though.
Sorry I'm not much of a help, but I haven't really worked with achievements much.
I have the same problem, been trying to fix it for ages but can't figure it out.
together they are powerful beyond imagination."
Hey, just wanna let you know. I recompiled and reobsfuscate then tested it with real minecraft and it doesn't happen there. It doesn't get stuck. Mysterious, eh?
That's really strange, perhaps it is because of the rebuilding of the jar or something when in MCP? I hope mine is the same and that I have spent hours trying to fix a problem that isn't really there.
together they are powerful beyond imagination."
== 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 (x86)\Java\jdk1.7.0_03\bin\javac" -Xlint:-options -deprecatio
n -g -source 1.6 -tar...' failed : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_gcc.java:3: error: mod_gcc is not abstract a
nd does not override abstract method load() in BaseMod
public class mod_gcc extends BaseMod
^
1 error
==================
!! Can not find server sources, try decompiling !!
Для продолжения нажмите любую клавишу . . .
If you get that error, you aren't using my tutorials. I am only helping people using my tutorials on this thread. But, just so some idiot doesn't lead you off in the wrong direction by telling you to add that method and leaving it empty, I will show you what to do. Just psot your code and I will show you what to do.
together they are powerful beyond imagination."