CAN ANYONE HELP ME?
hello i'm just a noob in moding. my programming is good but i know a little about java. I have mcp744 and can make blocks and mobs but i don't know how to load a texture for my block!
(my minecraft is 1.5.1 and it always says missing texture)
CAN ANYONE HELP ME? hello i'm just a noob in moding. my programming is good but i know a little about java. I have mcp744 and can make blocks and mobs but i don't know how to load a texture for my block! (my minecraft is 1.5.1 and it always says missing texture)
For the block's code in your main class, add .setUnlocalizedName("[Name of your texture]"), then put in the texture in your minecraft.jar from the jars folder in MCP.
Also, I am still looking for an answer to my world generation problem. (Whenever I generate a new world with the ore code, the game crashes right in the middle.
there's a different way to do that, where you don't have to put the texture in the minecraft.jar
what i did was i made a folder called "textures" in the folder of my mod (Mine's called "mod_MoreBlocks"). Within that textures folder i put 2 more folders called "blocks" and "items". And you know, put the block textures in the "blocks" folder and item textures in the "items" folder...
in the class of the block or item (let's take one of my blocks - Cement.java) and i put this code in -
@Override
public void registerIcons(IconRegister reg) {
this.blockIcon = reg.registerIcon("mod_MoreBlocks:CementBlock");
}
For the item, go in the item class (I'll do one of mine - "StoneBrick.Java") this is the code -
Try an Xray mod. That'll make the progress simpler.
Thanks for the tip, I tried that before but my game kept crashing.
I just made the spawn rate extremely high and blew thousands of holes in my world until I found it; but that's for the tip/help.
CAN ANYONE HELP ME?
hello i'm just a noob in moding. my programming is good but i know a little about java. I have mcp744 and can make blocks and mobs but i don't know how to load a texture for my block!
(my minecraft is 1.5.1 and it always says missing texture)
You have to make the texture and drag it into the textures folder inside your minecraft.jar. SCMowns mentioned that in the tutorial for making blocks and items. You also have to return the texture (if it is a block) inside the personal class file. Additionally, when you make the item (when you declare it a new), you have to add the .setUnlocalizedName("textureNameHere"). <---- You have to have the "textureNameHere" to your .png texture that you put in the textures folder in the minecraft.jar
Edit: The code in order to return your texture for a block is this:
public String getTextureFile(){
return "/textures/blocks/yourTextureName.png";
}
just paste that at the end of your block class file.
Sorry to keep posting and asking for help guys, but does anybody know how to make armor infinite durability WITH good protection? Because I can make it infinite durability it's just that I can't make it a good protection.
If anybody could help me, that would be great, thanks
hey im having trouble when trying to test the mod in eclipse by clicking the play button. it says an error: Error: Could not find or load main class Start. i dont know what this means and i dont know why it's not working. it worked fine last time i did it a few weeks ago but i haven't touched any of my classes or from the mod
These are some errors I get when doing my Forge Mod, but the game still starts and everything works. These Are The errors:
Error 1:
2013-06-12 21:30:38 [INFO] [STDERR] java.lang.NoSuchFieldException: GL_ARB_copy_image
2013-06-12 21:30:38 [INFO] [STDERR] at java.lang.Class.getField(Unknown Source)
2013-06-12 21:30:38 [INFO] [STDERR] at cpw.mods.fml.client.TextureFXManager.getHelper(TextureFXManager.java:122)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.renderer.texture.TextureStitched.init(TextureStitched.java:74)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:154)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:443)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732)
2013-06-12 21:30:38 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
Error 2:
2013-06-12 21:30:39 [INFO] [STDERR] java.io.FileNotFoundException: http://assets.minecraft.net/1_6_has_been_released.flag
2013-06-12 21:30:39 [INFO] [STDERR] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
2013-06-12 21:30:39 [INFO] [STDERR] at net.minecraft.util.HttpUtil.func_104145_a(HttpUtil.java:230)
2013-06-12 21:30:39 [INFO] [STDERR] at net.minecraft.client.gui.RunnableTitleScreen.run(RunnableTitleScreen.java:23)
2013-06-12 21:30:39 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
Error 3:
2013-06-12 21:30:46 [INFO] [STDERR] java.io.FileNotFoundException: http://assets.minecraft.net/1_6_has_been_released.flag
2013-06-12 21:30:46 [INFO] [STDERR] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
2013-06-12 21:30:46 [INFO] [STDERR] at net.minecraft.util.HttpUtil.func_104145_a(HttpUtil.java:230)
2013-06-12 21:30:46 [INFO] [STDERR] at net.minecraft.client.gui.RunnableTitleScreen.run(RunnableTitleScreen.java:23)
2013-06-12 21:30:46 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
Anything To Fix These Would Greatly Appreciated. =) (=
You have to make the texture and drag it into the textures folder inside your minecraft.jar. SCMowns mentioned that in the tutorial for making blocks and items. You also have to return the texture (if it is a block) inside the personal class file. Additionally, when you make the item (when you declare it a new), you have to add the .setUnlocalizedName("textureNameHere"). <---- You have to have the "textureNameHere" to your .png texture that you put in the textures folder in the minecraft.jar
Edit: The code in order to return your texture for a block is this:
public String getTextureFile(){
return "/textures/blocks/yourTextureName.png";
}
just paste that at the end of your block class file.
Hope this helped!
really? you people still do it that way? that way is more confusing and stuff, u know there is another way to get block and item texture to show up, and not having to put them in the .jar..right?
These are some errors I get when doing my Forge Mod, but the game still starts and everything works. These Are The errors:
Error 1:
2013-06-12 21:30:38 [INFO] [STDERR] java.lang.NoSuchFieldException: GL_ARB_copy_image
2013-06-12 21:30:38 [INFO] [STDERR] at java.lang.Class.getField(Unknown Source)
2013-06-12 21:30:38 [INFO] [STDERR] at cpw.mods.fml.client.TextureFXManager.getHelper(TextureFXManager.java:122)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.renderer.texture.TextureStitched.init(TextureStitched.java:74)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:154)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:443)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732)
2013-06-12 21:30:38 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
Error 2:
2013-06-12 21:30:39 [INFO] [STDERR] java.io.FileNotFoundException: http://assets.minecr...n_released.flag
2013-06-12 21:30:39 [INFO] [STDERR] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
2013-06-12 21:30:39 [INFO] [STDERR] at net.minecraft.util.HttpUtil.func_104145_a(HttpUtil.java:230)
2013-06-12 21:30:39 [INFO] [STDERR] at net.minecraft.client.gui.RunnableTitleScreen.run(RunnableTitleScreen.java:23)
2013-06-12 21:30:39 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
Error 3:
2013-06-12 21:30:46 [INFO] [STDERR] java.io.FileNotFoundException: http://assets.minecr...n_released.flag
2013-06-12 21:30:46 [INFO] [STDERR] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
2013-06-12 21:30:46 [INFO] [STDERR] at net.minecraft.util.HttpUtil.func_104145_a(HttpUtil.java:230)
2013-06-12 21:30:46 [INFO] [STDERR] at net.minecraft.client.gui.RunnableTitleScreen.run(RunnableTitleScreen.java:23)
2013-06-12 21:30:46 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
Anything To Fix These Would Greatly Appreciated. =) (=
i get those too, and i'm sure everyone else does, i just ignore them because they're not messing with the mod and making it crash...
hey im having trouble when trying to test the mod in eclipse by clicking the play button. it says an error: Error: Could not find or load main class Start. i dont know what this means and i dont know why it's not working. it worked fine last time i did it a few weeks ago but i haven't touched any of my classes or from the mod
The Meaning of Life, the Universe, and Everything.
Join Date:
4/24/2013
Posts:
51
Minecraft:
DavidTheFighter
Member Details
SCMowns, I absolutely LOVE your modding tutorials. Even though you are doing forge now, could you still do modloader occasionally? I normally use modloader and it would be nice if you could keep doing tutorial on it. Thanks.
I need help!
When I try to add more than 1 Crafting Recipe my minecraft crashes!
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Failed to start game
A full error report has been saved to C:\Users\caudio\Desktop\Claudio\Forge 1.5.2 Modding\jars\.\crash-reports\crash-2013-06-13_21.53.31-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT fa137601 --------
Full report at:
C:\Users\caudio\Desktop\Claudio\Forge 1.5.2 Modding\jars\.\crash-reports\crash-2013-06-13_21.53.31-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 13-06-2013 21:53
-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows Vista (x86) version 6.0
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpotâ„¢ Client VM (mixed mode), Oracle Corporation
Memory: 935190192 bytes (891 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.51 FML v5.2.2.684 Minecraft Forge 7.8.0.684 4 mods loaded, 4 mods active
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
MegaOres{v1 Alpha} [Mega Ores] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: Mirage Graphics3 GL version 1.5.0, SiS
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
java.lang.NullPointerException
at net.minecraft.item.ItemStack.<init>(ItemStack.java:72)
at Caliben.Mega_Ores.mega_ores.load(mega_ores.java:277)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:447)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:732)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 2bfe5df9 ----------
Also, the error file it generated:
---- Minecraft Crash Report ----
Time: 13-06-2013 21:53
Description: Failed to start game
java.lang.NullPointerException
at net.minecraft.item.ItemStack.<init>(ItemStack.java:72)
at Caliben.Mega_Ores.mega_ores.load(mega_ores.java:277)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:447)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:732)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows Vista (x86) version 6.0
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpotâ„¢ Client VM (mixed mode), Oracle Corporation
Memory: 935190192 bytes (891 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.51 FML v5.2.2.684 Minecraft Forge 7.8.0.684 4 mods loaded, 4 mods active
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
MegaOres{v1 Alpha} [Mega Ores] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: Mirage Graphics3 GL version 1.5.0, SiS
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
EDIT: Nevermind, fixed it... Looks like I forgot to add the ITEM I was trying to craft into the game
could I get some help with the item creation section in my mods class file? I don't know the syntax for including some of my custom items in the in-game item creation.
eg
GameRegistry.addRecipe(new ItemStack(Modded item 3,1), new Object[]{
" "," M ","F F",'M',<insert Modded item 1>,'F',<insert Modded item 2>,
});
With normal item creation I know I put in item.<insert item> or block.<insert block> but I have no clue how to use modded items in this.
You mean like this?
GameRegistry.addRecipe(new ItemStack(Modded item 3,1), new Object[]{
" "," M ","F F",'M',MyModClass.MyItem,'F',MyModClass.MyItem,
});
All you need to do is place your mods class and then put your item/block you wanna use in the crafting. Someone above answered the question already, and provided some useful info.
You get an error when you start up eclipse? was that your first time opening eclipse?
Yes sir, it was my first time. It's weird, but when I open it in the original WinRAR file, it doesn't do that. I got all the way up to testing the mod for the first time, but it gave a black screen, so I'm assuming that I have to run it in a folder, not an archive, where it is isolated.
Well, I wrote up an ore generation class so that it can generate my Smiley Gem Ore in the Overworld, although when generating a new world, the game crashes right in the middle and it all goes bust.
I posted this three times now, and the log is in my first post.
Here's the source code too:
smileyOre = new SmileyOre(3606, "smileyOre").setUnlocalizedName("smileyOre").setHardness(20.0F).setStepSound(Block.soundStoneFootstep).setResistance(100.0F);
GameRegistry.registerBlock(smileyOre, "smileyOre");
LanguageRegistry.addName(smileyOre, "Smiley Gem Ore");
GameRegistry.registerWorldGenerator(new WorldGeneratorSmiley()); //Part of my main mod class
package TXX59.Smiley;
import java.util.Random;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import cpw.mods.fml.common.IWorldGenerator;
public class WorldGeneratorSmiley implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world,
IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
// TODO Auto-generated method stub
switch(world.provider.dimensionId){
case 0 : generateSurface(world, random,chunkX*16,chunkZ*16);
}
}
private void generateSurface(World world, Random random, int BlockX, int BlockZ) {
for(int i =0; i<10;i++){
int Xcoord = BlockX + random.nextInt(48);
int Zcoord = BlockZ + random.nextInt(64);
int Ycoord = random.nextInt(16);
(new WorldGenMinable(SmileyMod.smileyOre.blockID, 7)).generate(world, random, Xcoord, Ycoord, Zcoord);
}
}
}
I have no idea what the problem is...
well i don't know what the error log has....i'll probably look for it in the past posts, so you don't have to post it again...anyway, i think the block id is to high, i'm not really sure, cause i gotta find the error that u posted in the past. try lowering the block's id and see if it works....in the mean time, i'll find that error log...
Yes sir, it was my first time. It's weird, but when I open it in the original WinRAR file, it doesn't do that. I got all the way up to testing the mod for the first time, but it gave a black screen, so I'm assuming that I have to run it in a folder, not an archive, where it is isolated.
maybe eclipse didn't get installed right? or the forge/modloader decompiling wasn't done right?
hello i'm just a noob in moding. my programming is good but i know a little about java. I have mcp744 and can make blocks and mobs but i don't know how to load a texture for my block!
(my minecraft is 1.5.1 and it always says missing texture)
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumthere's a different way to do that, where you don't have to put the texture in the minecraft.jar
what i did was i made a folder called "textures" in the folder of my mod (Mine's called "mod_MoreBlocks"). Within that textures folder i put 2 more folders called "blocks" and "items". And you know, put the block textures in the "blocks" folder and item textures in the "items" folder...
in the class of the block or item (let's take one of my blocks - Cement.java) and i put this code in -
@Override public void registerIcons(IconRegister reg) { this.blockIcon = reg.registerIcon("mod_MoreBlocks:CementBlock"); }For the item, go in the item class (I'll do one of mine - "StoneBrick.Java") this is the code -
private Icon iconIndex; public void registerIcons(IconRegister par1IconRegister) { this.itemIcon = par1IconRegister.registerIcon(mod_MoreBlocks.modid + ":" + (this.getUnlocalizedName().substring(5))); }Now for a tool (Like a pickaxe) the code above didn't work for me, so i did this -
public void registerIcons(IconRegister reg) { this.itemIcon = reg.registerIcon("mod_MoreBlocks:BirchDiamondPick"); }It looks similar to the block one...
Anyway, this is how i got textures to work, without putting the textures in the minecraft.jar, i hope this helps you!
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
Thanks for the tip, I tried that before but my game kept crashing.
I just made the spawn rate extremely high and blew thousands of holes in my world until I found it; but that's for the tip/help.
You have to make the texture and drag it into the textures folder inside your minecraft.jar. SCMowns mentioned that in the tutorial for making blocks and items. You also have to return the texture (if it is a block) inside the personal class file. Additionally, when you make the item (when you declare it a new), you have to add the .setUnlocalizedName("textureNameHere"). <---- You have to have the "textureNameHere" to your .png texture that you put in the textures folder in the minecraft.jar
Edit: The code in order to return your texture for a block is this:
public String getTextureFile(){ return "/textures/blocks/yourTextureName.png"; }just paste that at the end of your block class file.
Hope this helped!
If anybody could help me, that would be great, thanks
Error 1:
2013-06-12 21:30:38 [INFO] [STDERR] java.lang.NoSuchFieldException: GL_ARB_copy_image
2013-06-12 21:30:38 [INFO] [STDERR] at java.lang.Class.getField(Unknown Source)
2013-06-12 21:30:38 [INFO] [STDERR] at cpw.mods.fml.client.TextureFXManager.getHelper(TextureFXManager.java:122)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.renderer.texture.TextureStitched.init(TextureStitched.java:74)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:154)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:443)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-06-12 21:30:38 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:732)
2013-06-12 21:30:38 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
Error 2:
2013-06-12 21:30:39 [INFO] [STDERR] java.io.FileNotFoundException: http://assets.minecraft.net/1_6_has_been_released.flag
2013-06-12 21:30:39 [INFO] [STDERR] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
2013-06-12 21:30:39 [INFO] [STDERR] at net.minecraft.util.HttpUtil.func_104145_a(HttpUtil.java:230)
2013-06-12 21:30:39 [INFO] [STDERR] at net.minecraft.client.gui.RunnableTitleScreen.run(RunnableTitleScreen.java:23)
2013-06-12 21:30:39 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
Error 3:
2013-06-12 21:30:46 [INFO] [STDERR] java.io.FileNotFoundException: http://assets.minecraft.net/1_6_has_been_released.flag
2013-06-12 21:30:46 [INFO] [STDERR] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
2013-06-12 21:30:46 [INFO] [STDERR] at net.minecraft.util.HttpUtil.func_104145_a(HttpUtil.java:230)
2013-06-12 21:30:46 [INFO] [STDERR] at net.minecraft.client.gui.RunnableTitleScreen.run(RunnableTitleScreen.java:23)
2013-06-12 21:30:46 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
Anything To Fix These Would Greatly Appreciated. =) (=
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumreally? you people still do it that way? that way is more confusing and stuff, u know there is another way to get block and item texture to show up, and not having to put them in the .jar..right?
i get those too, and i'm sure everyone else does, i just ignore them because they're not messing with the mod and making it crash...
eclipse isn't set up right
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumsure i'll see what i can do... what's the problem?
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWhen I try to add more than 1 Crafting Recipe my minecraft crashes!
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Failed to start game
A full error report has been saved to C:\Users\caudio\Desktop\Claudio\Forge 1.5.2 Modding\jars\.\crash-reports\crash-2013-06-13_21.53.31-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT fa137601 --------
Full report at:
C:\Users\caudio\Desktop\Claudio\Forge 1.5.2 Modding\jars\.\crash-reports\crash-2013-06-13_21.53.31-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 13-06-2013 21:53
-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows Vista (x86) version 6.0
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpotâ„¢ Client VM (mixed mode), Oracle Corporation
Memory: 935190192 bytes (891 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.51 FML v5.2.2.684 Minecraft Forge 7.8.0.684 4 mods loaded, 4 mods active
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
MegaOres{v1 Alpha} [Mega Ores] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: Mirage Graphics3 GL version 1.5.0, SiS
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
java.lang.NullPointerException
at net.minecraft.item.ItemStack.<init>(ItemStack.java:72)
at Caliben.Mega_Ores.mega_ores.load(mega_ores.java:277)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:447)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:732)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 2bfe5df9 ----------
Also, the error file it generated:
---- Minecraft Crash Report ----
Time: 13-06-2013 21:53
Description: Failed to start game
java.lang.NullPointerException
at net.minecraft.item.ItemStack.<init>(ItemStack.java:72)
at Caliben.Mega_Ores.mega_ores.load(mega_ores.java:277)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:690)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:447)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:732)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows Vista (x86) version 6.0
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpotâ„¢ Client VM (mixed mode), Oracle Corporation
Memory: 935190192 bytes (891 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.51 FML v5.2.2.684 Minecraft Forge 7.8.0.684 4 mods loaded, 4 mods active
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{5.2.2.684} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge{7.8.0.684} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
MegaOres{v1 Alpha} [Mega Ores] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: Mirage Graphics3 GL version 1.5.0, SiS
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
EDIT: Nevermind, fixed it... Looks like I forgot to add the ITEM I was trying to craft into the game
---------------------------
Eclipse
---------------------------
Java was started but returned exit code=13
C:\Windows\system32\javaw.exe
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:\Users\Caleb\Desktop\My Mod!\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os win32
-ws win32
-arch x86_64
-showsplash C:\Users\Caleb\Desktop\My Mod!\eclipse\\plugins\org.eclipse.platform_4.2.2.v201302041200\splash.bmp
-launcher C:\Users\Caleb\Desktop\My Mod!\eclipse\eclipse.exe
-name Eclipse
--launcher.library C:\Users\Caleb\Desktop\My Mod!\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807\eclipse_1503.dll
-startup C:\Users\Caleb\Desktop\My Mod!\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 908_5c
-vm C:\Windows\system32\javaw.exe
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:\Users\Caleb\Desktop\My Mod!\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
---------------------------
OK
---------------------------
You get an error when you start up eclipse? was that your first time opening eclipse?
You mean like this?
GameRegistry.addRecipe(new ItemStack(Modded item 3,1), new Object[]{ " "," M ","F F",'M',MyModClass.MyItem,'F',MyModClass.MyItem, }); All you need to do is place your mods class and then put your item/block you wanna use in the crafting. Someone above answered the question already, and provided some useful info.Yes sir, it was my first time. It's weird, but when I open it in the original WinRAR file, it doesn't do that. I got all the way up to testing the mod for the first time, but it gave a black screen, so I'm assuming that I have to run it in a folder, not an archive, where it is isolated.
spot-
View User Profile
-
View Posts
-
Send Message
Curse Premiumwell i don't know what the error log has....i'll probably look for it in the past posts, so you don't have to post it again...anyway, i think the block id is to high, i'm not really sure, cause i gotta find the error that u posted in the past. try lowering the block's id and see if it works....in the mean time, i'll find that error log...
everything else seems to be right....
yes, do you mean like the gravel where it has a chance of dropping one or another item? or 2 items at once?
maybe eclipse didn't get installed right? or the forge/modloader decompiling wasn't done right?
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist