Thanks for thoses tutorials. I'm curently making a mod with magical items and mythical creatures like orcs. I just want to know if someone could help me. I want to make an Item that teleport the user to his spawn. Is someone know how to do that?
Hey SCMowns, can you make a tutorial on how to make a throwable item? I mean, NOT NEW ITEM, for example, make the bone throwable,
can you make a tutorial about it?!
I have recently started a new mod and have modeled a new mob, but when I incorporate it into minecraft it walks backwards.
Is there a soloution to this? If so please tell me as I have not had this problem before.
Problem if i run minecraft it says i don't have items/GreengemBlock.png
this is my code
package net.minecraft.src;
import net.minecraft.client.Minecraft;
public class mod_GreengemArmor extends BaseMod
{
public static final Item GreengemBody = (new ItemArmor(2200, EnumArmorMaterial.GREENGEM ,5,1 ).setItemName("Whatever12"));
public static final Item GreengemHelmet = (new ItemArmor(2201,EnumArmorMaterial.GREENGEM ,5,0 ).setItemName("Whatever13"));
public static final Item GreengemPants = (new ItemArmor(2202,EnumArmorMaterial.GREENGEM ,5,2 ).setItemName("Whatever14"));
public static final Item GreengemBoots = (new ItemArmor(2203,EnumArmorMaterial.GREENGEM, 5, 3 ).setItemName("Whatever51"));
public void load()
{
//armor
GreengemBody.iconIndex = ModLoader.addOverride("/gui/items.png", "/items/GreengemChest.png");
ModLoader.addName(GreengemBody, "Greengem Chestplate");
ModLoader.addRecipe(new ItemStack(GreengemBody,1), new Object[]{
"* *", "***", "***", Character.valueOf('*'), mod_minecrafttest.Greengem});
// Helmet Armor
GreengemHelmet.iconIndex = ModLoader.addOverride("/gui/items.png", "/items/GreengemHelmet.png");
ModLoader.addName(GreengemHelmet, "Greengem Helmet");
ModLoader.addRecipe(new ItemStack(GreengemHelmet,1), new Object[]{
"***", "* *", Character.valueOf('*'), mod_minecrafttest.Greengem});
// Pants Armor
GreengemPants.iconIndex = ModLoader.addOverride("/gui/items.png", "/items/GreengemPants.png");
ModLoader.addName(GreengemPants, "Greengem Leggings");
ModLoader.addRecipe(new ItemStack(GreengemPants,1), new Object[]{
"***", "* *", "* *", Character.valueOf('*'), mod_minecrafttest.Greengem});
// Boots Armor
GreengemBoots.iconIndex = ModLoader.addOverride("/gui/items.png", "/items/GreengemBoots.png");
ModLoader.addName(GreengemBoots, "Greengem Boots");
ModLoader.addRecipe(new ItemStack(GreengemBoots,1), new Object[]{
"* *", "* *", Character.valueOf('*'), mod_minecrafttest.Greengem});
ModLoader.addArmor("Greengem");
}
public String Version()
{
return "1.4.2";
}
public String getVersion()
{
return "3.14159265";
}
}
But if i go to the modding/bin/minecarft/items then there is GreengemBlock.png
and if i go modding/eclipse/Client/items then tehe is it aswell.
meaby I'am stupid bud I can't fine a bug why it should not work
Make sure that the GreenGemBlock.png is spelled exactly the same in both the bin and eclipse folders as well as the code.
If that doesn't work make sure you have the right location for minecraft to find the picture in the code.
I have recently started a new mod and have modeled a new mob, but when I incorporate it into minecraft it walks backwards.
Is there a soloution to this? If so please tell me as I have not had this problem before.
Thanks,
Zombie_Meal
If you made it in Techne, are you sure you didn't just make it backwards? Haha.
I hope the next episode is about making a new furnace (:
I know...I was wondering how to change the name and texture of something ( let say furnace ) without changing the way it woks !
Anyways...I was wondering if you know how to make the mobs ( or animals, lets say a rabbit ) to eat carrots ( foods ) and also to make to make them tamable so that they could become our pets !
And also will the animals spawn naturally ??
I'm trying to create a simple mod so you can turn coal into charcoal and visa versa, now I have this: (Yes, I know it is useless, but I just have to learn)
public void load()
{
ModLoader.addShapelessRecipe(new ItemStack(Item.coal,1,1), new Object[]
{
Item.coal
});
ModLoader.addShapelessRecipe(new ItemStack(Item.coal,1) , new Object[]
{
Item.coal,1
});
}
The recipe coal into charcoal works. (the 1st recipe) But the recipe for charcoal into coal doesn't.. (the 2nd recipe)
What am I doing wrong?
I made my own version of a coal to charcoal and vice versa mod.
package net.minecraft.src;
public class mod_CharcoalCoal extends BaseMod
{
public void load()
{
ModLoader.addShapelessRecipe(new ItemStack(Item.coal, 1, 0), new Object[]{new ItemStack(Item.coal, 1, 1)});
ModLoader.addShapelessRecipe(new ItemStack(Item.coal, 1, 1), new Object[]{new ItemStack(Item.coal, 1, 0)});
}
public String getVersion()
{
return "3.14159265";
}
}
Put it in a new class named mod_CharcoalCoal
The first code is charcoal to coal and the second is coal to charcoal
It works for me
I get the feeling this has been requested many times already, but could you do a tutorial on how to render throwable (Or Thrown) items? Like a snowball or egg (As examples) I haven't seen those anywhere else yet, or most are outdated. Thanks
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Ignore what I said before, I looked at the code for minecraft and found that a mob ID is actually a String, which seems strange to me.
thx
can you make a tutorial about it?!
How do i make underwater mobs?
I have recently started a new mod and have modeled a new mob, but when I incorporate it into minecraft it walks backwards.
Is there a soloution to this? If so please tell me as I have not had this problem before.
Thanks,
Zombie_Meal
Make sure that the GreenGemBlock.png is spelled exactly the same in both the bin and eclipse folders as well as the code.
If that doesn't work make sure you have the right location for minecraft to find the picture in the code.
If you made it in Techne, are you sure you didn't just make it backwards? Haha.
You will need to check out their entity class to understand the code yourself, I will be covering some small extra videos soon
A custom Item? You will need to go into your entityMOB.java and change this line of code:
protected int getDropItemId() { return Item.ITEM.shiftedIndex; }But to import a custom item you have made you do this:
protected int getDropItemId() { return mod_mod.ITEM.shiftedIndex; }Hope that helps
I will add that to my list!
Thank you!
I know...I was wondering how to change the name and texture of something ( let say furnace ) without changing the way it woks !
Anyways...I was wondering if you know how to make the mobs ( or animals, lets say a rabbit ) to eat carrots ( foods ) and also to make to make them tamable so that they could become our pets !
And also will the animals spawn naturally ??
I made my own version of a coal to charcoal and vice versa mod.
package net.minecraft.src; public class mod_CharcoalCoal extends BaseMod { public void load() { ModLoader.addShapelessRecipe(new ItemStack(Item.coal, 1, 0), new Object[]{new ItemStack(Item.coal, 1, 1)}); ModLoader.addShapelessRecipe(new ItemStack(Item.coal, 1, 1), new Object[]{new ItemStack(Item.coal, 1, 0)}); } public String getVersion() { return "3.14159265"; } }Put it in a new class named mod_CharcoalCoal
The first code is charcoal to coal and the second is coal to charcoal
It works for me