I have a problem with a mod that I'm developing in Eclipse using Forge (1.7.2-Recommended version: 10.12.0.1024) . I already searched in google and the forums for an answer and I could not find anything that could help me. I'm making an item (at this point it is just a generic item) following a tutorial but I just can make the textures to work. This is my code (to reduce space I omitted some things that are not relevant like imports, since I can make it run):
WeaponMod.Java:
@Mod(modid = WeaponMod.modid, name = WeaponMod.name, version = WeaponMod.version)
public class WeaponMod {
public static final String modid="WeaponMod";
public static final String name="Spectra Weapon Mod";
public static final String version="test 0.01";
public static Item itemSword;
@EventHandler
public void preInit(FMLPreInitializationEvent preInit){
itemSword = new genericItem().setUnlocalizedName("SpectraSword");
GameRegistry.registerItem(itemSword, "SpectraSword");
}
genericItem.java:
public class genericItem extends Item {
public genericItem(){
this.setCreativeTab(getCreativeTab().tabCombat);
}
@SideOnly(Side.CLIENT)
public void registerIcon(IIconRegister register){
this.itemIcon = register.registerIcon(WeaponMod.modid + ":" + this.getUnlocalizedName().substring(5));
}
}
Things that I double checked already:
The path of my texture and texture name:
\Forge\src\SpectraSoft\assets\WeaponMod\textures\items\SpectraSword.png
The path of my WeaponMod.java and genericItem.java:
\Forge\src\SpectraSoft\net\SpectraSoft\WeaponMod
\Forge\src\SpectraSoft\net\SpectraSoft\WeaponMod\items
And, finally, the erros I got from the console in Eclipse
[16:04:25] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[16:04:25] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Chepelink/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1024/forgeSrc-1.7.2-10.12.0.1024.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again!
[16:04:25] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
[16:04:25] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Chepelink/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1024/forgeSrc-1.7.2-10.12.0.1024.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
[16:04:25] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[16:04:28] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
[16:04:30] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/items/MISSING_ICON_ITEM_4096_SpectraSword.png
java.io.FileNotFoundException: minecraft:textures/items/MISSING_ICON_ITEM_4096_SpectraSword.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:621) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[16:04:30] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[16:04:30] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[16:04:31] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms
I have a problem with a mod that I'm developing in Eclipse using Forge (1.7.2-Recommended version: 10.12.0.1024) . I already searched in google and the forums for an answer and I could not find anything that could help me. I'm making an item (at this point it is just a generic item) following a tutorial but I just can make the textures to work. This is my code (to reduce space I omitted some things that are not relevant like imports, since I can make it run):
WeaponMod.Java:
@Mod(modid = WeaponMod.modid, name = WeaponMod.name, version = WeaponMod.version) public class WeaponMod { public static final String modid="WeaponMod"; public static final String name="Spectra Weapon Mod"; public static final String version="test 0.01"; public static Item itemSword; @EventHandler public void preInit(FMLPreInitializationEvent preInit){ itemSword = new genericItem().setUnlocalizedName("SpectraSword"); GameRegistry.registerItem(itemSword, "SpectraSword"); }genericItem.java:
public class genericItem extends Item { public genericItem(){ this.setCreativeTab(getCreativeTab().tabCombat); } @SideOnly(Side.CLIENT) public void registerIcon(IIconRegister register){ this.itemIcon = register.registerIcon(WeaponMod.modid + ":" + this.getUnlocalizedName().substring(5)); } }Things that I double checked already:
The path of my texture and texture name:
\Forge\src\SpectraSoft\assets\WeaponMod\textures\items\SpectraSword.png
The path of my WeaponMod.java and genericItem.java:
\Forge\src\SpectraSoft\net\SpectraSoft\WeaponMod
\Forge\src\SpectraSoft\net\SpectraSoft\WeaponMod\items
And, finally, the erros I got from the console in Eclipse