First, is ChocoMilk in mod_Tools?
Second, you should probably add the error log to your post.
Third, check the number of characters in each layer of the crafting recipe. I probably would have done
I'm trying to make an item, and its not showing up in my inventory. I think it's the placement of the setCreativeTab(CreativeTabs. tabMaterials);
Sorry about the length, the spoiler tag isn't wanting to work for me (I fixed it for you)
package
net.minecraft.src;
import
java.util.Random;
public
class mod_squidageddon extends Item
{ public mod_squidageddon(int i) { super(i); maxStackSize = 64;
setCreativeTab(CreativeTabs. tabMaterials);}
public
String Version() { return "3.1415265"; }}
Have an explanation of your problem in this forum, so other people who might make the same mistake you did and are too lazy to go to SCMowns's help forum can see it, theoretically.
package net.minecraft.src;
public class mod_Squidageddon extends BaseMod {
public static final Item squid_material = new SquidMaterial(200).setName("Squid");
public void load() {
ModLoader.addOverride("/gui/items.png", "/Squid/Squid.png");
ModLoader.addName(squid_material, "Squid");
}
}
And a class ItemSquid
package net.minecraft.src;
public class ItemSquid extends Item {
public ItemSquid(int i) {
super(i);
this.setCreativeTab(CreativeTabs.tabMaterials);
}
}
Your problem was that the number of characters in the three Strings were 2, 2, and 1 respectively.
If you get an error while decompiling and it says " Need server files" then you might need to install a minecraft_server.jar. But if you don't have any errors then you're fine.
I feel bad for asking but because you probably are filled with constant questions, but I started creating an item, (tutorial 2), and I followed your first and second tutorial to the point, but when i start adding in things on Eclipse the line which has:
CanOfBeans.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/CanOfBeans.png");
ModLoader.addName(CanOfBeans, "Can of Beans");
(Or all the lines with Modloader.addOverride or Modloader.addName)
The Modloader keeps coming up with an error, I've watched the tutorials over and over, and I can't find what's wrong with it. It'd be so amazing if you could help!
I feel bad for asking but because you probably are filled with constant questions, but I started creating an item, (tutorial 2), and I followed your first and second tutorial to the point, but when i start adding in things on Eclipse the line which has:
CanOfBeans.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/CanOfBeans.png");
ModLoader.addName(CanOfBeans, "Can of Beans");
(Or all the lines with Modloader.addOverride or Modloader.addName)
The Modloader keeps coming up with an error, I've watched the tutorials over and over, and I can't find what's wrong with it. It'd be so amazing if you could help!
Did you decompile with Modloader correctly?
If you would like a faster reply, check out my help forums (Post a topic)
I feel bad for asking but because you probably are filled with constant questions, but I started creating an item, (tutorial 2), and I followed your first and second tutorial to the point, but when i start adding in things on Eclipse the line which has:
CanOfBeans.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/CanOfBeans.png");
ModLoader.addName(CanOfBeans, "Can of Beans");
(Or all the lines with Modloader.addOverride or Modloader.addName)
The Modloader keeps coming up with an error, I've watched the tutorials over and over, and I can't find what's wrong with it. It'd be so amazing if you could help!
Is it coming up with an error in eclipse or when you try to run minecraft?
Rollback Post to RevisionRollBack
GENERATION 98: The first time you see this, copy it into your signature on any forum and subtract 1 from the generation. Social experiment.
Viper_093 thx. I wrote my item wrong I had try this either but it kept getting errors but thx for your reaction, do you know either or someone how you can make a ride-able utility like a minecart? help me here or help me in http://www.minecraft...thout-railswip/ there are the codes.
hey I want my mob to spawn only in the darkness but it also spawns in daylight the part about spawning:
ModLoader.addSpawn("Vampire", 15, -3, 2, EnumCreatureType.monster);//makes the mob spawn in game
Okay firstly, it's not in that class. What you want is under your "Entity" class, this is what you will put in your entity class: public boolean getCanSpawnHere() {
float f = getEntityBrightness(1.0F); if(f < 1F); return true; }
this should work, I haven't used it in a while some functions may have changed names too. If they have just hover over them and if that's the case it should give you the newer name for it. (keep in mind this code was from like 1.0 so thats why it may not work, but try it) hope i helped
EDIT: you might have to change the "1F" in:if(f < 1F);for the spawning, i know 0.1F means that it can spawn in day but you may have to put it at like 0.9F or 0.8F cause im not entirely sure what 1F is.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hint hint, CHOCOLATEhttp://www.minecraftforum.net/topic/1631309-cjborcharles-mod-mod-version-16-146/#entry20114004
ModLoader.addRecipe(
new ItemStack( Chocolate, 1), new Object[]
{
"x ", "c ", " ", 'x', mod_Tools.ChocoMilk, 'c', Item.coal
}); Is what i tried, It crashed.... HELP!
http://www.minecraftforum.net/topic/1631309-cjborcharles-mod-mod-version-16-146/#entry20114004
First, is ChocoMilk in mod_Tools?
Second, you should probably add the error log to your post.
Third, check the number of characters in each layer of the crafting recipe. I probably would have done
ModLoader.addRecipe(new ItemStack(Chocolate, 1), new Object[] {"x", "c", 'x', mod_Tools.ChocoMilk, 'c', Item.coal});Fourth, check the CapiTaliZation. Caps matter, after all.
Have an explanation of your problem in this forum, so other people who might make the same mistake you did and are too lazy to go to SCMowns's help forum can see it, theoretically.
package net.minecraft.src; public class mod_Squidageddon extends BaseMod { public static final Item squid_material = new SquidMaterial(200).setName("Squid"); public void load() { ModLoader.addOverride("/gui/items.png", "/Squid/Squid.png"); ModLoader.addName(squid_material, "Squid"); } }And a class ItemSquid
package net.minecraft.src; public class ItemSquid extends Item { public ItemSquid(int i) { super(i); this.setCreativeTab(CreativeTabs.tabMaterials); } }Thank you!
If you get an error while decompiling and it says " Need server files" then you might need to install a minecraft_server.jar. But if you don't have any errors then you're fine.
CanOfBeans.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/CanOfBeans.png");
ModLoader.addName(CanOfBeans, "Can of Beans");
(Or all the lines with Modloader.addOverride or Modloader.addName)
The Modloader keeps coming up with an error, I've watched the tutorials over and over, and I can't find what's wrong with it. It'd be so amazing if you could help!
Did you decompile with Modloader correctly?
If you would like a faster reply, check out my help forums
Is it coming up with an error in eclipse or when you try to run minecraft?
Can u give me the code of mod_***?
blockIndexInTexture, i dont get it! please help!
Can you copy and paste your error log?
If I don't reply fast, you can get help on my help forums
http://www.minecraftforum.net/topic/1576251-customtools-mod-nearly-finished/page__hl__ customtools#entry19428737
Thanks
Audiomod has been delayed for a bit, i will make it soon after i solve a issue
Okay firstly, it's not in that class. What you want is under your "Entity" class, this is what you will put in your entity class:
public boolean getCanSpawnHere()
{
float f = getEntityBrightness(1.0F);
if(f < 1F);
return true;
}
this should work, I haven't used it in a while some functions may have changed names too. If they have just hover over them and if that's the case it should give you the newer name for it. (keep in mind this code was from like 1.0 so thats why it may not work, but try it) hope i helped
EDIT: you might have to change the "1F" in:if(f < 1F);for the spawning, i know 0.1F means that it can spawn in day but you may have to put it at like 0.9F or 0.8F cause im not entirely sure what 1F is.