Thanks for the help TechGuy. Just one more question. How can I add flame effect to a sword? I mean like the enchantment. Oh yeah, I added the code you gave me for the creative GUI, and it cant resolve a variable for creativeInventory.
Thanks for the help TechGuy. Just one more question. How can I add flame effect to a sword? I mean like the enchantment. Oh yeah, I added the code you gave me for the creative GUI, and it cant resolve a variable for creativeInventory.
I'm not too sure about enchantments. Did you add the bottom line of code?
private static GuiScreen creativeInventory;
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Someone please help me! i am trying to decompile with modloader installed but cant get it right. i put my resources and bin in the jars folder. i do the "Change Directory", i run cleanup, and when i run decompile i always get errors. i did delete meta-inf and here is what it said on terminal:
== MCP 6.1 (data: 6.1, client: 1.2.4, server: 1.2.4) ==
# found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, param csvs, astyle, astyle config
!! Updates available. Please run updatemcp to get them. !!
> Creating Retroguard config files
FATAL ERROR
Traceback (most recent call last):
File "runtime/decompile.py", line 105, in decompile
strip_comments=strip_comments, exc_update=exc_update)
File "/Users/EvilPenguin/Desktop/MODDING FOLDER/MCP/runtime/mcp.py", line 16, in decompile_side
if not commands.checkjars(side):
File "/Users/EvilPenguin/Desktop/MODDING FOLDER/MCP/runtime/commands.py", line 737, in checkjars
with open(jarlk[side], 'rb') as fh:
IOError: [Errno 21] Is a directory
Someone please help me! i am trying to decompile with modloader installed but cant get it right. i put my resources and bin in the jars folder. i do the "Change Directory", i run cleanup, and when i run decompile i always get errors. i did delete meta-inf and here is what it said on terminal:
== MCP 6.1 (data: 6.1, client: 1.2.4, server: 1.2.4) ==
# found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, param csvs, astyle, astyle config
!! Updates available. Please run updatemcp to get them. !!
> Creating Retroguard config files
FATAL ERROR
Traceback (most recent call last):
File "runtime/decompile.py", line 105, in decompile
strip_comments=strip_comments, exc_update=exc_update)
File "/Users/EvilPenguin/Desktop/MODDING FOLDER/MCP/runtime/mcp.py", line 16, in decompile_side
if not commands.checkjars(side):
File "/Users/EvilPenguin/Desktop/MODDING FOLDER/MCP/runtime/commands.py", line 737, in checkjars
with open(jarlk[side], 'rb') as fh:
IOError: [Errno 21] Is a directory
can someone please help me?
Download MCP again, get a fresh jar and only install ModLoader on it, no other mods. Then try and decompile. Also, what do you mean by:
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Download MCP again, get a fresh jar and only install ModLoader on it, no other mods. Then try and decompile. Also, what do you mean by:
i do the "Change Directory"
What do you mean by that. Mechanics and Interfaces could mean anything.
I have tried that many times, with a fresh minecraft folder (inc. jar and bin) and a new MPC. by change directory i mean when at the beginning before running clean up you do " cd (drag in the MPC folder) " in terminal on mac.
I made a block, ran reobfuscate, put the files and modloader in my minecraft.jar, but then the game kept crashing. On Eclipse there are no errors in the code. I tried installing my mod without modloader, of course it didn't work but the game did not crash. When I installed modloader it then crashed. Any idea on what is happening?
HELL YEAH! i got my decompile working! im so happy
just to check, what is a .java file that modloader adds so i can that if its there, modloader is there.
I am trying to make some new stairs, but every time I craft them or scroll down to where they are located in the Creative inventory, the game crashes.
Here is my Block file:
package net.minecraft.src;
import java.util.ArrayList;
public class BlockConcrete11 extends Block
{
public BlockConcrete11(int i, int j)
{
super(i, j, Material.wood);
}
public void getCollidingBoundingBoxes(World world, int i, int j, int k, AxisAlignedBB axisalignedbb, ArrayList arraylist)
{
int l = world.getBlockMetadata(i, j, k);
if (l == 0)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 0.5F, 0.5F, 1.0F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
setBlockBounds(0.5F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
}
else if (l == 1)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 0.5F, 1.0F, 1.0F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
setBlockBounds(0.5F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
}
else if (l == 2)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 0.5F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
setBlockBounds(0.0F, 0.0F, 0.5F, 1.0F, 1.0F, 1.0F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
}
else if (l == 3)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 0.5F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
setBlockBounds(0.0F, 0.0F, 0.5F, 1.0F, 0.5F, 1.0F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
}
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
}
public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving)
{
int l = MathHelper.floor_double((double)((entityliving.rotationYaw * 4F) / 360F) + 0.5D) & 3;
if (l == 0)
{
world.setBlockMetadataWithNotify(i, j, k, 2);
}
if (l == 1)
{
world.setBlockMetadataWithNotify(i, j, k, 1);
}
if (l == 2)
{
world.setBlockMetadataWithNotify(i, j, k, 3);
}
if (l == 3)
{
world.setBlockMetadataWithNotify(i, j, k, 0);
}
}
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
}
public boolean isOpaqueCube()
{
return false;
}
public boolean renderAsNormalBlock()
{
return false;
}
public int getRenderType()
{
return 10;
}
}
Here is the error report:
java.lang.NullPointerException
at net.minecraft.src.ItemStack.getIconIndex(ItemStack.java:105)
at net.minecraft.src.RenderItem.renderItemIntoGUI(RenderItem.java:270)
at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:228)
at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:74)
at net.minecraft.src.GuiContainerCreative.drawScreen(GuiContainerCreative.java:235)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1014)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:20)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:942)
at net.minecraft.client.Minecraft.run(Minecraft.java:798)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT 18c2be4c ----------
public static final Item ItemZythriumHelmet = new ItemArmor(608, EnumArmorMaterial.ZYTHRIUM, ModLoader.addArmor("zythrium"), 0).setItemName("ItemZythriumHelmet");
public static final Item ItemZythriumChest = new ItemArmor(609, EnumArmorMaterial.ZYTHRIUM, ModLoader.addArmor("zythrium"), 1).setItemName("ItemZythriumChest");
public static final Item ItemZythriumLegs = new ItemArmor(610, EnumArmorMaterial.ZYTHRIUM, ModLoader.addArmor("zythrium"), 2).setItemName("ItemZythriumLegs");
public static final Item ItemZythriumBoots = new ItemArmor(611, EnumArmorMaterial.ZYTHRIUM, ModLoader.addArmor("zythrium"), 3).setItemName("ItemZythriumBoots");
There Are No Error My Armor Just Wont Show Its Texture
Hmmmm i tried to recompile after writing the stuff for an item, and it came with 6 errors. 3 of the said "cannot find variable modloader (in stuff like modloader.addOveride ....) and 1 of the said cannot find symbol "BaseMod ..."
does this mean modloader is NOT installed ?
EDIT: i did chek though and the BaseMod.class and other files were in the bin in the jars folder in the MCP folder so im not sure whats going on...
turns out that i hadnt changed the edited minecraft.jar back into the .jar (instead of folder) so i just decompiled the normal jar with no modloader and decompile still doesnt work
BaseMod.java << this is the main java file your need to make it work ..
if that one isnt decompiled your doing something wrong.
ehmm i dont see anny texture overrides in that pice of code ... you send ..
show the whole code ?? or add the texture part ...
hehe im trying to help
post your whole code you writen for that item.
and no that dusnt mean its not installed it means it cant find it yet ..
and maby try a Block first ?? Items are harder to make than blocks when your new like me
and try using eclipse .. that program helped me alot ..
is there a difference between editrocket an eclipse (im on mac) and what i did is i copied word for word what it said in Tech Guy's tutorial, of course i changed the name and the place for the texture and i made the two files i needed and ended both with .java
so i have no idea whats going on. im having so much trouble just decompiling with modloader installed.or is it possible that i need to create the 2 new files but also edit other ones? i really need someone to help me....i cant get this rightnow that i think about it, when i open the minecraft.jar with archive utility and put in the modloader files (over-writing the old ones), do i then get rid of the "minecraft.jar" and compress the folder (with modloader) into a .jar?and no there is no BaseMod.java in the list
What will happen when version 1.2.5 comes out, will you still make tutorials, or will you stop,and dø people need to use modloader then. Sorry my English is bad
Could someone possibly give/make me a 100% accurate and detailed "guide" as to how to decompile. (including stuff like "go to terminal and type **** then drag in the *****.** file) i am on a MAC! thanks to anyone that does this
ehmm i dont see anny texture overrides in that pice of code ... you send ..
show the whole code ?? or add the texture part ...
hehe im trying to help
the texture item override doesnt matter cuz i know its working (look at the picture number 2) but the only thing in the mod that isnt working is that it wont load the zythrium_1 and _2 textures and as far as i know the code that i pasted should load them by itself
I mean to say, if I want a block to spawn a mob on top of it every time it executes updateTick (with only a chance of spawning), what sort of methods would I need? I was thinking it would be something like this, but I have no clue where to start.
public int randomnumberthing
public void updateTick()
{
*code to generate a random value between 1 and 4 for randomnumberthing*
if(randomnumberthing = 4)
{
*code to spawn specific mob on top of block*
}
randomnumberthing = 0
}
I am trying to make some new stairs, but every time I craft them or scroll down to where they are located in the Creative inventory, the game crashes.
Here is my Block file:
package net.minecraft.src;
import java.util.ArrayList;
public class BlockConcrete11 extends Block
{
public BlockConcrete11(int i, int j)
{
super(i, j, Material.wood);
}
public void getCollidingBoundingBoxes(World world, int i, int j, int k, AxisAlignedBB axisalignedbb, ArrayList arraylist)
{
int l = world.getBlockMetadata(i, j, k);
if (l == 0)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 0.5F, 0.5F, 1.0F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
setBlockBounds(0.5F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
}
else if (l == 1)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 0.5F, 1.0F, 1.0F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
setBlockBounds(0.5F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
}
else if (l == 2)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 0.5F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
setBlockBounds(0.0F, 0.0F, 0.5F, 1.0F, 1.0F, 1.0F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
}
else if (l == 3)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 0.5F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
setBlockBounds(0.0F, 0.0F, 0.5F, 1.0F, 0.5F, 1.0F);
super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist);
}
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
}
public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving)
{
int l = MathHelper.floor_double((double)((entityliving.rotationYaw * 4F) / 360F) + 0.5D) & 3;
if (l == 0)
{
world.setBlockMetadataWithNotify(i, j, k, 2);
}
if (l == 1)
{
world.setBlockMetadataWithNotify(i, j, k, 1);
}
if (l == 2)
{
world.setBlockMetadataWithNotify(i, j, k, 3);
}
if (l == 3)
{
world.setBlockMetadataWithNotify(i, j, k, 0);
}
}
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k)
{
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
}
public boolean isOpaqueCube()
{
return false;
}
public boolean renderAsNormalBlock()
{
return false;
}
public int getRenderType()
{
return 10;
}
}
Here is the error report:
java.lang.NullPointerException
at net.minecraft.src.ItemStack.getIconIndex(ItemStack.java:105)
at net.minecraft.src.RenderItem.renderItemIntoGUI(RenderItem.java:270)
at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:228)
at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:74)
at net.minecraft.src.GuiContainerCreative.drawScreen(GuiContainerCreative.java:235)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1014)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:20)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:942)
at net.minecraft.client.Minecraft.run(Minecraft.java:798)
at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT 18c2be4c ----------
Any ideas?
Help please!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
You can reference it with 0. For example:
I'm not too sure about enchantments. Did you add the bottom line of code?
together they are powerful beyond imagination."
== MCP 6.1 (data: 6.1, client: 1.2.4, server: 1.2.4) ==
# found jad, jad patches, ff patches, osx patches, srgs, name csvs, doc csvs, param csvs, astyle, astyle config
!! Updates available. Please run updatemcp to get them. !!
> Creating Retroguard config files
FATAL ERROR
Traceback (most recent call last):
File "runtime/decompile.py", line 105, in decompile
strip_comments=strip_comments, exc_update=exc_update)
File "/Users/EvilPenguin/Desktop/MODDING FOLDER/MCP/runtime/mcp.py", line 16, in decompile_side
if not commands.checkjars(side):
File "/Users/EvilPenguin/Desktop/MODDING FOLDER/MCP/runtime/commands.py", line 737, in checkjars
with open(jarlk[side], 'rb') as fh:
IOError: [Errno 21] Is a directory
can someone please help me?
Download MCP again, get a fresh jar and only install ModLoader on it, no other mods. Then try and decompile. Also, what do you mean by:
What do you mean by that. Mechanics and Interfaces could mean anything.
together they are powerful beyond imagination."
just to check, what is a .java file that modloader adds so i can that if its there, modloader is there.
Here is my Block file:
package net.minecraft.src; import java.util.ArrayList; public class BlockConcrete11 extends Block { public BlockConcrete11(int i, int j) { super(i, j, Material.wood); } public void getCollidingBoundingBoxes(World world, int i, int j, int k, AxisAlignedBB axisalignedbb, ArrayList arraylist) { int l = world.getBlockMetadata(i, j, k); if (l == 0) { setBlockBounds(0.0F, 0.0F, 0.0F, 0.5F, 0.5F, 1.0F); super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist); setBlockBounds(0.5F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist); } else if (l == 1) { setBlockBounds(0.0F, 0.0F, 0.0F, 0.5F, 1.0F, 1.0F); super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist); setBlockBounds(0.5F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F); super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist); } else if (l == 2) { setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 0.5F); super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist); setBlockBounds(0.0F, 0.0F, 0.5F, 1.0F, 1.0F, 1.0F); super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist); } else if (l == 3) { setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 0.5F); super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist); setBlockBounds(0.0F, 0.0F, 0.5F, 1.0F, 0.5F, 1.0F); super.getCollidingBoundingBoxes(world, i, j, k, axisalignedbb, arraylist); } setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); } public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving) { int l = MathHelper.floor_double((double)((entityliving.rotationYaw * 4F) / 360F) + 0.5D) & 3; if (l == 0) { world.setBlockMetadataWithNotify(i, j, k, 2); } if (l == 1) { world.setBlockMetadataWithNotify(i, j, k, 1); } if (l == 2) { world.setBlockMetadataWithNotify(i, j, k, 3); } if (l == 3) { world.setBlockMetadataWithNotify(i, j, k, 0); } } public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k) { setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); } public boolean isOpaqueCube() { return false; } public boolean renderAsNormalBlock() { return false; } public int getRenderType() { return 10; } }Here is the error report:
Any ideas?
public static final Item ItemZythriumHelmet = new ItemArmor(608, EnumArmorMaterial.ZYTHRIUM, ModLoader.addArmor("zythrium"), 0).setItemName("ItemZythriumHelmet"); public static final Item ItemZythriumChest = new ItemArmor(609, EnumArmorMaterial.ZYTHRIUM, ModLoader.addArmor("zythrium"), 1).setItemName("ItemZythriumChest"); public static final Item ItemZythriumLegs = new ItemArmor(610, EnumArmorMaterial.ZYTHRIUM, ModLoader.addArmor("zythrium"), 2).setItemName("ItemZythriumLegs"); public static final Item ItemZythriumBoots = new ItemArmor(611, EnumArmorMaterial.ZYTHRIUM, ModLoader.addArmor("zythrium"), 3).setItemName("ItemZythriumBoots");There Are No Error My Armor Just Wont Show Its Texture
http://imageshack.us/photo/my-images/269/texturefolder.png/
http://imageshack.us/photo/my-images/6/armorerror.png/
I Did Everything Right...
Help Me!
does this mean modloader is NOT installed ?
EDIT: i did chek though and the BaseMod.class and other files were in the bin in the jars folder in the MCP folder so im not sure whats going on...
so i have no idea whats going on. im having so much trouble just decompiling with modloader installed.or is it possible that i need to create the 2 new files but also edit other ones? i really need someone to help me....i cant get this rightnow that i think about it, when i open the minecraft.jar with archive utility and put in the modloader files (over-writing the old ones), do i then get rid of the "minecraft.jar" and compress the folder (with modloader) into a .jar?and no there is no BaseMod.java in the list
the texture item override doesnt matter cuz i know its working (look at the picture number 2) but the only thing in the mod that isnt working is that it wont load the zythrium_1 and _2 textures and as far as i know the code that i pasted should load them by itself
public int randomnumberthing public void updateTick() { *code to generate a random value between 1 and 4 for randomnumberthing* if(randomnumberthing = 4) { *code to spawn specific mob on top of block* } randomnumberthing = 0 }If you could help, that'd be great!
Help please!