...if you don't even know about static variables yet, go learn. Don't mess around with modding until you know a LOT more. This is NOT a good way to get into Java.
...if you don't even know about static variables yet, go learn. Don't mess around with modding until you know a LOT more. This is NOT a good way to get into Java.
I learn fast. If I learn as I do, I can do and redo just about anything.
is there something wrong? you know its hard to look at code and tell if its wrong when you have not been told anything. if its wrong, post the error message, if no error message, it works.
btw, all of your recipes have the same helmet shaped crafting recipe. may want to change that as it will only return the first crafting recipe added.
I haven't gotten any errors yet, and know that I look, you're right. I forgot to change the recipe shape.
really though, if you do not know basic java before you start modding, your going to hit problems after problems.
think of yourself as if your doing the hurdles (except instead of hurdles they are brick walls). you were happily running down your lane until you hit your first wall. and you forgot to jump. luckily though, the wall was only small, so you hit your shins off the wall and face planted the floor (or you could think of it as me and dmillerw pushed you over it). you can now keep on running, but soon you will hit another wall, and it may be too large for people to push you over.
in essence, what im saying is, if you do not understand the basics of java, you are going to screw up your code so badly that when you get an error message, you may need to re-write your whole code to get rid of it. and people will probably not want to help with it. so go watch buckys videos before you do any more modding: http://www.youtube.c...28&feature=plcp
Well that will have to wait for another day. I have a very full schedule as of right now.
As I said, I'm giving it a rest for now. I will watch the how-many videos another day. I am very busy.
Oh, and you want to see the full file?
Here
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
public class mod_AngelStone extends BaseMod{
//declaring
public static final Block Shard = new BlockShard(200, 0).setBlockName("Shard").setHardness(2F).setResistance(3F).setLightValue(0.2F);
public void load(){
//tells minecraft that you are using a custom texture
Shard.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Shardstoneblock.png");
//adds the block into minecraft and creates all of its variables
ModLoader.registerBlock(Shard);
//sets the name of the block
ModLoader.addName(Shard, "Angel Stone");
//creates a crafting recipe for our block
ModLoader.addRecipe(new ItemStack(mod_AngelStone.Shard, 1), new Object[] {"###", "#X#", "###", '#', Block.obsidian, 'X', Item.diamond});
//Armour
public static final Item ShardHelmet = new ItemArmor(407, EnumArmorMaterial.DIAMOND, ModLoader;addArmor("Shard"), 0).setItemName("Angelic Helmet");
public static final Item ShardChest = new ItemArmor(408, EnumArmorMaterial.DIAMOND, ModLoader;addArmor("Shard"), 1).setItemName("Angelic Chest");
public static final Item ShardPants = new ItemArmor(409, EnumArmorMaterial.DIAMOND, ModLoader;addArmor("Shard"), 2).setItemName("Angelic Pants");
public static final Item ShardBoots = new ItemArmor(410, EnumArmorMaterial.DIAMOND, ModLoader;addArmor("Shard"), 3).setItemName("Angelic Boots");
ShardHelmet.iconIndex = ModLoader.addOverride("/gui/items.png",
"/ShardHelmet.png");
ModLoader.addName(ShardHelmet, "Angelic Helmet");
ModLoader.addRecipe(new ItemStack(ShardHelmet, 1), new Object[] { "###",
"# #", Character.valueOf('#'), Shard });
ShardChest.iconIndex = ModLoader.addOverride("/gui/items.png",
"/ShardChest.png");
ModLoader.addName(ShardHelmet, "Angelic Chest");
ModLoader.addRecipe(new ItemStack(ShardChest, 1), new Object[] { "# #",
"###", "###", Character.valueOf('#'), Shard });
ShardPants.iconIndex = ModLoader.addOverride("/gui/items.png",
"/ShardPants.png");
ModLoader.addName(ShardPants, "Angelic Pants");
ModLoader.addRecipe(new ItemStack(ShardPants, 1), new Object[] { "###",
"# #", "# #", Character.valueOf('#'), Shard });
ShardBoots.iconIndex = ModLoader.addOverride("/gui/items.png",
"/ShardBoots.png");
ModLoader.addName(ShardBoots, "Angelic Boots");
ModLoader.addRecipe(new ItemStack(ShardBoots, 1), new Object[] { " ",
"# #", "# #", Character.valueOf('#'), Shard });
}
//sets the version number of our whole mod
public String getVersion(){
return "AngelStone mod v0.1";
}
}
i dont even know how to begin attempting to tell him how wrong his code is even by just looking at ModLoader;addArmor("Shard"),0).setItemName("Angelic Helmet");
he refuses to listen to our advice.
Yes, yes. I get the point. The code is very ****ed up.
im just going along with it for the kicks now. i want to see how bad the problems get before he truly realises he cannot continue before learning java.
That comment irritates me just enough to make me want my next post to be the completed version of the mod_ file.
im guessing you dont understand the difference between local and global variables?
No, of course i do. I am a complete master of Java, as we've already established. And I was just waiting for you to ask, because I have nothing to do other than sit here pressing F5 until a new comment is made.
he was missing a bracket which was giving him the semi-colon error. but hes too much of a newbie to understand whats actually going on when coding.
You say I'm missing a bracket. Would you care to tell me where, so that we may move on, or would you prefer to continue acting like a pompous ass?I'm serious. If the problem is so clear to you, cutter, then tell me.
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
public class mod_AngelStone extends BaseMod{
//declaring
public static final Block Shard = new BlockShard(200, 0).setBlockName("Shard").setHardness(2F).setResistance(3F).setLightValue(0.2F);
public void load(){
//tells minecraft that you are using a custom texture
Shard.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Shardstoneblock.png");
//adds the block into minecraft and creates all of its variables
ModLoader.registerBlock(Shard);
//sets the name of the block
ModLoader.addName(Shard, "Angel Stone");
//creates a crafting recipe for our block
ModLoader.addRecipe(new ItemStack(mod_AngelStone.Shard, 1), new Object[] {"###", "#X#", "###", '#', Block.obsidian, 'X', Item.diamond});
//Armour
public static final Item ShardHelmet = new ItemArmor(407, EnumArmorMaterial.DIAMOND, ModLoader.addArmor("Shard"), 0).setItemName("Angelic Helmet");
public static final Item ShardChest = new ItemArmor(408, EnumArmorMaterial.DIAMOND, ModLoader.addArmor("Shard"), 1).setItemName("Angelic Chest");
public static final Item ShardPants = new ItemArmor(409, EnumArmorMaterial.DIAMOND, ModLoader.addArmor("Shard"), 2).setItemName("Angelic Pants");
public static final Item ShardBoots = new ItemArmor(410, EnumArmorMaterial.DIAMOND, ModLoader.addArmor("Shard"), 3).setItemName("Angelic Boots");
ShardHelmet.iconIndex = ModLoader.addOverride("/gui/items.png",
"/ShardHelmet.png");
ModLoader.addName(ShardHelmet, "Angelic Helmet");
ModLoader.addRecipe(new ItemStack(ShardHelmet, 1), new Object[] { "###",
"# #", Character.valueOf('#'), Shard });
ShardChest.iconIndex = ModLoader.addOverride("/gui/items.png",
"/ShardChest.png");
ModLoader.addName(ShardHelmet, "Angelic Chest");
ModLoader.addRecipe(new ItemStack(ShardChest, 1), new Object[] { "# #",
"###", "###", Character.valueOf('#'), Shard });
ShardPants.iconIndex = ModLoader.addOverride("/gui/items.png",
"/ShardPants.png");
ModLoader.addName(ShardPants, "Angelic Pants");
ModLoader.addRecipe(new ItemStack(ShardPants, 1), new Object[] { "###",
"# #", "# #", Character.valueOf('#'), Shard });
ShardBoots.iconIndex = ModLoader.addOverride("/gui/items.png",
"/ShardBoots.png");
ModLoader.addName(ShardBoots, "Angelic Boots");
ModLoader.addRecipe(new ItemStack(ShardBoots, 1), new Object[] { " ",
"# #", "# #", Character.valueOf('#'), Shard });
}
//sets the version number of our whole mod
public String getVersion(){
return "AngelStone mod v0.1";
}
}
Well, I'm done. I decided to just leave it as an addition mod for right now. It adds 3 new blocks. One being Angel Stone, which looks just as gorgeous as the girl who inspired me to make it. The other two are new bricks. One is Dark-Stone Bricks, the other is Light-Stone Bricks. Looks nice if you want to spruce up your fortress.
Would you like to see the code? My only problem as of now is that I'm not sure how to put the cherry on top.(Final preparations prior to distribution)
I learn fast. If I learn as I do, I can do and redo just about anything.
I see nothing wrong, but like cutter said, if there's no errors, there's nothing wrong.
I haven't gotten any errors yet, and know that I look, you're right. I forgot to change the recipe shape.
I have gone from 12 errors to 20, and the program has decided that a semi-colon is not semi-colon enough.
Well that will have to wait for another day. I have a very full schedule as of right now.
Oh, and you want to see the full file?
Here
Going day by day.
Yes, yes. I get the point. The code is very ****ed up.
Don't die.
That comment irritates me just enough to make me want my next post to be the completed version of the mod_ file.
No, of course i do. I am a complete master of Java, as we've already established. And I was just waiting for you to ask, because I have nothing to do other than sit here pressing F5 until a new comment is made.
Waiting. I was under the assumption that there was something more to be said about the miss-written lines concerning the armor.
I know. It kept saying it was expected. I put it in. It didn't get rid of any errors, and I didn't expect it to work either.
You need to update MCP and re-decompile Minecraft. That's all left over from the pre-release.
You say I'm missing a bracket. Would you care to tell me where, so that we may move on, or would you prefer to continue acting like a pompous ass?I'm serious. If the problem is so clear to you, cutter, then tell me.
Would you like to see the code? My only problem as of now is that I'm not sure how to put the cherry on top.(Final preparations prior to distribution)