You should add armor tutorials... all the way from rendering on the player to simple coding it, all I need is the rendering it on the player.... But other people would probably find it useful too! Thanks! (I'll probably credit you on my mod!)
Armour is on his to do list. Which also states that he's not taking requests. You could at least look over the original post a little more before posting about it.
My mod_Mangmod is now a .java, but I still cannot craft my item. I have my dirt blocks in a bucket shape...I just don't understand whats wrong. When I run startclient, it says "Found unknown windows version: Windows 7. Attempting to use default windows plug-in" I don't know if that is it or not. I don't understand what is still going wrong.
My mod_Mangmod is now a .java, but I still cannot craft my item. I have my dirt blocks in a bucket shape...I just don't understand whats wrong. When I run startclient, it says "Found unknown windows version: Windows 7. Attempting to use default windows plug-in" I don't know if that is it or not. I don't understand what is still going wrong.
package net.minecraft.src;
import java.util.Map;
public class mod_MangMod extends BaseMod
{
public static final Item glasscup = new glasscup(5000).setItemName("glasscup");
public static final Item appleJuice = new applejuice(5001).setItemName("applejuice");
public void load()
{
ModLoader.registerEntityID(InnocentVillager.class, "InnocentVillager", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(InnocentVillager.class, 12, 14, 18, EnumCreatureType.creature);
glassCup.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/glasscup.png");
ModLoader.addName(glasscup, "Glass Cup");
ModLoader.addRecipe(new ItemStack(glasscup, 1), new Object [] {"# #", " # ", Character.valueOf('#'), Block.dirt});
appleJuice.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/applejuice.png");
ModLoader.addName(appleJuice, "Apple Juice");
ModLoader.addRecipe(new ItemStack(appleJuice, 1), new Object [] {"#", "#", "%", Character.valueOf('#'), Item.appleRed, Character.valueOf('%'), glassCup});
}
public void addRenderer(Map map)
{
map.put(InnocentVillager.class, new RenderBiped(new ModelBiped(), 0.5F));
}
public String getVersion()
{
return "1.2.5";
}
}
Are you recompiling before you test it? You need to recompile it every time you modify code. Also, be sure to hit "Save All" under file after you modify something.
>Modify Code
>Save All
>recompile.bat (wait until it says done)
>startclient.bat
The glass cup in your item declaration has no capital letters in either the declaration itself, nor in the .setItemName. So, make sure that wherever else your glass cup is, it also doesn't have capitals. Either change the glasscup's .setItemName to "glassCup", OR change your texture override to "glasscup.iconIndex". One or the other. Just make sure that capitalizations are all the same wherever you declare your items.
package net.minecraft.src;
import java.util.Map;
public class mod_MangMod extends BaseMod
{
public static final Item glasscup = new glasscup(5000).setItemName("glasscup");
public static final Item applejuice = new applejuice(5001).setItemName("applejuice");
public void load()
{
ModLoader.registerEntityID(innocentvillager.class, "innocentvillager", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(innocentVillager.class, 12, 14, 18, EnumCreatureType.creature);
glasscup.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/glasscup.png");
ModLoader.addName(glasscup, "Glass Cup");
ModLoader.addRecipe(new ItemStack(glasscup, 1), new Object [] {"# #", " # ", Character.valueOf('#'), Block.dirt});
applejuice.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/applejuice.png");
ModLoader.addName(applejuice, "Apple Juice");
ModLoader.addRecipe(new ItemStack(applejuice, 1), new Object [] {"#", "#", "%", Character.valueOf('#'), Item.appleRed, Character.valueOf('%'), glasscup});
}
public void addRenderer(Map map)
{
map.put(innocentvillager.class, new RenderBiped(new ModelBiped(), 0.5F));
}
public String getVersion()
{
return "1.2.5";
}
}
glasscup.java
package net.minecraft.src;
public class glasscup extends Item
{
public glasscup(int i)
{
super(i);
maxStackSize = 64;
}
}
applejuice.java
package net.minecraft.src;
public class glasscup extends Item
{
public glasscup(int i)
{
super(i);
maxStackSize = 64;
}
}
Your applejuice.java says the same thing as your glasscup. So first try changing it to say this:
public class applejuice extends Item
If that doesn't work:
Also, if your item has no special properties, I think the maximum stack defaults to 64, so you don't actually need the glasscup.java or the applejuice.java. Make a copy of their code and save them to text files as backup elsewhere, and then delete them. After that, you should need only to change your declarations to this:
public static final Item glasscup = new Item(5000).setItemName("glasscup");
public static final Item applejuice = new Item(5001).setItemName("applejuice");
EDIT: The edit feature on this site is starting to upset me. Make sure you refresh the page and look at my response one more time...
package net.minecraft.src;
import java.util.Map;
public class mod_MangMod extends BaseMod
{
public static final Item glasscup = new Item(5000).setItemName("glasscup");
public static final Item applejuice = new Item(5001).setItemName("applejuice");
public void load()
{
ModLoader.registerEntityID(innocentvillager.class, "innocentvillager", ModLoader.getUniqueEntityId());
ModLoader.addSpawn(innocentvillager.class, 12, 14, 18, EnumCreatureType.creature);
glasscup.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/glasscup.png");
ModLoader.addName(glasscup, "Glass Cup");
ModLoader.addRecipe(new ItemStack(glasscup, 1), new Object [] {"# #", " # ", Character.valueOf('#'), Block.dirt});
applejuice.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/applejuice.png");
ModLoader.addName(applejuice, "Apple Juice");
ModLoader.addRecipe(new ItemStack(applejuice, 1), new Object [] {"#", "#", "%", Character.valueOf('#'), Item.appleRed, Character.valueOf('%'), glasscup});
}
public void addRenderer(Map map)
{
map.put(innocentvillager.class, new RenderBiped(new ModelBiped(), 0.5F));
}
public String getVersion()
{
return "1.2.5";
}
}
Regarding the minecraft.jar you decompiled before you started coding... Did said .jar have modloader installed?
If it doesn't, back up this whole code, go into your directory mcp > jars > bin, open up your minecraft.jar, install modloader to it, then hit the cleanup.bat, and once that completes, decompile it again.
>install modloader to your .jar
>cleanup.bat (have to type "yes")
>decompile.bat
>Re-open eclipse
>recreate your mod_Mangmod.java
>paste your backed up code into it
>save all
>recompile.bat
>startclient.bat
...and could someone tell me how to make a spawn egg for my npc?
I'm glad you're all sorted out. I don't know how to make spawn eggs, but if I learn how to, I'll try and get back to you on it.
Now could you do me a small favor? Hit the on a few of my posts directed at helping you? (Be sure to do the same for TechGuy and others who helped as well)
Hey, uh, I want two kinds of swamps, one that generates peat and one that doesn't. I tried copying everything in BiomeGenSwamp and making a BiomeGenPeatSwamp, but it didn't work. So I just made it have water as top block and "Mud" as filler block, but trees don't generate on mud. How do I make trees generate on Mud?
You can't. They are set to generate only on dirt or grass.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Any suggestions on what I could do? Do you know how to make a copy of a swamp biome? As I said I tried copying everything, but no lakes/ponds spawned in my new swamps.
That is set up in world gen, not biome gen.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
To post a comment, please login or register a new account.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium-
View User Profile
-
View Posts
-
Send Message
Curse PremiumAre you sure you have all of your files saved as .java files?
-
View User Profile
-
View Posts
-
Send Message
Retired StaffArmour is on his to do list. Which also states that he's not taking requests. You could at least look over the original post a little more before posting about it.
Your "mod_Mangmod.
class" should be "mod_Mangmod.java" as well.Oh wow. You're the only one who noticed that xD
-
View User Profile
-
View Posts
-
Send Message
Retired StaffI think Koadmaster may have noticed it also, unless it was just a suggestion to him. Either way, I looked more closely because of Koad.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiummod_MangMod.java (mcp>src>minecraft>net>Minecraft>src)
package net.minecraft.src; import java.util.Map; public class mod_MangMod extends BaseMod { public static final Item glasscup = new glasscup(5000).setItemName("glasscup"); public static final Item appleJuice = new applejuice(5001).setItemName("applejuice"); public void load() { ModLoader.registerEntityID(InnocentVillager.class, "InnocentVillager", ModLoader.getUniqueEntityId()); ModLoader.addSpawn(InnocentVillager.class, 12, 14, 18, EnumCreatureType.creature); glassCup.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/glasscup.png"); ModLoader.addName(glasscup, "Glass Cup"); ModLoader.addRecipe(new ItemStack(glasscup, 1), new Object [] {"# #", " # ", Character.valueOf('#'), Block.dirt}); appleJuice.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/applejuice.png"); ModLoader.addName(appleJuice, "Apple Juice"); ModLoader.addRecipe(new ItemStack(appleJuice, 1), new Object [] {"#", "#", "%", Character.valueOf('#'), Item.appleRed, Character.valueOf('%'), glassCup}); } public void addRenderer(Map map) { map.put(InnocentVillager.class, new RenderBiped(new ModelBiped(), 0.5F)); } public String getVersion() { return "1.2.5"; } }-
View User Profile
-
View Posts
-
Send Message
Retired StaffAre you recompiling before you test it? You need to recompile it every time you modify code. Also, be sure to hit "Save All" under file after you modify something.
>Modify Code
>Save All
>recompile.bat (wait until it says done)
>startclient.bat
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumEDIT: http://i.imgur.com/fy7Lt.png
package net.minecraft.src; import java.util.Map; public class mod_MangMod extends BaseMod { public static final Item glasscup = new glasscup(5000).setItemName("glasscup"); public static final Item appleJuice = new applejuice(5001).setItemName("applejuice"); public void load() { ModLoader.registerEntityID(InnocentVillager.class, "InnocentVillager", ModLoader.getUniqueEntityId()); ModLoader.addSpawn(InnocentVillager.class, 12, 14, 18, EnumCreatureType.creature); glassCup.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/glasscup.png"); ModLoader.addName(glasscup, "Glass Cup"); ModLoader.addRecipe(new ItemStack(glasscup, 1), new Object [] {"# #", " # ", Character.valueOf('#'), Block.dirt}); appleJuice.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/applejuice.png"); ModLoader.addName(appleJuice, "Apple Juice"); ModLoader.addRecipe(new ItemStack(appleJuice, 1), new Object [] {"#", "#", "%", Character.valueOf('#'), Item.appleRed, Character.valueOf('%'), glassCup}); } public void addRenderer(Map map) { map.put(InnocentVillager.class, new RenderBiped(new ModelBiped(), 0.5F)); } public String getVersion() { return "1.2.5"; } }-
View User Profile
-
View Posts
-
Send Message
Retired StaffOh goodness.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumpackage net.minecraft.src; public class glasscup extends Item { public glasscup(int i) { super(i); maxStackSize = 64; } }EDIT: Fixed some of the errors. http://i.imgur.com/y8Qgd.png
-
View User Profile
-
View Posts
-
Send Message
Retired StaffA few things. Your code for your item declaration doesn't quite match your texture override code.
Your item declaration:
public static final Item glasscup = new glasscup(5000).setItemName("glasscup");Your texture override:
glassCup.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/glasscup.png");The glass cup in your item declaration has no capital letters in either the declaration itself, nor in the .setItemName. So, make sure that wherever else your glass cup is, it also doesn't have capitals. Either change the glasscup's .setItemName to "glassCup", OR change your texture override to "glasscup.iconIndex". One or the other. Just make sure that capitalizations are all the same wherever you declare your items.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiummod_MangMod.java
package net.minecraft.src; import java.util.Map; public class mod_MangMod extends BaseMod { public static final Item glasscup = new glasscup(5000).setItemName("glasscup"); public static final Item applejuice = new applejuice(5001).setItemName("applejuice"); public void load() { ModLoader.registerEntityID(innocentvillager.class, "innocentvillager", ModLoader.getUniqueEntityId()); ModLoader.addSpawn(innocentVillager.class, 12, 14, 18, EnumCreatureType.creature); glasscup.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/glasscup.png"); ModLoader.addName(glasscup, "Glass Cup"); ModLoader.addRecipe(new ItemStack(glasscup, 1), new Object [] {"# #", " # ", Character.valueOf('#'), Block.dirt}); applejuice.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/applejuice.png"); ModLoader.addName(applejuice, "Apple Juice"); ModLoader.addRecipe(new ItemStack(applejuice, 1), new Object [] {"#", "#", "%", Character.valueOf('#'), Item.appleRed, Character.valueOf('%'), glasscup}); } public void addRenderer(Map map) { map.put(innocentvillager.class, new RenderBiped(new ModelBiped(), 0.5F)); } public String getVersion() { return "1.2.5"; } }glasscup.java
package net.minecraft.src; public class glasscup extends Item { public glasscup(int i) { super(i); maxStackSize = 64; } }applejuice.java
package net.minecraft.src; public class glasscup extends Item { public glasscup(int i) { super(i); maxStackSize = 64; } }-
View User Profile
-
View Posts
-
Send Message
Retired StaffYour applejuice.java says the same thing as your glasscup. So first try changing it to say this:
If that doesn't work:
Also, if your item has no special properties, I think the maximum stack defaults to 64, so you don't actually need the glasscup.java or the applejuice.java. Make a copy of their code and save them to text files as backup elsewhere, and then delete them. After that, you should need only to change your declarations to this:
public static final Item glasscup = new Item(5000).setItemName("glasscup"); public static final Item applejuice = new Item(5001).setItemName("applejuice");EDIT: The edit feature on this site is starting to upset me. Make sure you refresh the page and look at my response one more time...
-
View User Profile
-
View Posts
-
Send Message
Curse Premiummod_MangMod.java
package net.minecraft.src; import java.util.Map; public class mod_MangMod extends BaseMod { public static final Item glasscup = new Item(5000).setItemName("glasscup"); public static final Item applejuice = new Item(5001).setItemName("applejuice"); public void load() { ModLoader.registerEntityID(innocentvillager.class, "innocentvillager", ModLoader.getUniqueEntityId()); ModLoader.addSpawn(innocentvillager.class, 12, 14, 18, EnumCreatureType.creature); glasscup.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/glasscup.png"); ModLoader.addName(glasscup, "Glass Cup"); ModLoader.addRecipe(new ItemStack(glasscup, 1), new Object [] {"# #", " # ", Character.valueOf('#'), Block.dirt}); applejuice.iconIndex = ModLoader.addOverride("/gui/items.png", "/mangmod/applejuice.png"); ModLoader.addName(applejuice, "Apple Juice"); ModLoader.addRecipe(new ItemStack(applejuice, 1), new Object [] {"#", "#", "%", Character.valueOf('#'), Item.appleRed, Character.valueOf('%'), glasscup}); } public void addRenderer(Map map) { map.put(innocentvillager.class, new RenderBiped(new ModelBiped(), 0.5F)); } public String getVersion() { return "1.2.5"; } }-
View User Profile
-
View Posts
-
Send Message
Retired StaffRegarding the minecraft.jar you decompiled before you started coding... Did said .jar have modloader installed?
If it doesn't, back up this whole code, go into your directory mcp > jars > bin, open up your minecraft.jar, install modloader to it, then hit the cleanup.bat, and once that completes, decompile it again.
>install modloader to your .jar
>cleanup.bat (have to type "yes")
>decompile.bat
>Re-open eclipse
>recreate your mod_Mangmod.java
>paste your backed up code into it
>save all
>recompile.bat
>startclient.bat
-
View User Profile
-
View Posts
-
Send Message
Curse Premium...and could someone tell me how to make a spawn egg for my npc?
-
View User Profile
-
View Posts
-
Send Message
Retired StaffI'm glad you're all sorted out.
Now could you do me a small favor? Hit the
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYou can't. They are set to generate only on dirt or grass.
together they are powerful beyond imagination."
That is set up in world gen, not biome gen.
together they are powerful beyond imagination."