I am having trouble with my .lang files. I think their infomation is correct but all my items still say: item.catsItem.name. my source is project catsFirst/src/com.catLord.first (classes) and catsFirst/src/assets.catLord.lang is where my .lang files are.
you need to make a file in resources/<your modid>/lang/en_US.lang
and then put the names in there so it would be
======================
##Example of en_US.lang
iems.catsItem.name=Cats Items
======================
Umm I don't know if I'm doing this right I created a resources folder in my own project and put assets.catLord.lang in there and it still isn't working my file is named en_US.lang. I also tried putting catLord.lang in project minecraft>src/main/resources. Thanks for trying to help
@Mod(modid = MainClass.MODID, version = MainClass.VERSION)
public class MainClass
{
public static final String MODID = "CatsFirst";
public static final String VERSION = "1.0";
public static ColesItem ColesItemVar;
public static MegaMeef megaMeef;
public static PowerPotion powerPotion;
public static SpiceFurnace spiceFurnace;
public static TileEntitySpiceFurnace TESFurnace;
public static CreativeTabs colesTab;
public static WorldGenSpire worldGenSpire;
public static WorldGenP worldGenP;
public static Achievement megaMeefAchive;
public static Enchantment LOLCreeper;
@EventHandler
public void init(FMLInitializationEvent event)
{
ColesItemVar = new ColesItem();
GameRegistry.registerItem(ColesItemVar, ColesItemVar.getUnlocalizedName().substring(5));
megaMeef = new MegaMeef(0,0,false);
megaMeef.setUnlocalizedName("mega_meef");
GameRegistry.registerItem(megaMeef, megaMeef.getUnlocalizedName().substring(5));
powerPotion = new PowerPotion(1, 1F, false);
GameRegistry.registerItem(powerPotion,powerPotion.getUnlocalizedName().substring(5));
spiceFurnace = new SpiceFurnace(Material.anvil);
GameRegistry.registerBlock(spiceFurnace, spiceFurnace.getUnlocalizedName().substring(5));
//GameRegistry.registerTileEntity((TESFurnace., "TESFurnace");
megaMeefAchive = new Achievement("Eat mega meef","Meefed", -1, -2, megaMeef, AchievementList.openInventory).registerStat();
worldGenSpire = new WorldGenSpire();
GameRegistry.registerWorldGenerator(worldGenSpire,1);
worldGenP = new WorldGenP();
GameRegistry.registerWorldGenerator(worldGenP, 1);
Enchantment.addToBookList(LOLCreeper);
colesTab = new CreativeTabs("stuff"){
@SideOnly(Side.CLIENT)
public Item getTabIconItem()
{
return ColesItemVar;
}
};
ColesItemVar.setCreativeTab(colesTab);
megaMeef.setCreativeTab(colesTab);
spiceFurnace.setCreativeTab(colesTab);
ItemStack ultraBow = new ItemStack(Items.bow,1);
ultraBow.addEnchantment(Enchantment.power, 999);
GameRegistry.addShapelessRecipe(new ItemStack(powerPotion), new Object[]{ Items.glass_bottle,ColesItemVar});
}
}The unlocalized name is in the item file, sorry this is my entire mainclass
I do not know what im doing wrong. I was working on a custom villager texture and i can't get it to load either I put the package in the src folder and the resources folder in Minecraft I tried a lot of possible locations in the code. Do I need to put it in a new folder? Because I can't get a single resource to work.
...they don't work at all in resources. Textures and everything else go in resources, but lang files need to go on their own assets in the /java/ tree.
...they don't work at all in resources. Textures and everything else go in resources, but lang files need to go on their own assets in the /java/ tree.
But I dunno wtf is up with my workspace (1.7.10).
That's weird! I haven't seen that... Does it affect anything in game? Performance wise etc?
I finally got the lang files to work, I decapitlized my modid then,I found that placing my assets as down below worked. However I still am trying to get item texture to work
I finally got the lang files to work, I decapitlized my modid then,I found that placing my assets as down below worked. However I still am trying to get item texture to work
That's weird! I haven't seen that... Does it affect anything in game? Performance wise etc?
Nope... but I need to have it there when doing a Run from Eclipse, but then when I build a jar and run it in client the lang files are *not* working o_O
I'm in no rush to solve it ATM (I don't plan to distribute any mods for a long time) but I'm guessing a full reinstall of Forge should solve it. But yeah, 'tis weird.
Please help
and then put the names in there so it would be
======================
##Example of en_US.lang
iems.catsItem.name=Cats Items
======================
Boop
Twitter: https://twitter.com/Matt_Smeets
Download my Mods: http://mods.curse.com/members/MattsOnMc/projects
package com.catLord.First;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.stats.Achievement;
import net.minecraft.stats.AchievementList;
import cpw.mods.fml.common.IWorldGenerator;
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.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@Mod(modid = MainClass.MODID, version = MainClass.VERSION)
public class MainClass
{
public static final String MODID = "CatsFirst";
public static final String VERSION = "1.0";
public static ColesItem ColesItemVar;
public static MegaMeef megaMeef;
public static PowerPotion powerPotion;
public static SpiceFurnace spiceFurnace;
public static TileEntitySpiceFurnace TESFurnace;
public static CreativeTabs colesTab;
public static WorldGenSpire worldGenSpire;
public static WorldGenP worldGenP;
public static Achievement megaMeefAchive;
public static Enchantment LOLCreeper;
@EventHandler
public void init(FMLInitializationEvent event)
{
ColesItemVar = new ColesItem();
GameRegistry.registerItem(ColesItemVar, ColesItemVar.getUnlocalizedName().substring(5));
megaMeef = new MegaMeef(0,0,false);
megaMeef.setUnlocalizedName("mega_meef");
GameRegistry.registerItem(megaMeef, megaMeef.getUnlocalizedName().substring(5));
powerPotion = new PowerPotion(1, 1F, false);
GameRegistry.registerItem(powerPotion,powerPotion.getUnlocalizedName().substring(5));
spiceFurnace = new SpiceFurnace(Material.anvil);
GameRegistry.registerBlock(spiceFurnace, spiceFurnace.getUnlocalizedName().substring(5));
//GameRegistry.registerTileEntity((TESFurnace., "TESFurnace");
megaMeefAchive = new Achievement("Eat mega meef","Meefed", -1, -2, megaMeef, AchievementList.openInventory).registerStat();
worldGenSpire = new WorldGenSpire();
GameRegistry.registerWorldGenerator(worldGenSpire,1);
worldGenP = new WorldGenP();
GameRegistry.registerWorldGenerator(worldGenP, 1);
Enchantment.addToBookList(LOLCreeper);
colesTab = new CreativeTabs("stuff"){
@SideOnly(Side.CLIENT)
public Item getTabIconItem()
{
return ColesItemVar;
}
};
ColesItemVar.setCreativeTab(colesTab);
megaMeef.setCreativeTab(colesTab);
spiceFurnace.setCreativeTab(colesTab);
ItemStack ultraBow = new ItemStack(Items.bow,1);
ultraBow.addEnchantment(Enchantment.power, 999);
GameRegistry.addShapelessRecipe(new ItemStack(powerPotion), new Object[]{ Items.glass_bottle,ColesItemVar});
}
}The unlocalized name is in the item file, sorry this is my entire mainclass
Putting the CENDENT back in transcendent!
Hello!
Your modid needs to be lower-case. Only when doing assets however!
Yup, the whole path in your assets needs to be lowercase except the actual resources like the pictures and models... etc...
Hello!
/src/main/java/assets/modid/lang/*
...they don't work at all in resources. Textures and everything else go in resources, but lang files need to go on their own assets in the /java/ tree.
But I dunno wtf is up with my workspace (1.7.10).
That's weird! I haven't seen that... Does it affect anything in game? Performance wise etc?
Hello!
How do you have your item textures set-up?
Nope... but I need to have it there when doing a Run from Eclipse, but then when I build a jar and run it in client the lang files are *not* working o_O
I'm in no rush to solve it ATM (I don't plan to distribute any mods for a long time) but I'm guessing a full reinstall of Forge should solve it. But yeah, 'tis weird.