public static final Block fireOre = new blockFireOre(151,0).setHardness(0.5F).setResistance(5.0F).setBlockName("fireOre");
You should never make the set block name diffrent to the "public static final Block fireOre", because the .setBlockName is just so it can link the code together when giving it a texture. It may not have given you a error but its still wrong and thats why it cant link to the code giving it the texture. That should work
I copied this exactly and the texture changed to the top of a pumpkin (which is not the correct texture :P)
Also, TechGuy543, please help, i tried the whole mod again but the texture is being gay and stupid... ModLoader error code:
Oct 17, 2012 8:57:24 PM net.minecraft.src.ModLoader init
FINE: ModLoader 1.2.5 Initializing...
Oct 17, 2012 8:57:24 PM net.minecraft.src.ModLoader readFromClassPath
FINER: Adding mods from C:\Users\Theo\Desktop\mcp1.2.5\src\minecraft
Oct 17, 2012 8:57:24 PM net.minecraft.src.ModLoader readFromClassPath
FINER: Directory found.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Armour/VolcaniteHelm.png,38). 84 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Armour/VolcaniteChest.png,102). 83 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Armour/VolacniteLegs.png,118). 82 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Armour/VolcaniteBoots.png,119). 81 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Items/VolcaniteGem.png,120). 80 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Items/VolcaniteRock.png,134). 79 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Tools/DiamondRod.png,144). 78 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Items/VolcanitePlate.png,145). 77 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addMod
FINE: Mod Initialized: "mod_VolcaniteMod Volcanite Tekkit Mod v0.1" from mod_VolcaniteMod.class
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/terrain.png,/VolcaniteMod/Blocks/VolcaniteOre.png,168). 31 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/terrain.png,/VolcaniteMod/Blocks/VolcaniteBlock.png,169). 30 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Tools/Volcanite/VolcanitePick.png,146). 76 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Tools/Volcanite/VolcaniteSword.png,147). 75 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Tools/Volcanite/VolcaniteAxe.png,148). 74 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Tools/Volcanite/VolcaniteShovel.png,149). 73 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addOverride
FINER: addOverride(/gui/items.png,/VolcaniteMod/Tools/Volcanite/VolcaniteHoe.png,150). 72 left.
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader init
FINE: Mod Loaded: "mod_VolcaniteMod Volcanite Tekkit Mod v0.1"
Oct 17, 2012 8:57:25 PM net.minecraft.src.ModLoader addAllRenderers
FINE: Initialized
Oct 17, 2012 8:57:27 PM ModLoader RegisterAllTextureOverrides
FINER: THROW
java.lang.Exception: Image not found: /VolcaniteMod/Blocks/VolcaniteBlock.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1024)
at net.minecraft.src.ModLoader.registerAllTextureOverrides(ModLoader.java:1443)
at net.minecraft.src.ModLoader.onTick(ModLoader.java:1104)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Thread.java:722)
Post your entire load method please.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I may be wrong... but isn't this just because he did not put his textures into the .jar?
Not that I can tell from here. But that is something he should do.
@THeo
Put all your textures in the jar instead of just the MCP bin. It may just fix your problem. If it doesn't, post your load method please.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I have attempted to set the workplace for eclipse and have found mcp, but cannot find the eclipse file within mcp. do you have any ideas why this is, and or, how I can fix it?
The entire load method. There may be an error is previous code stopping this one from working.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I have a strange error, Minecraft is crashing on me, When I checked the error, it said this
---- Minecraft Crash Report ----
// My bad.
Time: 10/20/12 10:31 PM
Description: Unexpected error
java.lang.RuntimeException: java.lang.Exception: Image not found: /GravitestOre.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(Unknown Source)
Caused by: java.lang.Exception: Image not found: /GravitestOre.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 (amd64) version 6.1
- Java Version: 1.7.0_05, Oracle Corporation
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 920749496 bytes (878 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
- JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
- ModLoader: Mods loaded: 30
ModLoader 1.3.2
mod_AppleOfLight 1.3.2
mod_CandyCrystal 1.3.2
mod_CandyCrystalRed 1.3.2
mod_ChickenBanHammer 1.3.1
mod_ChromanTools 1.3.2
mod_CreeperBerry 1.3.2
mod_CreeperBerryBush 1.3.2
mod_DragonBoime 1.3.2
mod_DragonCorruption 1.3.2
mod_DragonDirt 1.3.2
mod_DragonStone 1.3.2
mod_FireRubyOre 1.3.2
mod_FireRubyStuff 1.3.2
mod_FireRubyTools 1.3.2
mod_GravitestCrystal 1.3.2
mod_GravitestOre 1.3.2
mod_Herobrine 1.3.2
mod_MBlueS 1.3.1
mod_MGS 1.3.1
mod_MRedS 1.3.1
mod_MYellowS 1.3.1
mod_MythicStoneBlack 1.3.1
mod_Notch 1.3.2
mod_Orange 1.3.2
mod_runic 1.3.2
mod_RunicArmor 1.3.2
mod_RunicGem 1.3.2
mod_RunicOre 1.3.2
mod_RunicTools 1.3.2
- LWJGL: 2.4.2
- OpenGL: GeForce GT 610/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
- Is Modded: Very likely
- Type: Client
- Texture Pack: Default
- Profi
So I changed my texturepath to this
package net.minecraft.src;
public class mod_GravitestOre<Random> extends BaseMod
{
public static final Block GravitestOre = new BlockGravitestOre(173, 0).setBlockName("GravitestOre").setHardness(8F).setResistance(4F).setLightValue(0F).setCreativeTab(CreativeTabs.tabBlock);
public void load()
{
GravitestOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "GravitestOre");
ModLoader.registerBlock(GravitestOre);
ModLoader.addName(GravitestOre, "GravitestOre");
}
public void generateSurface(World world, java.util.Random random, int chunkX, int chunkZ)
{
for(int i = 0; i < 2; i++)
{
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(25);
int randPosZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(GravitestOre.blockID,6)).generate(world, random, randPosX, randPosY, randPosZ);
}
}
public String getVersion()
{
return "1.3.2";
}
}
and the code worked, but I had to do this to all the item's I created, But this error never happened before, it started when I was trying to put custom armor in the jar in MCP and I accidently clicked the files; jinput, lwjgl and lwjgl_util, I'm worried I broke the minecraft jar by doing this.
I copied this exactly and the texture changed to the top of a pumpkin
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'll try that out, thanks!
fireOre.blockIndexInTexture = ModLoader.addOverride("/gui/items.png","/Itemss/fo.png"); ModLoader.registerBlock(fireOre); ModLoader.addName(fireOre, "Firestone Ore");there it is
yes, the folder name is Itemss, all of my item textures work, bit none of the blocks do
did you check your folders? Sometimes they get screwed up for me and I am forced to make a new one.
If it isnt, put the folder in the minecraft client jar that you are modding (hope that helps :))
Oh my god im an idiot, thank u so much here's a
Post your entire load method please.
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI may be wrong... but isn't this just because he did not put his textures into the .jar?
Not that I can tell from here. But that is something he should do.
@THeo
Put all your textures in the jar instead of just the MCP bin. It may just fix your problem. If it doesn't, post your load method please.
together they are powerful beyond imagination."
How would I add this?
The entire load method. There may be an error is previous code stopping this one from working.
together they are powerful beyond imagination."
I want to spawn a custom mob when I right click with his spawn item. But the only tutorials I have found are for 1.2.5.
If anyone knows how to do this please tell.
Thanks in advance for any help.
So I changed my texturepath to this
package net.minecraft.src; public class mod_GravitestOre<Random> extends BaseMod { public static final Block GravitestOre = new BlockGravitestOre(173, 0).setBlockName("GravitestOre").setHardness(8F).setResistance(4F).setLightValue(0F).setCreativeTab(CreativeTabs.tabBlock); public void load() { GravitestOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "GravitestOre"); ModLoader.registerBlock(GravitestOre); ModLoader.addName(GravitestOre, "GravitestOre"); } public void generateSurface(World world, java.util.Random random, int chunkX, int chunkZ) { for(int i = 0; i < 2; i++) { int randPosX = chunkX + random.nextInt(16); int randPosY = random.nextInt(25); int randPosZ = chunkZ + random.nextInt(16); (new WorldGenMinable(GravitestOre.blockID,6)).generate(world, random, randPosX, randPosY, randPosZ); } } public String getVersion() { return "1.3.2"; } }and the code worked, but I had to do this to all the item's I created, But this error never happened before, it started when I was trying to put custom armor in the jar in MCP and I accidently clicked the files; jinput, lwjgl and lwjgl_util, I'm worried I broke the minecraft jar by doing this.
Once again thanks in advance.