Jump to content

Textures Show Up When Launched From Eclipse, But not After Recompling


Arom1228

Recommended Posts

Hello I am requesting help with my forge mod for 1.6.4.

 

I have made a very small mod to start with, it only adds a set of tools and an ore.

But the problem is everything works, except after i Reobfiscate(i think thats how you spell it), the textures no longer load.

 

My Code:

 

 

 

 

package cyanMod;

 

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.block.Block;

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.Item;

import net.minecraft.item.ItemAxe;

import net.minecraft.item.ItemStack;

import net.minecraft.world.World;

 

public class cyanAxe extends ItemAxe

{

public cyanAxe(int id, EnumToolMaterial toolmaterial)

{

super(id, toolmaterial);

this.setCreativeTab(CreativeTabs.tabTools);

}

@SideOnly(Side.CLIENT)

public void registerIcons(IconRegister par1IconRegister)

{

this.itemIcon = par1IconRegister.registerIcon(CyanMod.modid + ":" + (this.getUnlocalizedName().substring(5)));

}

 

}

 

 

 

 

 

 

package cyanMod;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.enchantment.Enchantment;

import net.minecraft.enchantment.EnumEnchantmentType;

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.Item;

import net.minecraft.nbt.NBTTagCompound;

import net.minecraft.nbt.NBTTagList;

import net.minecraftforge.common.EnumHelper;

import net.minecraftforge.common.MinecraftForge;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

 

@Mod(modid = CyanMod.modid, name = "Cyan Mod", version = "1.0")

 

@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class CyanMod

{

 

//*ModId

    public static final String modid = "Blur_cyan";

 

    //* Enums

 

      //*Materials

    public static EnumToolMaterial toolMaterialCyan;

 

    //*Blocks

 

    public static Block cyanOre;

 

    //*Items

 

    //*Tools & Swords

 

    //*Cyan

    public static Item cyanSword;

 

    public static Item cyanAxe;

 

    public static Item cyanShovel;

 

    public static Item cyanPickaxe;

 

    public static Item cyanHoe;

 

    public static Item cyanGem;

    //*Armor

    //*Cyan

 

    EventManager eventmanagerOregen = new EventManager();

 

 

    @EventHandler

    public void load(FMLInitializationEvent event)

 

    {

    GameRegistry.registerWorldGenerator(eventmanagerOregen);

 

 

    toolMaterialCyan = EnumHelper.addToolMaterial("toolMaterialCyan", 4, 1700, 10.0F, 4.0F, 24);

 

      //*Cyan Ore

    cyanOre = new BlockCyanOre(500, Material.rock).setUnlocalizedName("cyanOre").setHardness(1F);

 

          GameRegistry.registerBlock(cyanOre, modid + cyanOre.getUnlocalizedName().substring(5));

 

          MinecraftForge.setBlockHarvestLevel(cyanOre, "pickaxe", 3);

 

          LanguageRegistry.addName(cyanOre, "Cyan Ore");

      //*Cyan Gem

      cyanGem = new ItemCyanGem(5005).setUnlocalizedName("cyanGem");

 

          LanguageRegistry.addName(cyanGem, "Cyan Gem");

 

      //*Cyan Sword

          cyanSword = new cyanSword(5000, toolMaterialCyan).setUnlocalizedName("cyanSword");

 

          LanguageRegistry.addName(cyanSword, "Cyan Sword");

 

      //*Cyan Axe

          cyanAxe = new cyanAxe(5001, toolMaterialCyan).setUnlocalizedName("cyanAxe");

 

          LanguageRegistry.addName(cyanAxe, "Cyan Axe");

 

        //*Cyan Shovel

          cyanShovel = new cyanShovel(5002, toolMaterialCyan).setUnlocalizedName("cyanShovel");

 

          LanguageRegistry.addName(cyanShovel, "Cyan Shovel");

 

        //*Cyan Pickaxe

          cyanPickaxe = new cyanPickaxe(5003, toolMaterialCyan).setUnlocalizedName("cyanPickaxe");

 

          LanguageRegistry.addName(cyanPickaxe, "Cyan Pickaxe");

 

        //*Cyan Hoe

          cyanHoe = new cyanHoe(5004, toolMaterialCyan).setUnlocalizedName("cyanHoe");

 

          LanguageRegistry.addName(cyanHoe, "Cyan Hoe");

 

          CyanCrafting.loadRecipies();

 

      }

 

 

 

    }

 

 

 

 

Link to comment
Share on other sites

make unlocalized names also lower case

then make sure that all files and folders are ALSO all lower case.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.