I already did the image for my items but everytime I recompile, reobfuscate, and startclient atleast one of the images cannot be found please help :sad.gif:
Where are you putting them, and you don't need to reobfuscate every time you just want to test, just to make sure you know.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
To what I know of Java at the moment. I'm all self-taught besides a few basic tutorials. If you want to learn it, there is a link in the main post. I'll try and add some tutorials like that soon.
When will you do the tutorials on how to create a Tool? And I wanna create another platable almost equal to the Melons, but with different textures and drops. How I do this? Will you make a tutorial? Yours are very useful, keep them coming! :biggrin.gif:
Lastly, how do I use an Item I created on a recipe to create another item? I tried everything and just can't... I can only use the default items to make recipes, not the ones I make... please help me.
Can anyone please help? This is driving me crazy!!! Where do you put .png files that you want to get recompiled into the minecraft.jar? I'm putting them in mcp/bin/minecraft/mods like you said in your tutorial. I also have my code directed to look there as well. I've double checked the names, and they're both the same! Please help!
I just wonder if anyone knows how to make spawner which spawns angry wolves. Since wolf have only one ID I thought it won't be possible, but I saw a mod with that spawner. Does anyone know?
Can anyone please help? This is driving me crazy!!! Where do you put .png files that you want to get recompiled into the minecraft.jar? I'm putting them in mcp/bin/minecraft/mods like you said in your tutorial. I also have my code directed to look there as well. I've double checked the names, and they're both the same! Please help!
Can you post your texture override line of code please.
I just wonder if anyone knows how to make spawner which spawns angry wolves. Since wolf have only one ID I thought it won't be possible, but I saw a mod with that spawner. Does anyone know?
I'm wondering this too. I need to spawn tamed wolves.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
No. I only modified the item class. Have you tested with the actual code I posted?
Yes, but I may have done something wrong, if I don't post to say that it worked, then it didn't.
-Thank You-
EDIT: It has worked! Thank You so much, I wonder what I did wrong :huh.gif: , Oh-well, it works fine now.
Thought: Would it be possible to make it able to fertilize nether wart too, or would that be a lot of work? Because theatrically you would just add another chunk of code...
I will look into it, but it would be cool if you could see if it is feasible.
Also: how do I add a restore hearts potion effect to food? Do I just not add the duration or do I add it as a zero or what?
-Thank You-
hey can you do a tutorial on how to make mobs have actions like endermens or creepers. I want to make a my businness creeper have a nuclear explosion! and when putting the achievement thing into other mods where do you put it?
EDIT: I just realized that you have the best tutorials!
hey I finally understood the achievement tutorial and made a achievement that when you craft a firegun it say achievement get: its shooting time! but I got this error
== ERRORS FOUND ==
src/minecraft/net/minecraft/src/mod_Tutorial.java:17: cannot find symbol
symbol : variable blockID
location: class net.minecraft.src.Item
if(itemstack.itemID == FireBow.blockID)
^
1 error
==================
This is my code
package net.minecraft.src;
import java.util.*;
public class mod_Tutorial extends BaseMod
{
public static final Item FireBow = new ItemFireBow(2042).setItemName("FireBow");
public static final Achievement FireGun = new Achievement(4560, "FireGun", 5, 7, FireBow, null).registerAchievement();
public void load()
{
ModLoader.AddAchievementDesc(FireGun, "Its Shooting Time!", "Craft a Fire Gun");
}
public void TakenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory)
{
if(itemstack.itemID == FireBow.blockID)
{
entityplayer.addStat(FireGun, 1);
}
}
{
ModLoader.AddName(FireBow, "Fire Gun");
FireBow.iconIndex = ModLoader.addOverride("/gui/items.png", "Gun.png");
ModLoader.AddRecipe(new ItemStack(FireBow, 1), new Object[] {
"#$ ", "# $", "#$ ", Character.valueOf('#'), Item.stick, Character.valueOf('$'), Item.gunpowder});
}
public void AddRenderer(Map map)
{
map.put(EntityFireArrow.class, new RenderFireArrow());
}
public static int fireBow1 = ModLoader.addOverride("/gui/items.png", "Gun1.png");
public static int fireBow2 = ModLoader.addOverride("/gui/items.png", "Gun2.png");
public static int fireBow3 = ModLoader.addOverride("/gui/items.png", "Gun3.png");
public static int fireBow4 = ModLoader.addOverride("/gui/items.png", "Gun4.png");
public String getVersion() {
return "27.9387";
}
}
hey I finally understood the achievement tutorial and made a achievement that when you craft a firegun it say achievement get: its shooting time! but I got this error
== ERRORS FOUND ==
src/minecraft/net/minecraft/src/mod_Tutorial.java:17: cannot find symbol
symbol : variable blockID
location: class net.minecraft.src.Item
if(itemstack.itemID == FireBow.blockID)
^
1 error
==================
This is my code
package net.minecraft.src;
import java.util.*;
public class mod_Tutorial extends BaseMod
{
public static final Item FireBow = new ItemFireBow(2042).setItemName("FireBow");
public static final Achievement FireGun = new Achievement(4560, "FireGun", 5, 7, FireBow, null).registerAchievement();
public void load()
{
ModLoader.AddAchievementDesc(FireGun, "Its Shooting Time!", "Craft a Fire Gun");
}
public void TakenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory)
{
if(itemstack.itemID == FireBow.blockID)
{
entityplayer.addStat(FireGun, 1);
}
}
{
ModLoader.AddName(FireBow, "Fire Gun");
FireBow.iconIndex = ModLoader.addOverride("/gui/items.png", "Gun.png");
ModLoader.AddRecipe(new ItemStack(FireBow, 1), new Object[] {
"#$ ", "# {:content:}quot;, "#$ ", Character.valueOf('#'), Item.stick, Character.valueOf('), Item.gunpowder});
}
public void AddRenderer(Map map)
{
map.put(EntityFireArrow.class, new RenderFireArrow());
}
public static int fireBow1 = ModLoader.addOverride("/gui/items.png", "Gun1.png");
public static int fireBow2 = ModLoader.addOverride("/gui/items.png", "Gun2.png");
public static int fireBow3 = ModLoader.addOverride("/gui/items.png", "Gun3.png");
public static int fireBow4 = ModLoader.addOverride("/gui/items.png", "Gun4.png");
public String getVersion() {
return "27.9387";
}
}
Ask KenLong said, you need to have it as .shiftedIndex.
.blockID is for blocks
.shiftedIndex is the items
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Your FireBow is an Item, but it isnt created in Item.java. It is created in the same class as that line of code is, so you just have it as this:
if(itemstack.itemID == FireBow.shiftedIndex)
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Where are you putting them, and you don't need to reobfuscate every time you just want to test, just to make sure you know.
together they are powerful beyond imagination."
ok thanks :biggrin.gif:
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumLastly, how do I use an Item I created on a recipe to create another item? I tried everything and just can't... I can only use the default items to make recipes, not the ones I make... please help me.
item Y(in hand) + right-click on block X = item Z
Don't use regular Paint. It replaces transparent pixels with white pixels.
Smart, but you need the pictures inside of your Minecraft.jar
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumDivine smoker mod - Hookah in Minecraft: http://www.minecraftforum.net/topic/1689980-172splanspdivine-smoker-water-pipe-modhookahshisha-11/
Can you post your texture override line of code please.
It's on the list already.
I'm wondering this too. I need to spawn tamed wolves.
No. I only modified the item class. Have you tested with the actual code I posted?
Yeh, it would have to edit the block's code though. I'm not sure if its possible with just modifying an item.
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYes, but I may have done something wrong, if I don't post to say that it worked, then it didn't.
-Thank You-
EDIT: It has worked! Thank You so much, I wonder what I did wrong :huh.gif: , Oh-well, it works fine now.
Thought: Would it be possible to make it able to fertilize nether wart too, or would that be a lot of work? Because theatrically you would just add another chunk of code...
I will look into it, but it would be cool if you could see if it is feasible.
Also: how do I add a restore hearts potion effect to food? Do I just not add the duration or do I add it as a zero or what?
-Thank You-
EDIT: I just realized that you have the best tutorials!
This is my code
package net.minecraft.src; import java.util.*; public class mod_Tutorial extends BaseMod { public static final Item FireBow = new ItemFireBow(2042).setItemName("FireBow"); public static final Achievement FireGun = new Achievement(4560, "FireGun", 5, 7, FireBow, null).registerAchievement(); public void load() { ModLoader.AddAchievementDesc(FireGun, "Its Shooting Time!", "Craft a Fire Gun"); } public void TakenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory) { if(itemstack.itemID == FireBow.blockID) { entityplayer.addStat(FireGun, 1); } } { ModLoader.AddName(FireBow, "Fire Gun"); FireBow.iconIndex = ModLoader.addOverride("/gui/items.png", "Gun.png"); ModLoader.AddRecipe(new ItemStack(FireBow, 1), new Object[] { "#$ ", "# $", "#$ ", Character.valueOf('#'), Item.stick, Character.valueOf('$'), Item.gunpowder}); } public void AddRenderer(Map map) { map.put(EntityFireArrow.class, new RenderFireArrow()); } public static int fireBow1 = ModLoader.addOverride("/gui/items.png", "Gun1.png"); public static int fireBow2 = ModLoader.addOverride("/gui/items.png", "Gun2.png"); public static int fireBow3 = ModLoader.addOverride("/gui/items.png", "Gun3.png"); public static int fireBow4 = ModLoader.addOverride("/gui/items.png", "Gun4.png"); public String getVersion() { return "27.9387"; } }since it's not a block, you can't compare it with a blockID
Ask KenLong said, you need to have it as .shiftedIndex.
.blockID is for blocks
.shiftedIndex is the items
together they are powerful beyond imagination."
== ERRORS FOUND == src/minecraft/net/minecraft/src/mod_Tutorial.java:17: cannot find symbol symbol : variable FireBow location: class net.minecraft.src.Item if(itemstack.itemID == Item.FireBow.shiftedIndex) ^ 1 error ==================the code
package net.minecraft.src; import java.util.*; public class mod_Tutorial extends BaseMod { public static final Item FireBow = new ItemFireBow(2042).setItemName("FireBow"); public static final Achievement FireGun = new Achievement(4560, "FireGun", 5, 7, FireBow, null).registerAchievement(); public void load() { ModLoader.AddAchievementDesc(FireGun, "Its Shooting Time!", "Craft a Fire Gun"); } public void TakenFromCrafting(EntityPlayer entityplayer, ItemStack itemstack, IInventory iinventory) { if(itemstack.itemID == Item.FireBow.shiftedIndex) { entityplayer.addStat(FireGun, 1); } } { ModLoader.AddName(FireBow, "Fire Gun"); FireBow.iconIndex = ModLoader.addOverride("/gui/items.png", "Gun.png"); ModLoader.AddRecipe(new ItemStack(FireBow, 1), new Object[] { "#$ ", "# $", "#$ ", Character.valueOf('#'), Item.stick, Character.valueOf('$'), Item.gunpowder}); } public void AddRenderer(Map map) { map.put(EntityFireArrow.class, new RenderFireArrow()); } public static int fireBow1 = ModLoader.addOverride("/gui/items.png", "Gun1.png"); public static int fireBow2 = ModLoader.addOverride("/gui/items.png", "Gun2.png"); public static int fireBow3 = ModLoader.addOverride("/gui/items.png", "Gun3.png"); public static int fireBow4 = ModLoader.addOverride("/gui/items.png", "Gun4.png"); public String getVersion() { return "27.9387"; } }together they are powerful beyond imagination."