--- BEGIN ERROR REPORT cb8049ff --------
Generated 8/31/12 12:51 AM
- Minecraft Version: 1.3.2
- Operating System: Mac OS X (x86_64) version 10.7.4
- Java Version: 1.6.0_33, Apple Inc.
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
- Memory: 1004081584 bytes (957 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB)
- JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
- ModLoader: Mods loaded: 2
ModLoader 1.3.2
mod_drugcraft Minecraft 1.3.2 and above DrugCraft Mod
java.lang.ArrayIndexOutOfBoundsException: 400
at net.minecraft.src.ModLoader.initStats(ModLoader.java:1002)
at net.minecraft.src.ModLoader.init(ModLoader.java:975)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:186)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:86)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:404)
at net.minecraft.client.Minecraft.run(Minecraft.java:724)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT 1cc892fa ----------
The Meaning of Life, the Universe, and Everything.
Location:
California
Join Date:
7/12/2011
Posts:
159
Minecraft:
Hatsune_Candy
Member Details
Hey, excuse me Mrsal511, I followed your set up tutorial the best I could, but everytime I try to decompile I get this error:== MCP 7.2 <data: 7.2, client: 1.3.2, server: 1.3.2> ==
FATAL ERROR
Traceback (most recent call last):
[indent=30px]File "runtime\decompile.py", line 48, in decompile[/indent]
[indent=60px]commands = Commands(conffile, verify=True, no_patch=no_patch)[/indent]
[indent=30px]File "C:\Users\User\Desktop\Minecraft Files\Modding\runtime\commands.py", line[/indent]
[indent=30px]197, in _init_[/indent]
[indent=60px]self.readcommands(verify, no_patch=no_patch)[/indent]
[indent=30px]File "C:\Users\User\Desktop\Minecraft Files\Modding\runtime\commands.py", line[/indent]
[indent=30px]284, in readcommands[/indent]
[indent=60px]error=False)[/indent]
[indent=30px]File "C:\Users\User\Desktop\Minecraft Files\Modding\runtime\commands.py", line[/indent]
[indent=30px]206, in checkcommand
[indent=60px]output = output.splitlines()[0][/indent]
IndexError: list index out of rangeIf you could help me out I would greatly appreciate it.
Hi, I'm a newbie at programming, and this may have been answered already, but I get an error when decompiling the minecraft code.
I forced update on minecraft. Might I have the wrong version of mcp, it says 1.2.5? (Minecraft is currently 1.3.2, so this may be an obvious question) I have jre and jdk. The decompile.bat says: 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 cvs
param csvs, astyle, astyle config
Creating Retrogaurd config files
Modified jar detected unpredictable results!!
decompiling using jad
Creating srgs
applying retrogaurd
c:/program files/java/jdk1.7.0_05/bin/java" -cp "runtime/bin/retrogaurd.jar;li
b;lib/*;jars/bin/mine...' failed : 1
errors found
unrecoverable error during obfuscation, see log file for details.
retrogaurd error COM.rl.obf.classfile.ClassFileException: ClassNot Found wp
Decompile Failed
Thanks in advanced
Hey, I have followed the the first three tutorials to make a simple tin block and the last basic tutorial to install the mod, but I keep getting an error message. If anyone could please help me it would be extremely appreciated. This is the error i continue to recieve from Minecraft
---- Minecraft Crash Report ----
// On the bright side, I bought you a teddy bear!
Time: 11/09/12 11:07 PM
Description: ModLoader has failed to initialize.
java.lang.ArrayIndexOutOfBoundsException: 323
at ModLoader.initStats(ModLoader.java:1002)
at ModLoader.init(ModLoader.java:975)
at ModLoader.addAllRenderers(ModLoader.java:186)
at avy.<init>(RenderManager.java:87)
at avy.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.a(SourceFile:260)
at net.minecraft.client.Minecraft.run(SourceFile:516)
at java.lang.Thread.run(Unknown Source)
Relevant Details:
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0_07, Oracle Corporation
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 400878608 bytes (382 MB) / 514523136 bytes (490 MB) up to 954466304 bytes (910 MB)
- JVM Flags: 2 total; -Xms512m -Xmx1024m
- ModLoader: Mods loaded: 1
ModLoader 1.3.2
nice TUT man! This is really gonna help me! i want to make an emeralds plus mod to change the spawning of emeralds and chnge some textures, and eventyually make armor and tools!
In the basic mod tutorial you did not explain how to add the client file to the package explorer. This is a crucial part of the entire tutorial and this is my first time trying to make a simple mod. (Ha, making mods isn't simple especially for beginners like me). So at this point I have no clue what to do because you are quite unclear at the beginning.
broke, so I replace the function call with an unused ID 121 and fixed! i also had to change my model class from
extends ModelBiped
to
extends ModelBase
Hey, I'm trying to follow your Mob Mod procedure, and whenever my Mob tries to spawn, minecraft crashes with a null pointer exception. Have any idea what I've messed up?
Here's the Crash:
---- Minecraft Crash Report ----
// Who set us up the TNT?
java.lang.NullPointerException
at net.minecraft.src.NetClientHandler.handleMobSpawn(NetClientHandler.java:747)
at net.minecraft.src.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:137)
at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:73)
at net.minecraft.src.NetClientHandler.processReadPackets(NetClientHandler.java:91)
at net.minecraft.src.WorldClient.tick(WorldClient.java:63)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1670)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:731)
at net.minecraft.client.Minecraft.run(Minecraft.java:661)
at java.lang.Thread.run(Unknown Source)
/**
* Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
* handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
* (Render * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
*/
public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
{
this.renderPenguin((EntityPenguin)par1Entity, par2, par4, par6, par8, par9);
}
}
Entity Penguin:
package net.minecraft.src;
public class EntityPenguin extends EntityAnimal {
public EntityPenguin(World par1World)
{
super(par1World);
this.texture = "/mob/penguin.png";
this.setSize(1.8F, 0.9F);
this.getNavigator().setAvoidsWater(false);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIPanic(this, 0.38F));
this.tasks.addTask(2, new EntityAIMate(this, 0.2F));
this.tasks.addTask(3, new EntityAITempt(this, 0.25F, Item.wheat.shiftedIndex, false));
this.tasks.addTask(4, new EntityAIFollowParent(this, 0.25F));
this.tasks.addTask(5, new EntityAIWander(this, 0.2F));
this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
}
/**
* Returns true if the newer Entity AI code should be run
*/
public boolean isAIEnabled()
{
return true;
}
public int getMaxHealth()
{
return 10;
}
/**
* Returns the sound this mob makes while it's alive.
*/
protected String getLivingSound()
{
return "mob.cow";
}
/**
* Returns the sound this mob makes when it is hurt.
*/
protected String getHurtSound()
{
return "mob.cowhurt";
}
/**
* Returns the sound this mob makes on death.
*/
protected String getDeathSound()
{
return "mob.cowhurt";
}
/**
* Returns the volume for the sounds this mob makes.
*/
protected float getSoundVolume()
{
return 0.4F;
}
/**
* Returns the item ID for the item the mob drops on death.
*/
protected int getDropItemId()
{
return Item.leather.shiftedIndex;
}
/**
* Drop 0-2 items of this living's type
*/
protected void dropFewItems(boolean par1, int par2)
{
int var3 = this.rand.nextInt(3) + this.rand.nextInt(1 + par2);
int var4;
/**
* Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.
*/
public boolean interact(EntityPlayer par1EntityPlayer)
{
return true;
}
/**
* This function is used when two same-species animals in 'love mode' breed to generate the new baby animal.
*/
public EntityAnimal spawnBabyAnimal(EntityAnimal par1EntityAnimal)
{
return new EntityPenguin(this.worldObj);
}
Can you help me plz on ur how to make a block vid u say to do this
(new BlockEpicOre(?, ModLoader.addOverride("/terrain.png", "/mods/EpicOre.png")))
i have a good id in there and yah but it underlines the whole thing saying its wrong but on yours it doesnt if anyone else cna help me plzzzz EDIT:Nvm when i finished the coding for blockepicore it stopped being underlined well keep up the good work
OMG nvm that edit i daid before for some reason when i regidter my block with the code
EpicOre = (new BlockEpicOre(398, ModLoader.addOverride("/terrain.png", "/mods/EpicOre.png")))
.setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep).setBlockName("EpicOre");
it says its wrong plz help if its the id tell me a unused 1 plz if anything plz TELL ME
1. Open up Eclipse
2. Open mod_#### where #### = the name of your mod
3. Edit mod_#### like shown in the video and save it.
4. Now you should have your food.
You said food for armor.
Though the tutorials are great! I'm working on a Mexican Mod
So far I've added:
Spiced Ore
Hot Sauce
and I'm planning to make:
Mild Sauce
Explosive Sauce
Spiced Grass
Tacos (Hot, Mild, Explosive)
Fajitas (Hot, Mild, Explosive)
Tamales (Hot, Mild, Explosive)
Mexican Armor (Sombreros, Serapes, Leggings, and Sandals)
A whole biome for the mod
Randomly Generating Mexican Villages
*If I feel like it* Mexican Mobs
Mexican Sword (Same damage as an Iron sword)
Conquistador's Sword (More damage than diamond sword)
and more...
1. Open up Eclipse
2. Open mod_#### where #### = the name of your mod
3. Edit mod_#### like shown in the video and save it.
4. Now you should have your food.
You said food for armor.
Though the tutorials are great! I'm working on a Mexican Mod
So far I've added:
Spiced Ore
Hot Sauce
and I'm planning to make:
Mild Sauce
Explosive Sauce
Spiced Grass
Tacos (Hot, Mild, Explosive)
Fajitas (Hot, Mild, Explosive)
Tamales (Hot, Mild, Explosive)
Mexican Armor (Sombreros, Serapes, Leggings, and Sandals)
A whole biome for the mod
Randomly Generating Mexican Villages
*If I feel like it* Mexican Mobs
Mexican Sword (Same damage as an Iron sword)
Conquistador's Sword (More damage than diamond sword)
and more...
I'll give credit to you. Thanks
I was wondering if I could like texture your things your making cause it sounds real cool. I dont have a skype (My cp won't allow 4 some reason) but i can type:) and can you help me with this problem
package net.minecraft.src;
public class mod_epicmod extends BaseMod
{
public static final Block EpicOre;
static
{
EpicOre = (new BlockEpicOre(398, ModLoader.addOverride("/terrain.png", "/mod /EpicOre.png"))) .setHardness (3.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep).setBlockName("EpicOre");
I was wondering if I could like texture your things your making cause it sounds real cool. I dont have a skype (My cp won't allow 4 some reason) but i can type:) and can you help me with this problem
package net.minecraft.src;
public class mod_epicmod extends BaseMod
{
public static final Block EpicOre;
static
{
EpicOre = (new BlockEpicOre(398, ModLoader.addOverride("/terrain.png", "/mod /EpicOre.png"))) .setHardness (3.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep).setBlockName("EpicOre");
**Note: These videos were filmed and rendered in HD. If you can't read the code I write click on the video and change the resolution to 720p.**
As of Septemeber 19th I am redoing tutorials for 1.3.2 - The following videos are firs ton the list:
1. How to create a block (REDONE)
2. How to create an Item (REDONE)
3. Redstone (ALL NEW)
4. Glowing blocks (ALL NEW)
5. Trees (ALL NEW)
6. Generating Grass type blocks (ALL NEW)
7. Furnaces (ALL NEW)
8. Generating in the nether (ALL NEW)
9. Generating in overworld (REDONE)
10. Different types of torches (ALL NEW)
ALL source code will be included with each tutorial as they become redone or are brand new!
All source code will only be available on this forum!
Tutorials we have covered already: Basic tutorials:
1. Set-up of MCO
2. Creating a Basic Mod File
3. Creating a Block
4. Creating a Smelting Recipe
5. Naturally Generating Ore/Mineral/Blocks
6. Creating a Crafting Recipe
7. Creating an Item
8. Getting Different Textures on Different Sides of a Block.
9. Make Your Mod Ready For Install
Intermediate tutorials:
1. Food
2. Potion Effect with Food
3. Armor
4. Tools/Swords
5. Randomly Generate on the Surface
**Note: Install Risugami's ModLoader on your minecraft.jar before decompiling for future use with my tutorials. Without ModLoader you will not be able to follow my tutorials. I forgot to mention this in the Set-Up Tutorial.**
Explanation:
1. Install ModLoader on your mincraft.jar.
2. Drag "bin" and "resources" into the jars folder after you have extracted MCP
3. Decompile the minecraft.jar using "decompile.bat" found in the home directory of MCP
Explanation:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Create a new java class. Name it mod_####.java where #### = name of your mod.
3. Write in the code shown in the video and save your file.
Creating a Basic Block:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Create a new java class. Name it Block####.java where #### = name of your Block.
3.Write in the code shown in the video to both mod_#### and block_#### and save your file
4. In the next few basic tutorials i will show you how to obtain your block using smelting and crafting recipes as well as naturally generating your ore.
Creating a Smelting Recipe:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
3. Write in the code shown in the video to mod_#### and save the file.
4. Now when you smelt planks as shown in the video you get TutorialBlock, but you can change the planks and/or TutorialBlock to anything you please.
Naturally Generating Ores/Minerals/Blocks:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
3. Write in the code shown in the video to mod_#### and save the file.
4. Now change the values. "l<##" that means how many veins of that ore will spawn in any chunk where ## = The amount.
5. Now your block should randomly generate throughout your world.
How to create a Crafting Recipe:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
3. Write in the code shown in the video to mod_#### and save the file.
4. Now you should have craftable recipe
How create an Item:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
3. Write in the code shown in the video to mod_#### and save the file.
4. Now you should have an item that when you smelt #### block it turns into your item. Where #### = Your choice of block.
How to get different textures on each side of a block:
1. Open Eclipse and switch your workspace to the eclipse folder in your MCP Directory
2. Open up mod_#### where #### = the name of your mod
2.5 Also open Block#### where #### = the name of your block
3. Write in the code shown in the video to mod_#### and Block#### then save the file.
4. Now you should have a block that could contain at the max 6 different custom side textures.
**Note: 0 = Bottom, 1 = Top, 2,3,4,5 = Sides**
How to Make Your Mod Ready For Install:
1. Open up your MCP mod Directory
2. Run Recompile.bat
2.5 Run Reobfuscate.bat
3. Go into your Reobf folder.
4. Thoose are the files you must give to anyone to install your mod.
**Note: Make sure the person willing to install your mod also has Risugami's modloader installed or your mods will not work!**
Intermediate Tutorials:
Food:
How To Create a Food Item:
1. Open up Eclipse
2. Open mod_#### where #### = the name of your mod
3. Edit mod_#### like shown in the video and save it.
4. Now you should have your food.
Potion Effects on Food:
1. Open up Eclipse
2. Open mod_#### where #### = the name of your mod
3. Edit mod_#### like shown in the video and save it.
4. Now you should have your food.
How to create custom Armor:
1. Open up Eclipse
2. Open mod_#### where #### = the name of your mod
3. Edit mod_#### like shown in the video and save it.
4. Now you should have your food.
Tools:
Swords:
How to create Swords Simple, but not as compatible with other mods:
1. Open up Eclipse
2. Open mod_#### where #### = the name of your mod and EnumToolMaterial
3. Edit mod_#### and EnumToolMaterial like shown in the video and save it.
4. Now you should have your sword.
**Note: This code requires editing of a file included in minecraft. If any other mod uses this file it could overwrite it and mess up some of your mods when using multiple mods. For maximum usgae watch my swords advanced tutorial. It shows you how to not edit that file and still have it all work!**
How to create Swords Advanced, Totally compatible with other mods:
**Note: This tutorial uses code found in the simple version. This tutorial is just an add on to increase compatibility and customization.**
1. Open up Eclipse
2. Open mod_#### where #### = the name of your mod and create files Item$$$$Sword and Enum$$$$ToolMaterial where $$$$ = the name of your material or group of materials.
3. Edit all the files as shown in the video and save it.
4. Now you should have your sword with maximized compatibility
How to create Tools such as pickaxe's shovels, axe's and hoes:
**Note: This tutorial uses code found in the Sword Advanced Tutorial.**
1. Open up Eclipse
2. Open/create the files used in this video.
3. Edit all the files as shown in the video and save it.
4. Now you should have all your tools!
How to randomly Generate ore/blocks on the surface of the world:
1. Open up Eclipse
2. Open/create the files used in this video.
3. Edit all the files as shown in the video and save it.
4. Now you should have our ore generating on the surface of the world!
Advanced Tutorials:
How to Create Friendly and Hostile Mobs:
**Note: Watch these tutorials in order**
How to use Techne to Design Your Mob:
1. Open up Techne
2. Open up Pixlr.com or your favorite image editor
3. Edit your mob and then export it as a texture map to edit the texture
4. Once your done editing the texture export your mob as JAVA.
How to Create a Hostile Mob Using Your Techne Design:
1. Open up Eclipse
2. Create 3 new files: Model####, Entity####, Render#### where #### is the name of your mob
2.5 Open mod_#### where #### is the name of your mod. Also open ####.java where #### = the name you named your JAVA file when you exported it out of TECHNE
3. Edit all 5 files like done in the video and save them.
4. Now you should have a hostile mob that acts like a zombie
How to Create a Friendly Mob Using Your Techne Design and Some of the Hostile Mob Code:
1. Open up Eclipse
2. Open mod_#### where #### is the name of your mod. Also open Model####, Entity####, Render#### where #### is the name of your mob.
3. Edit all 4 files like done in the video and save them.
4. Now you should have a friendly Mob that acts like a cross between a pig and cow.
In Depth: How to customize what your Mob drops when it is killed:
1. Open up Eclipse
2. Open Entity#### where #### is the name of your Mob
3. Edit the file as shown in the video and save it.
4. Now you should have a friendly Mob that you can customize what it drops when it is killed.
More Mob Tutorials Coming Soon, don't fret to leave a comment on what Mob tutorials you would like to see!
How to Create Custom Biomes:
1. Open up Eclipse
2. Edit the four files found in the video and save
3. Now you should have your custom biome!
Randomly Generated Structures:
Randomly Generating Buildings:
Randomly Generating Buildings Part 1 - The Generation:
1. Open up Eclipse
2. Edit the two files shown
3. Now you should watch part 2
Randomly Generating Buildings Part 2 - Safety Checks Video 1:
1. Open up Eclipse
2. Edit WorldGenSpawn as shown in the video
3. Now you should watch part 3
Randomly Generating Buildings Part 3 - Safety Checks Video 2:
1. Open up Eclipse
2. Edit WorldGenSpawn as shown in the video
3. Now you should watch part 4
Randomly Generating Buildings Part 4 - Filling in Below:
1. Open up Eclipse
2. Edit WorldGenSpawn as shown in the video
3. Now you should watch part 5
Randomly Generating Buildings Part 5 - Install Sequence:
1. Open up Eclipse
2. Edit WorldGenSpawn as shown in the video
3. Now you should watch part 6
Randomly Generating Buildings Part 5 - Windows:
1. Open up Eclipse
2. Edit WorldGenSpawn as shown in the video
3. Now you should watch part 6
Randomly Generating Structures General Code:
1. Open up Eclipse
2. Edit the two files shown
3. Now you should have your custom object spawning randomly in your world!
Pyramids:
1. Open up Eclipse
2. Edit the two files shown
3. Now you should have your custom object spawning randomly in your world!
**Note: This video shows how to do it with pyramids. You CAN acomplish the same task using a bunch of setBlockWithNotify statements, but that way is very boring and does not teach you ANYTHING. Using my way you learn all about algorithms, for loops, and how to have fun while coding.
It does get a little big confusing especially for the beginner. So if this is your FIRST tutorial maybe you should try a simpler one first.
If you don't want to generate a pyramid, but instead just want to know how to generate randomly just use the Mod_### code where ### = the name of your mod. You still have to create the second file, but you would code that file totally different depending on your structure.
Thanks for watching!**
I tryed the block tutorial i set id to 500 first test i made a creative world for testing it i used /give command it said No item exists with that id so i changed the id and next test it started crashing everytime i tested.
--- BEGIN ERROR REPORT cb8049ff --------
Generated 8/31/12 12:51 AM
- Minecraft Version: 1.3.2
- Operating System: Mac OS X (x86_64) version 10.7.4
- Java Version: 1.6.0_33, Apple Inc.
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
- Memory: 1004081584 bytes (957 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB)
- JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
- ModLoader: Mods loaded: 2
ModLoader 1.3.2
mod_drugcraft Minecraft 1.3.2 and above DrugCraft Mod
java.lang.ArrayIndexOutOfBoundsException: 400
at net.minecraft.src.ModLoader.initStats(ModLoader.java:1002)
at net.minecraft.src.ModLoader.init(ModLoader.java:975)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:186)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:86)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:404)
at net.minecraft.client.Minecraft.run(Minecraft.java:724)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT 1cc892fa ----------
How would i be able to fix this error???
== MCP 7.2 <data: 7.2, client: 1.3.2, server: 1.3.2> ==
FATAL ERROR
Traceback (most recent call last):
[indent=30px]File "runtime\decompile.py", line 48, in decompile[/indent]
[indent=60px]commands = Commands(conffile, verify=True, no_patch=no_patch)[/indent]
[indent=30px]File "C:\Users\User\Desktop\Minecraft Files\Modding\runtime\commands.py", line[/indent]
[indent=30px]197, in _init_[/indent]
[indent=60px]self.readcommands(verify, no_patch=no_patch)[/indent]
[indent=30px]File "C:\Users\User\Desktop\Minecraft Files\Modding\runtime\commands.py", line[/indent]
[indent=30px]284, in readcommands[/indent]
[indent=60px]error=False)[/indent]
[indent=30px]File "C:\Users\User\Desktop\Minecraft Files\Modding\runtime\commands.py", line[/indent]
[indent=30px]206, in checkcommand
[indent=60px]output = output.splitlines()[0][/indent]
IndexError: list index out of range
If you could help me out I would greatly appreciate it.
I forced update on minecraft. Might I have the wrong version of mcp, it says 1.2.5? (Minecraft is currently 1.3.2, so this may be an obvious question) I have jre and jdk. The decompile.bat says: 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 cvs
param csvs, astyle, astyle config
Creating Retrogaurd config files
Modified jar detected unpredictable results!!
decompiling using jad
Creating srgs
applying retrogaurd
c:/program files/java/jdk1.7.0_05/bin/java" -cp "runtime/bin/retrogaurd.jar;li
b;lib/*;jars/bin/mine...' failed : 1
errors found
unrecoverable error during obfuscation, see log file for details.
retrogaurd error COM.rl.obf.classfile.ClassFileException: ClassNot Found wp
Decompile Failed
Thanks in advanced
---- Minecraft Crash Report ----
// On the bright side, I bought you a teddy bear!
Time: 11/09/12 11:07 PM
Description: ModLoader has failed to initialize.
java.lang.ArrayIndexOutOfBoundsException: 323
at ModLoader.initStats(ModLoader.java:1002)
at ModLoader.init(ModLoader.java:975)
at ModLoader.addAllRenderers(ModLoader.java:186)
at avy.<init>(RenderManager.java:87)
at avy.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.a(SourceFile:260)
at net.minecraft.client.Minecraft.run(SourceFile:516)
at java.lang.Thread.run(Unknown Source)
Relevant Details:
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.7.0_07, Oracle Corporation
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 400878608 bytes (382 MB) / 514523136 bytes (490 MB) up to 954466304 bytes (910 MB)
- JVM Flags: 2 total; -Xms512m -Xmx1024m
- ModLoader: Mods loaded: 1
ModLoader 1.3.2
That guy that makes the wheels turn.. Y'know...
That guy that makes the wheels turn.. Y'know...
Edit: In Eclipse
Hey, I'm trying to follow your Mob Mod procedure, and whenever my Mob tries to spawn, minecraft crashes with a null pointer exception. Have any idea what I've messed up?
Here's the Crash:
// Who set us up the TNT?
Time: 9/25/12 10:17 PM
Description: Unexpected error
java.lang.NullPointerException
at net.minecraft.src.NetClientHandler.handleMobSpawn(NetClientHandler.java:747)
at net.minecraft.src.Packet24MobSpawn.processPacket(Packet24MobSpawn.java:137)
at net.minecraft.src.MemoryConnection.processReadPackets(MemoryConnection.java:73)
at net.minecraft.src.NetClientHandler.processReadPackets(NetClientHandler.java:91)
at net.minecraft.src.WorldClient.tick(WorldClient.java:63)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1670)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:731)
at net.minecraft.client.Minecraft.run(Minecraft.java:661)
at java.lang.Thread.run(Unknown Source)
Relevant Details:
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (x86) version 6.1
- Java Version: 1.7.0_05, Oracle Corporation
- Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
- Memory: 55468944 bytes (52 MB) / 127131648 bytes (121 MB) up to 259522560 bytes (247 MB)
- JVM Flags: 0 total;
- ModLoader: Mods loaded: 2
ModLoader 1.3.2
mod_Penguins Penguins! 0.1
- LWJGL: 2.4.2
- OpenGL: ATI Mobility Radeon HD 5000 Series GL version 4.2.11762 Compatibility Profile Context, ATI Technologies Inc.
- Is Modded: Very likely
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)
- World MpServer Entities: 36 total; [EntityClientPlayerMP['Player332'/0, l='MpServer', x=-677.26, y=13.99, z=-1192.74], EntitySlime['Slime'/7964, l='MpServer', x=-726.53, y=4.00, z=-1256.91], EntitySlime['Slime'/10776, l='MpServer', x=-658.93, y=4.18, z=-1184.43], EntitySlime['Slime'/15588, l='MpServer', x=-637.82, y=4.82, z=-1159.71], EntitySlime['Slime'/16226, l='MpServer', x=-711.97, y=4.18, z=-1114.31], EntitySlime['Slime'/28979, l='MpServer', x=-698.76, y=4.00, z=-1250.25], EntitySlime['Slime'/33003, l='MpServer', x=-665.53, y=5.00, z=-1167.06], EntitySlime['Slime'/36181, l='MpServer', x=-689.37, y=4.00, z=-1252.71], EntitySlime['Slime'/25102, l='MpServer', x=-637.88, y=4.00, z=-1169.44], EntitySlime['Slime'/30912, l='MpServer', x=-637.84, y=4.00, z=-1163.16], EntitySlime['Slime'/38112, l='MpServer', x=-625.72, y=4.00, z=-1261.38], EntitySlime['Slime'/43333, l='MpServer', x=-706.97, y=4.00, z=-1251.47], EntitySlime['Slime'/44558, l='MpServer', x=-692.45, y=4.33, z=-1252.70], EntitySlime['Slime'/45904, l='MpServer', x=-696.25, y=4.00, z=-1149.56], EntitySlime['Slime'/40908, l='MpServer', x=-601.75, y=4.33, z=-1198.02], EntitySlime['Slime'/51483, l='MpServer', x=-710.84, y=4.00, z=-1254.88], EntitySlime['Slime'/53721, l='MpServer', x=-643.16, y=4.00, z=-1147.15], EntitySlime['Slime'/54913, l='MpServer', x=-690.13, y=4.00, z=-1237.72], EntitySlime['Slime'/55280, l='MpServer', x=-689.82, y=4.85, z=-1243.96], EntitySlime['Slime'/20454, l='MpServer', x=-680.25, y=4.00, z=-1254.53], EntitySlime['Slime'/63192, l='MpServer', x=-597.91, y=4.00, z=-1168.78], EntitySheep['Sheep'/69244, l='MpServer', x=-687.79, y=4.00, z=-1238.38], EntitySheep['Sheep'/69245, l='MpServer', x=-679.50, y=4.00, z=-1241.50], EntitySheep['Sheep'/69246, l='MpServer', x=-676.50, y=4.00, z=-1245.50], EntitySheep['Sheep'/69247, l='MpServer', x=-676.50, y=4.00, z=-1240.50], EntitySheep['Sheep'/69255, l='MpServer', x=-603.19, y=4.00, z=-1137.21], EntityPig['Pig'/69260, l='MpServer', x=-601.34, y=4.00, z=-1137.21], EntitySlime['Slime'/73917, l='MpServer', x=-625.19, y=4.00, z=-1199.13], EntitySlime['Slime'/77489, l='MpServer', x=-609.56, y=4.00, z=-1177.16], EntitySlime['Slime'/83365, l='MpServer', x=-725.16, y=4.00, z=-1127.25], EntityPig['Pig'/69258, l='MpServer', x=-597.56, y=4.00, z=-1148.31], EntitySlime['Slime'/84644, l='MpServer', x=-690.13, y=4.00, z=-1255.23], EntitySlime['Slime'/86204, l='MpServer', x=-657.47, y=4.02, z=-1251.88], EntitySlime['Slime'/87172, l='MpServer', x=-682.38, y=4.57, z=-1267.51], EntitySlime['Slime'/91123, l='MpServer', x=-663.50, y=4.00, z=-1257.50], EntitySlime['Slime'/55472, l='MpServer', x=-613.54, y=3.00, z=-1111.65]]
- World MpServer Players: 1 total; [EntityClientPlayerMP['Player332'/0, l='MpServer', x=-677.26, y=13.99, z=-1192.74]]
- World MpServer Chunk Stats: MultiplayerChunkCache: 441
- Forced Entities: 36 total; [EntitySlime['Slime'/86204, l='MpServer', x=-657.47, y=4.02, z=-1251.88], EntitySlime['Slime'/20454, l='MpServer', x=-680.25, y=4.00, z=-1254.53], EntitySlime['Slime'/28979, l='MpServer', x=-698.76, y=4.00, z=-1250.25], EntitySlime['Slime'/40908, l='MpServer', x=-601.75, y=4.33, z=-1198.02], EntitySlime['Slime'/55472, l='MpServer', x=-613.54, y=3.00, z=-1111.65], EntitySlime['Slime'/45904, l='MpServer', x=-696.25, y=4.00, z=-1149.56], EntitySlime['Slime'/43333, l='MpServer', x=-706.97, y=4.00, z=-1251.47], EntitySlime['Slime'/54913, l='MpServer', x=-690.13, y=4.00, z=-1237.72], EntitySlime['Slime'/84644, l='MpServer', x=-690.13, y=4.00, z=-1255.23], EntitySlime['Slime'/38112, l='MpServer', x=-625.72, y=4.00, z=-1261.38], EntitySlime['Slime'/15588, l='MpServer', x=-637.82, y=4.82, z=-1159.71], EntitySlime['Slime'/36181, l='MpServer', x=-689.37, y=4.00, z=-1252.71], EntitySlime['Slime'/7964, l='MpServer', x=-726.53, y=4.00, z=-1256.91], EntitySlime['Slime'/77489, l='MpServer', x=-609.56, y=4.00, z=-1177.16], EntitySlime['Slime'/51483, l='MpServer', x=-710.84, y=4.00, z=-1254.88], EntitySheep['Sheep'/69246, l='MpServer', x=-676.50, y=4.00, z=-1245.50], EntitySheep['Sheep'/69247, l='MpServer', x=-676.50, y=4.00, z=-1240.50], EntitySheep['Sheep'/69244, l='MpServer', x=-687.79, y=4.00, z=-1238.38], EntitySlime['Slime'/63192, l='MpServer', x=-597.91, y=4.00, z=-1168.78], EntitySheep['Sheep'/69245, l='MpServer', x=-679.50, y=4.00, z=-1241.50], EntitySlime['Slime'/91123, l='MpServer', x=-663.50, y=4.00, z=-1257.50], EntityClientPlayerMP['Player332'/0, l='MpServer', x=-677.26, y=13.99, z=-1192.74], EntitySlime['Slime'/83365, l='MpServer', x=-725.16, y=4.00, z=-1127.25], EntitySheep['Sheep'/69255, l='MpServer', x=-603.19, y=4.00, z=-1137.21], EntitySlime['Slime'/73917, l='MpServer', x=-625.19, y=4.00, z=-1199.13], EntityPig['Pig'/69260, l='MpServer', x=-601.34, y=4.00, z=-1137.21], EntitySlime['Slime'/16226, l='MpServer', x=-711.97, y=4.18, z=-1114.31], EntitySlime['Slime'/53721, l='MpServer', x=-643.16, y=4.00, z=-1147.15], EntitySlime['Slime'/25102, l='MpServer', x=-637.88, y=4.00, z=-1169.44], EntitySlime['Slime'/33003, l='MpServer', x=-665.53, y=5.00, z=-1167.06], EntitySlime['Slime'/55280, l='MpServer', x=-689.82, y=4.85, z=-1243.96], EntityPig['Pig'/69258, l='MpServer', x=-597.56, y=4.00, z=-1148.31], EntitySlime['Slime'/10776, l='MpServer', x=-658.93, y=4.18, z=-1184.43], EntitySlime['Slime'/87172, l='MpServer', x=-682.38, y=4.57, z=-1267.51], EntitySlime['Slime'/44558, l='MpServer', x=-692.45, y=4.33, z=-1252.70], EntitySlime['Slime'/30912, l='MpServer', x=-637.84, y=4.00, z=-1163.16]]
- Retry Entities: 0 total; []
Here's my mod_Penguin.java:
import java.util.Map;
public class mod_Penguins extends BaseMod {
public mod_Penguins()
{
ModLoader.registerEntityID(EntityPenguin.class, "Penguin", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(EntityPenguin.class, 20, 20, 20, EnumCreatureType.creature);
}
public void AddRenderer(Map map){
map.put(EntityPenguin.class, new RenderPenguin(new ModelPenguin(), 0.5F));
}
public String getVersion() {
return "Penguins! 0.1";
}
public void load() {
}
}
Render Penguin:
public class RenderPenguin extends RenderLiving {
public RenderPenguin(ModelBase par1ModelBase, float par2)
{
super(par1ModelBase, par2);
}
public void renderPenguin(EntityPenguin par1EntityPenguin, double par2, double par4, double par6, float par8, float par9)
{
super.doRenderLiving(par1EntityPenguin, par2, par4, par6, par8, par9);
}
public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9)
{
this.renderPenguin((EntityPenguin)par1EntityLiving, par2, par4, par6, par8, par9);
}
/**
* Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then
* handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic
* (Render * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that.
*/
public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
{
this.renderPenguin((EntityPenguin)par1Entity, par2, par4, par6, par8, par9);
}
}
Entity Penguin:
public class EntityPenguin extends EntityAnimal {
public EntityPenguin(World par1World)
{
super(par1World);
this.texture = "/mob/penguin.png";
this.setSize(1.8F, 0.9F);
this.getNavigator().setAvoidsWater(false);
this.tasks.addTask(0, new EntityAISwimming(this));
this.tasks.addTask(1, new EntityAIPanic(this, 0.38F));
this.tasks.addTask(2, new EntityAIMate(this, 0.2F));
this.tasks.addTask(3, new EntityAITempt(this, 0.25F, Item.wheat.shiftedIndex, false));
this.tasks.addTask(4, new EntityAIFollowParent(this, 0.25F));
this.tasks.addTask(5, new EntityAIWander(this, 0.2F));
this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
this.tasks.addTask(7, new EntityAILookIdle(this));
}
/**
* Returns true if the newer Entity AI code should be run
*/
public boolean isAIEnabled()
{
return true;
}
public int getMaxHealth()
{
return 10;
}
/**
* Returns the sound this mob makes while it's alive.
*/
protected String getLivingSound()
{
return "mob.cow";
}
/**
* Returns the sound this mob makes when it is hurt.
*/
protected String getHurtSound()
{
return "mob.cowhurt";
}
/**
* Returns the sound this mob makes on death.
*/
protected String getDeathSound()
{
return "mob.cowhurt";
}
/**
* Returns the volume for the sounds this mob makes.
*/
protected float getSoundVolume()
{
return 0.4F;
}
/**
* Returns the item ID for the item the mob drops on death.
*/
protected int getDropItemId()
{
return Item.leather.shiftedIndex;
}
/**
* Drop 0-2 items of this living's type
*/
protected void dropFewItems(boolean par1, int par2)
{
int var3 = this.rand.nextInt(3) + this.rand.nextInt(1 + par2);
int var4;
for (var4 = 0; var4 < var3; ++var4)
{
this.dropItem(Item.leather.shiftedIndex, 1);
}
var3 = this.rand.nextInt(3) + 1 + this.rand.nextInt(1 + par2);
for (var4 = 0; var4 < var3; ++var4)
{
if (this.isBurning())
{
this.dropItem(Item.beefCooked.shiftedIndex, 1);
}
else
{
this.dropItem(Item.beefRaw.shiftedIndex, 1);
}
}
}
/**
* Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.
*/
public boolean interact(EntityPlayer par1EntityPlayer)
{
return true;
}
/**
* This function is used when two same-species animals in 'love mode' breed to generate the new baby animal.
*/
public EntityAnimal spawnBabyAnimal(EntityAnimal par1EntityAnimal)
{
return new EntityPenguin(this.worldObj);
}
}
And Finally Model code Genned from Techne:
public class ModelPenguin extends ModelBase {
//fields
ModelRenderer Head;
ModelRenderer RightEye;
ModelRenderer LeftEye;
ModelRenderer Beak;
ModelRenderer body;
ModelRenderer rightarm;
ModelRenderer leftarm;
ModelRenderer rightleg;
ModelRenderer leftleg;
public ModelPenguin()
{
textureWidth = 64;
textureHeight = 32;
Head = new ModelRenderer(this, 0, 0);
Head.addBox(-4F, -8F, -4F, 5, 5, 5);
Head.setRotationPoint(1.5F, 12F, 1F);
Head.setTextureSize(64, 32);
Head.mirror = true;
setRotation(Head, 0F, 0F, 0F);
RightEye = new ModelRenderer(this, 20, 0);
RightEye.addBox(0F, 0F, 0F, 1, 1, 1);
RightEye.setRotationPoint(-2F, 5F, -3.5F);
RightEye.setTextureSize(64, 32);
RightEye.mirror = true;
setRotation(RightEye, 0F, 0F, 0F);
LeftEye = new ModelRenderer(this, 20, 0);
LeftEye.addBox(0F, 0F, 0F, 1, 1, 1);
LeftEye.setRotationPoint(1F, 5F, -3.5F);
LeftEye.setTextureSize(64, 32);
LeftEye.mirror = true;
setRotation(LeftEye, 0F, 0F, 0F);
Beak = new ModelRenderer(this, 20, 3);
Beak.addBox(0F, 0F, 0F, 1, 1, 2);
Beak.setRotationPoint(-0.5F, 7F, -5F);
Beak.setTextureSize(64, 32);
Beak.mirror = true;
setRotation(Beak, 0F, 0F, 0F);
body = new ModelRenderer(this, 16, 16);
body.addBox(-4F, 0F, -2F, 7, 12, 4);
body.setRotationPoint(0.5F, 9F, 0F);
body.setTextureSize(64, 32);
body.mirror = true;
setRotation(body, 0F, 0F, 0F);
rightarm = new ModelRenderer(this, 40, 16);
rightarm.addBox(-3F, -2F, -2F, 1, 9, 4);
rightarm.setRotationPoint(-1.5F, 11F, 0F);
rightarm.setTextureSize(64, 32);
rightarm.mirror = true;
setRotation(rightarm, 0F, 0F, 0F);
leftarm = new ModelRenderer(this, 40, 16);
leftarm.addBox(-1F, -2F, -2F, 1, 9, 4);
leftarm.setRotationPoint(4.5F, 11F, 0F);
leftarm.setTextureSize(64, 32);
leftarm.mirror = true;
setRotation(leftarm, 0F, 0F, 0F);
rightleg = new ModelRenderer(this, 0, 16);
rightleg.addBox(-2F, 0F, -2F, 1, 3, 1);
rightleg.setRotationPoint(-0.5F, 21F, 1F);
rightleg.setTextureSize(64, 32);
rightleg.mirror = true;
setRotation(rightleg, 0F, 0F, 0F);
leftleg = new ModelRenderer(this, 0, 16);
leftleg.addBox(-2F, 0F, -2F, 1, 3, 1);
leftleg.setRotationPoint(3.5F, 21F, 1F);
leftleg.setTextureSize(64, 32);
leftleg.mirror = true;
setRotation(leftleg, 0F, 0F, 0F);
}
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
super.render(entity, f, f1, f2, f3, f4, f5);
setRotationAngles(f, f1, f2, f3, f4, f5);
Head.render(f5);
RightEye.render(f5);
LeftEye.render(f5);
Beak.render(f5);
body.render(f5);
rightarm.render(f5);
leftarm.render(f5);
rightleg.render(f5);
leftleg.render(f5);
}
private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
{
super.setRotationAngles(f, f1, f2, f3, f4, f5);
}
}
(new BlockEpicOre(?, ModLoader.addOverride("/terrain.png", "/mods/EpicOre.png")))
i have a good id in there and yah but it underlines the whole thing saying its wrong but on yours it doesnt if anyone else cna help me plzzzz EDIT:Nvm when i finished the coding for blockepicore it stopped being underlined well keep up the good work
EpicOre = (new BlockEpicOre(398, ModLoader.addOverride("/terrain.png", "/mods/EpicOre.png")))
.setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep).setBlockName("EpicOre");
it says its wrong plz help if its the id tell me a unused 1 plz if anything plz TELL ME
Spoiler:
1. Open up Eclipse
2. Open mod_#### where #### = the name of your mod
3. Edit mod_#### like shown in the video and save it.
4. Now you should have your food.
You said food for armor.
Though the tutorials are great! I'm working on a Mexican Mod
So far I've added:
Spiced Ore
Hot Sauce
and I'm planning to make:
Mild Sauce
Explosive Sauce
Spiced Grass
Tacos (Hot, Mild, Explosive)
Fajitas (Hot, Mild, Explosive)
Tamales (Hot, Mild, Explosive)
Mexican Armor (Sombreros, Serapes, Leggings, and Sandals)
A whole biome for the mod
Randomly Generating Mexican Villages
*If I feel like it* Mexican Mobs
Mexican Sword (Same damage as an Iron sword)
Conquistador's Sword (More damage than diamond sword)
and more...
I'll give credit to you. Thanks
I was wondering if I could like texture your things your making cause it sounds real cool. I dont have a skype (My cp won't allow 4 some reason) but i can type:) and can you help me with this problem
package net.minecraft.src;
public class mod_epicmod extends BaseMod
{
public static final Block EpicOre;
static
{
EpicOre = (new BlockEpicOre(398, ModLoader.addOverride("/terrain.png", "/mod /EpicOre.png"))) .setHardness (3.0F).setResistance(5.0F).setStepSound(Block.soundStoneFootstep).setBlockName("EpicOre");
}
public void load()
{
}
public mod_epicmod()
{
ModLoader.registerBlock(EpicOre);
ModLoader.addName(EpicOre, "EpicOre");
}
public String getVersion()
{
return "Minecraft 1.3.1 and above EpicMod";
}
}
can you plz tell me whats wrong
What does it say the errors are? I'm not a wizard at this, but I could probably figure it out.
Also: I'm doing the textures to start, but you can do them once the mod is finished
I tryed the block tutorial i set id to 500 first test i made a creative world for testing it i used /give command it said No item exists with that id so i changed the id and next test it started crashing everytime i tested.