Ok, I've made that change, but I'm still getting the same error.
my mod_Class is as follows:
Let me know if you need anything else.
Haha you goof! You were only supposed to change items.png!
items.png is located in a folder called gui in minecraft.jar, however terrain.png isn't. It just existes in the jar file itself like other classes. So it would be like this,
Can you add how to do texture sheets without forge?
You can't.
Rollback Post to RevisionRollBack
When life gives you a potato, wonder why the heck life just gave you a potato. Why not something else? Like money? Or a combustable lemon? No, you get a potato. Nothing else.
Hey i was wondering if someone could help me, i have used this tutorial and everything works fine (thanks) all up to when i recompile it, i go to use startclient.bat and it starts loading up and then i get an error that it can't find a picture...even though it says in the cmd file that it loaded it. Here is the error file
---- Minecraft Crash Report ----
// Oops.
Time: 10/09/12 6:29 PM
Description: Unexpected error
java.lang.RuntimeException: java.lang.Exception: Image not found: /textures/ArcaniumOre.png
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1632)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1188)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:857)
at net.minecraft.client.Minecraft.run(Minecraft.java:751)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.Exception: Image not found: /textures/ArcaniumOre.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1105)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1624)
... 5 more
Relevant Details:
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (x86) version 6.1
- Java Version: 1.7.0, Oracle Corporation
- Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
- Memory: 926377904 bytes (883 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
- JVM Flags: 3 total; -Xincgc -Xms1024M -Xmx1024M
- ModLoader: Mods loaded: 2
ModLoader 1.3.2
mod_Fred Fredamabob v 1.0
- LWJGL: 2.4.2
- OpenGL: GeForce GT 420/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
- Is Modded: Very likely
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)
Hey i was wondering if someone could help me, i have used this tutorial and everything works fine (thanks) all up to when i recompile it, i go to use startclient.bat and it starts loading up and then i get an error that it can't find a picture...even though it says in the cmd file that it loaded it.
I think you forgot the quotes around your directories. Post your code and we'll see.
Rollback Post to RevisionRollBack
When life gives you a potato, wonder why the heck life just gave you a potato. Why not something else? Like money? Or a combustable lemon? No, you get a potato. Nothing else.
Hey everyone, Tgsachse here, and I am basically trying to turn these amazing written tutorials into equally amazing videos! Here is episode 1, where I show everyone to get started. I know it has been done before, but for visual learners I want to provide a way to learn how to mod that is as effective as the OP.
Hey everyone, Tgsachse here, and I am basically trying to turn these amazing written tutorials into equally amazing videos!
No. I have not given permission to use my text tutorials or the code which they contain in any video series. I will be following up on this and I will take action.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
No. I have not given permission to use my text tutorials or the code which they contain in any video series. I will be following up on this and I will take action.
Ok, allow me to revise what I mean, I learned from you, so I'm trying to give you credit. I will be writing all the code myself on my own, using what I learned here. I will not be using your personal code.
Haha you goof! You were only supposed to change items.png!
items.png is located in a folder called gui in minecraft.jar, however terrain.png isn't. It just existes in the jar file itself like other classes. So it would be like this,
"/gui/items.png"
"/terrain.png"
Hopefully this fixes it!
Managed to fix it. Turns out I had called a "/image.png" in another class and never noticed it.
Ok. Now can someone help me figure out why it doesn't like my crafting recipe?
This is my mod_class
package net.minecraft.src;
public class mod_Ruby {
public static final Block RubyOre = new RubyOre(160, 0).setBlockName("RubyOre").setHardness(3F).setResistance(4F).setLightValue(1F);
public static final Item Ruby = new Ruby(960).setItemName("Ruby");
public static final Item RubyPick = new RubyPick(384, EnumRubyToolMaterial.Ruby).setItemName("RubyPickaxe");
public void load()
{
ModLoader.registerBlock(RubyOre);
ModLoader.addName(RubyOre, "RubyOre");
Ruby.iconIndex = ModLoader.addOverride("/gui/items.png", "/Ruby.png");
RubyPick.iconIndex = ModLoader.addOverride("/gui/items.png", "/RubyPickaxe.png");
RubyOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/RubyOre.png");
ModLoader.addRecipe(new ItemStack(RubyPick, 1), new Object [] {"###", " @ ", " @ ", Character.valueOf('#'), Item.Ruby, Character.valueOf('@'), Item.stick});
ModLoader.addRecipe(new ItemStack(RubyOre, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt});
}
public String getVersion()
{
return "1.2.5";
}
}
and this is my Ruby.java
package net.minecraft.src;
public class Ruby extends Item{
public Ruby(int i)
{
super(i);
maxStackSize = 64;
}
}
Managed to fix it. Turns out I had called a "/image.png" in another class and never noticed it.
Ok. Now can someone help me figure out why it doesn't like my crafting recipe?
Your second recipe should be addShapelessRecipe. And instead of what you have in the Object Array (Object[]) it should be Block.dirt. So it should like this,
ModLoader.addShapelessRecipe(new ItemStack(RubyOre, 1), new Object[] {Block.dirt});
This was supposed to be a witty signature, but then it got lost somewhere.
Ok, I've made that change, but I'm still getting the same error.
my mod_Class is as follows:
package net.minecraft.src; public class mod_Ruby { public static final Block RubyOre = new RubyOre(160, 0).setBlockName("RubyOre").setHardness(3F).setResistance(4F).setLightValue(1F); public static final Item Ruby = new Ruby(960).setItemName("Ruby"); public static final Item RubyPick = new RubyPick(384, EnumRubyToolMaterial.Ruby).setItemName("RubyPickaxe"); public void load() { ModLoader.registerBlock(RubyOre); ModLoader.addName(RubyOre, "RubyOre"); Ruby.iconIndex = ModLoader.addOverride("/gui/items.png", "/Ruby.png"); RubyPick.iconIndex = ModLoader.addOverride("/gui/items.png", "/RubyPickaxe.png"); RubyOre.blockIndexInTexture = ModLoader.addOverride("/gui/terrain.png", "/RubyOre.png"); ModLoader.addRecipe(new ItemStack(RubyPick, 1), new Object [] {"###", " @ ", " @ ", '#', Ruby, '@', Item.stick}); ModLoader.addRecipe(new ItemStack(RubyOre, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt}); } public String getVersion() { return "1.2.5"; } }Let me know if you need anything else.
Haha you goof! You were only supposed to change items.png!
items.png is located in a folder called gui in minecraft.jar, however terrain.png isn't. It just existes in the jar file itself like other classes. So it would be like this,
Hopefully this fixes it!
-
View User Profile
-
View Posts
-
Send Message
Retired StaffYou can't.
I got this error :/
== ERRORS FOUND == src/minecraft/net/minecraft/src/mod_Food.java:8: cannot find symbol symbol : method addOverride(java.lang.String) location: class net.minecraft.src.ModLoader Calamari.iconIndex = ModLoader.addOverride("/mod/Calamari.png"); ^ 1 error ==================Also here is the error from modloader.
Mod Edit: Spoiler'd the post to save some space.
Post your code.
But it seems like you forgot to tell ModLoader what to override. It should look like this,
Calamari.iconIndex = ModLoader.addOverride("/gui/items.png", "/mod/Calamari.png");-
View User Profile
-
View Posts
-
Send Message
Retired StaffI think you forgot the quotes around your directories. Post your code and we'll see.
Episode 1: The Setup
Channel
Playlist
Coding Thread
No. I have not given permission to use my text tutorials or the code which they contain in any video series. I will be following up on this and I will take action.
together they are powerful beyond imagination."
Ok, allow me to revise what I mean, I learned from you, so I'm trying to give you credit. I will be writing all the code myself on my own, using what I learned here. I will not be using your personal code.
Sorry for my late reply, we live in different time zones apparently. Here is the code:
package net.minecraft.src; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.Random; public class mod_Fred extends BaseMod { public static int registerEntity(Class class1, String str1, int i1, int i2, int i3) { ModLoader.registerEntityID(class1, str1, i1, i2, i3); return i1; } public static void addEntityName(int i1, String str2) { ModLoader.addLocalization("Fredamabob." + EntityList.getStringFromID(i1) + "Fredamabob", str2); } public static final Item ArcaneHelmet = new ItemArmor(5001, EnumArmorMaterial.ARCANE, ModLoader.addArmor("arcane"), 0).setItemName("arcaneHelmet"); public static final Item ArcaneChestplate = new ItemArmor(5002, EnumArmorMaterial.ARCANE, ModLoader.addArmor("arcane"), 1).setItemName("arcaneChestplate"); public static final Item ArcaneLeggings = new ItemArmor(5003, EnumArmorMaterial.ARCANE, ModLoader.addArmor("arcane"), 2).setItemName("arcaneLeggings"); public static final Item ArcaneBoots = new ItemArmor(5004, EnumArmorMaterial.ARCANE, ModLoader.addArmor("arcane"), 3).setItemName("arcaneBoots"); public static final Item arcanewrap = new ItemFood(5005, 16, 1F, false).setPotionEffect(Potion.moveSpeed.id, 60, 0, 1F).setItemName("Arcane Wrap"); public static final Item ArcaneDust = new Item(5006).setItemName("Arcane Dust").setTabToDisplayOn(CreativeTabs.tabMaterials); public static final Item ArcaneCoal = new Item(5007) .setItemName("Arcane Coal").setTabToDisplayOn(CreativeTabs.tabMaterials); public static final Item ArcaneIngot = new Item(5008) .setItemName("Arcane Ingot").setTabToDisplayOn(CreativeTabs.tabMaterials); public static Item ArcaneSword = (new ItemSword(5009, EnumToolMaterial.ARCANE)).setIconCoord(3, 4).setItemName("arcaneSword"); public static Item ArcanePickaxe = (new ItemPickaxe(5010, EnumToolMaterial.ARCANE)).setIconCoord(3, 4).setItemName("arcanePickaxe"); public static Item ArcaneAxe = (new ItemAxe(5011, EnumToolMaterial.ARCANE)).setIconCoord(3, 4).setItemName("arcaneAxe"); public static Item ArcaneSpade = (new ItemSpade(5012, EnumToolMaterial.ARCANE)).setIconCoord(3, 4).setItemName("arcaneSpade"); public static Item ArcaneHoe = (new ItemHoe(5013, EnumToolMaterial.ARCANE)).setIconCoord(3, 4).setItemName("arcaneHoe"); { ArcaneCoal.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/ArcaniumCoal.png"); ModLoader.addName(ArcaneCoal, "Arcane Coal"); } public int addFuel(int par1, int par2) { if (par1 == ArcaneCoal.shiftedIndex) { return 3200; } return 0; } public static final Block oreArcanium = new BlockArcaniumOre(160, 0) .setStepSound(Block.soundStoneFootstep).setBlockName("oreArcanium") .setHardness(3F).setResistance(5F).setLightValue(1F); public void load() { /*ModLoader.registerEntityID(EntityTutorial.class, "Fredamabob",addEntityName(registerEntity(EntityTutorial.class, "Fredamabob", ModLoader.getUniqueEntityId(), 0x000000, 0x000000), "Fredamabob")); ModLoader.addSpawn(EntityTutorial.class, 8, 4, 10, EnumCreatureType.monster); // EnumCreatureType can do monster, mob, creature } public void addRenderer(Map map) { map.put(EntityTutorial.class, new RenderBiped(new ModelBiped(), 0.5F)); // Makes // it // spawn*/ ArcaneHelmet.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/ArcaneHelmet.png"); ArcaneChestplate.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/ArcaneChestplate.png"); ArcaneLeggings.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/ArcaneLeggings.png"); ArcaneBoots.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/ArcaneBoots.png"); ModLoader.addRecipe(new ItemStack(ArcaneHelmet, 1), new Object [] {"###", "# #", Character.valueOf('#'), ArcaneIngot}); ModLoader.addRecipe(new ItemStack(ArcaneChestplate, 1), new Object [] {"# #", "#$#", "###", Character.valueOf('#'), ArcaneIngot, Character.valueOf('$'), Item.diamond}); ModLoader.addRecipe(new ItemStack(ArcaneLeggings, 1), new Object [] {"###", "# #", "# #", Character.valueOf('#'), ArcaneIngot}); ModLoader.addRecipe(new ItemStack(ArcaneBoots, 1), new Object [] {"# #", "# #", Character.valueOf('#'), ArcaneIngot}); ModLoader.addName(ArcaneHelmet, "Arcane Helmet"); ModLoader.addName(ArcaneChestplate, "Arcane Chestplate"); ModLoader.addName(ArcaneLeggings, "Arcane Leggings"); ModLoader.addName(ArcaneBoots, "Arcane Boots"); arcanewrap.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/Wrap.png"); ArcaneIngot.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/ArcaneIngot.png"); ArcaneDust.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/ArcaneDust.png"); ArcaneSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/ArcaneSword.png"); ArcanePickaxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/ArcanePickaxe.png"); ArcaneAxe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/ArcaneAxe.png"); ArcaneSpade.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/ArcaneSpade.png"); ArcaneHoe.iconIndex = ModLoader.addOverride("/gui/items.png", "/textures/ArcaneHoe.png"); ModLoader.addName(ArcaneAxe, "Arcane Axe"); ModLoader.addName(ArcaneSpade, "Arcane Spade"); ModLoader.addName(ArcaneHoe, "Arcane Hoe"); ModLoader.addName(ArcanePickaxe, "Arcane Pickaxe"); ModLoader.addName(ArcaneSword, "Arcane Sword"); ModLoader.addName(ArcaneIngot, "Arcane Ingot"); ModLoader.addName(arcanewrap, "Arcane Wrap"); ModLoader.addName(ArcaneDust, "Arcane Dust"); ModLoader.addShapelessRecipe(new ItemStack(mod_Fred.ArcaneDust, 1), new Object[] { Item.flint, mod_Fred.ArcaneCoal }); ModLoader.addRecipe(new ItemStack(arcanewrap, 1), new Object [] {"@#", Character.valueOf('@'), mod_Fred.ArcaneCoal, Character.valueOf('#'), Block.leaves}); oreArcanium.blockIndexInTexture = ModLoader.addOverride("/terrain.png","/textures/ArcaniumOre.png"); ModLoader.registerBlock(oreArcanium); ModLoader.addName(oreArcanium, "Arcanium Ore"); /*Arcane Tools*/ ModLoader.addRecipe(new ItemStack(ArcaneSword, 1), new Object[] { " $ ", " $ ", " ! ", Character.valueOf('$'),mod_Fred.ArcaneIngot, Character.valueOf('!'),Item.diamond }); ModLoader.addRecipe(new ItemStack(ArcanePickaxe, 1), new Object[] { "$$$", " ! ", " ! ", Character.valueOf('$'),mod_Fred.ArcaneIngot, Character.valueOf('!'),Item.diamond }); ModLoader.addRecipe(new ItemStack(ArcaneAxe, 1), new Object[] { "$$", "$ ! ", " ! ", Character.valueOf('$'),mod_Fred.ArcaneIngot, Character.valueOf('!'),Item.diamond }); ModLoader.addRecipe(new ItemStack(ArcaneSpade, 1), new Object[] { " $ ", " ! ", " ! ", Character.valueOf('$'),mod_Fred.ArcaneIngot, Character.valueOf('!'),Item.diamond }); ModLoader.addRecipe(new ItemStack(ArcaneHoe, 1), new Object[] { "$$ ", " ! ", " ! ", Character.valueOf('$'),mod_Fred.ArcaneIngot, Character.valueOf('!'),Item.diamond }); /* Arcane Forge smelting recipes */ ModLoader.addSmelting(mod_Fred.ArcaneDust.shiftedIndex, new ItemStack( mod_Fred.ArcaneIngot, 1), 1.0F); ModLoader.addSmelting(Item.swordDiamond.shiftedIndex, new ItemStack( Item.diamond, 1), 1.0F); ModLoader.addSmelting(Item.shovelDiamond.shiftedIndex, new ItemStack( Item.diamond, 1), 1.0F); ModLoader.addSmelting(Item.pickaxeDiamond.shiftedIndex, new ItemStack( Item.diamond, 2), 1.0F); ModLoader.addSmelting(Item.axeDiamond.shiftedIndex, new ItemStack( Item.diamond, 2), 1.0F); ModLoader.addSmelting(Item.hoeDiamond.shiftedIndex, new ItemStack( Item.diamond, 1), 1.0F); ModLoader.addSmelting(Item.helmetDiamond.shiftedIndex, new ItemStack( Item.diamond, 2), 1.0F); ModLoader.addSmelting(Item.plateDiamond.shiftedIndex, new ItemStack( Item.diamond, 4), 1.0F); ModLoader.addSmelting(Item.legsDiamond.shiftedIndex, new ItemStack( Item.diamond, 3), 1.0F); ModLoader.addSmelting(Item.bootsDiamond.shiftedIndex, new ItemStack( Item.diamond, 2), 1.0F); ModLoader.addSmelting(Item.bootsDiamond.shiftedIndex, new ItemStack( Item.diamond, 2), 1.0F); ModLoader.addSmelting(Item.swordGold.shiftedIndex, new ItemStack( Item.ingotGold, 1), 1.0F); ModLoader.addSmelting(Item.shovelGold.shiftedIndex, new ItemStack( Item.ingotGold, 1), 1.0F); ModLoader.addSmelting(Item.pickaxeGold.shiftedIndex, new ItemStack( Item.ingotGold, 2), 1.0F); ModLoader.addSmelting(Item.axeGold.shiftedIndex, new ItemStack( Item.ingotGold, 2), 1.0F); ModLoader.addSmelting(Item.hoeGold.shiftedIndex, new ItemStack( Item.ingotGold, 1), 1.0F); ModLoader.addSmelting(Item.helmetGold.shiftedIndex, new ItemStack( Item.ingotGold, 2), 1.0F); ModLoader.addSmelting(Item.plateGold.shiftedIndex, new ItemStack( Item.ingotGold, 4), 1.0F); ModLoader.addSmelting(Item.legsGold.shiftedIndex, new ItemStack( Item.ingotGold, 3), 1.0F); ModLoader.addSmelting(Item.bootsGold.shiftedIndex, new ItemStack( Item.ingotGold, 2), 1.0F); ModLoader.addSmelting(Item.swordSteel.shiftedIndex, new ItemStack( Item.ingotIron, 1), 1.0F); ModLoader.addSmelting(Item.shovelSteel.shiftedIndex, new ItemStack( Item.ingotIron, 1), 1.0F); ModLoader.addSmelting(Item.pickaxeSteel.shiftedIndex, new ItemStack( Item.ingotIron, 2), 1.0F); ModLoader.addSmelting(Item.axeSteel.shiftedIndex, new ItemStack( Item.ingotIron, 2), 1.0F); ModLoader.addSmelting(Item.hoeSteel.shiftedIndex, new ItemStack( Item.ingotIron, 1), 1.0F); ModLoader.addSmelting(Item.helmetSteel.shiftedIndex, new ItemStack( Item.ingotIron, 2), 1.0F); ModLoader.addSmelting(Item.plateSteel.shiftedIndex, new ItemStack( Item.ingotIron, 4), 1.0F); ModLoader.addSmelting(Item.legsSteel.shiftedIndex, new ItemStack( Item.ingotIron, 3), 1.0F); ModLoader.addSmelting(Item.bootsSteel.shiftedIndex, new ItemStack( Item.ingotIron, 2), 1.0F); ModLoader.addSmelting(Item.shears.shiftedIndex, new ItemStack( Item.ingotIron, 1), 1.0F); } public class EntityTutorial extends EntityMob // EntityMob, EntityLiving, { public EntityTutorial(World world) { super(world); texture = "/dm/mobs/dm_mob.png"; moveSpeed = 0.3F; attackStrength = 4; isImmuneToFire = true; } public void load() { } public int getMaxHealth() { return 20 } protected int getDropItemId() { return Item.bone.shiftedIndex; } protected boolean isAIEnabled() { return true; } public boolean canBreatheUnderwater() { return true; } protected boolean canDespawn() { return true; } public void onEntityDeath() { } } public void generateSurface(World world, Random random, int i, int j) { for (int k = 0; k < 5; k++) { int randPosX = i + random.nextInt(16); int randPosY = random.nextInt(128); int randPosZ = j + random.nextInt(28); (new WorldGenMinable(oreArcanium.blockID, 4)).generate(world, random, randPosX, randPosY, randPosZ); } } public String getVersion() { return "Fredamabob v 1.0"; } }when you make the your block.java file, where it sais
<super(i,j,Material.????);>
put iron in the '?' spot
In the future could you put large amounts of code like that in a spoiler, it can be slightly annoying to have to scroll through it.
Managed to fix it. Turns out I had called a "/image.png" in another class and never noticed it.
Ok. Now can someone help me figure out why it doesn't like my crafting recipe?
This is my mod_class
package net.minecraft.src; public class mod_Ruby { public static final Block RubyOre = new RubyOre(160, 0).setBlockName("RubyOre").setHardness(3F).setResistance(4F).setLightValue(1F); public static final Item Ruby = new Ruby(960).setItemName("Ruby"); public static final Item RubyPick = new RubyPick(384, EnumRubyToolMaterial.Ruby).setItemName("RubyPickaxe"); public void load() { ModLoader.registerBlock(RubyOre); ModLoader.addName(RubyOre, "RubyOre"); Ruby.iconIndex = ModLoader.addOverride("/gui/items.png", "/Ruby.png"); RubyPick.iconIndex = ModLoader.addOverride("/gui/items.png", "/RubyPickaxe.png"); RubyOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/RubyOre.png"); ModLoader.addRecipe(new ItemStack(RubyPick, 1), new Object [] {"###", " @ ", " @ ", Character.valueOf('#'), Item.Ruby, Character.valueOf('@'), Item.stick}); ModLoader.addRecipe(new ItemStack(RubyOre, 1), new Object [] {"#", Character.valueOf('#'), Block.dirt}); } public String getVersion() { return "1.2.5"; } }and this is my Ruby.java
package net.minecraft.src; public class Ruby extends Item{ public Ruby(int i) { super(i); maxStackSize = 64; } }Any ideas?
Sorry for that i'm relatively new to forum posting and i didn't know that the Spoiler was in Special BBcodes.
Your second recipe should be addShapelessRecipe. And instead of what you have in the Object Array (Object[]) it should be Block.dirt. So it should like this,
ModLoader.addShapelessRecipe(new ItemStack(RubyOre, 1), new Object[] {Block.dirt});Np, I didnt know how to link something for the longest time after they changed the whole forum around a bit back.
Beats "Achievement Get" any day. They never work. But a question mark? ULTIMATE EPICNESS! Seems legit anyway to have a question mark.