
mrkirby153
Members-
Posts
186 -
Joined
-
Last visited
Everything posted by mrkirby153
-
[still unsolved]where to place texture
mrkirby153 replied to buster_the_dog's topic in Modder Support
Change private static final ResourceLocation Texture = new ResourceLocation("slenderchicken","/textures/entities/slenderchicken.png"); to private static final ResourceLocation Texture = new ResourceLocation("slenderchicken","entities/slenderchicken.png"); Remove the /textures/. I found that the "/" causes a lot of problems with filenames -
Two of four subblock's names are the same
mrkirby153 replied to DoktuhParadox's topic in Modder Support
Try moving this.setUnlocalizedName() method to its own method: @Override public String getUnlocalizedName(ItemStack item) { return this.getUnlocalizedName() + "." + <YOUR NAME HERE>; } Use a "." instead of a "|" in the name. That might be another cause of the problem. -
Remove the "/" before rpghud. That should fix it
-
Yeah you gotta do that. I forgot to mention that. Glad you figured it out on your own
-
Eclipse Kepler Issue with Content Assist
mrkirby153 replied to Bigglesw0rth's topic in Modder Support
Have you tried reinstalling Eclipse Kepler, It worked for me -
THe Item itself or the damage value?
-
[UNRESOLVED] Problem with my code the I cant spot
mrkirby153 replied to xcoopergangx's topic in Modder Support
That "New" topic link is broken -
My bad, it should've been amethysttools:textures/armor/amethyst_1 and amethysttools:textures/armor/amethyst_2
-
Change "AmethystTools" in your armour class to "amethysttools" Also, change public static String AMETHYST_1 = "/assets/amethysttools/textures/armor/amethyst_1"; public static String AMETHYST_2 = "/assets/amethysttools/textures/armor/amethyst_2.png"; to public static String AMETHYST_1 = "amethysttools:armor/amethyst_1"; public static String AMETHYST_2 = "amethysttools:armor/amethyst_2.png"; Try that and let me know if it doesn't work
-
Legal launcher 1.6.2 - Mod (forge) - for server
mrkirby153 replied to Finelarme's topic in Modder Support
I have absolutly no idea what you are talking about. Please explain in HUGE amounts of detail Thanks -
Damage item on crafting that is not in crafting grid?
mrkirby153 replied to gristly's topic in Modder Support
Try adding a catch: if(CONTAINERNAME instanceof SPECALCRAFTINGTABLE){ //Your code here } -
About the annotations? They are deprecated. Meaning they probably will be removed soon and are just there for compatability
-
I was going to refer you to the wiki page on it but apparently that page got deleted. So, I can explain it to you i guess. I will assume you are looking at the ItemDye class Basically, you need a table of all the sub items you want and their unlocalized names. (Line 33) Then, you need a table of all their icons (Line 37) You need to let Minecraft know that this item has subtypes by using the this.setHasSubtypes(true) function in the constructor (Line 42) You then have to make sure the item cannot be damaged by using the item.setItemDamage() function (Line 43) After that, you need to get the item Icon. (Line 54 and 55) You also need to give each sub item a unique name. (Line 64 and 65) On Line 378, the method getSubItems() gets all the sub items from that particular item. VERY IMPORTANT: Replace the 16 on line 380 with whatever amount of items you have. Example: If I had 3 sub items, i would replace 16 with 3 Finally, the registerIcons function on line 387 set the texture of each individual item. If I had 5 items the code would look like this for (int i = 0; i < ARRAY_WITH_ITEM_NAMES.legnth(); i++){ this.ICON_ARRAY[i] = par1IconRegister.registerIcon("MAIN_ITEM_NAME_" + ARRAY_WITH_ITEM_NAMES[i]); } 100% Working example file: http://pastebin.com/P2eZaYsd
-
I have a solution! Move Cfg.loadConfig(e); to right after Cfg cc = new Cfg(); The Final CWM Class should look like this: package cwm; import java.io.File; import javax.swing.text.JTextComponent.KeyBinding; import net.java.games.input.Keyboard; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import cpw.mods.fml.client.registry.KeyBindingRegistry; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.Mod.PostInit; import cpw.mods.fml.common.Mod.PreInit; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid="CWM",name="Cyph's World Of Magic",version="0.0.1") @NetworkMod(clientSideRequired=true,serverSideRequired=false) public class CWM { @Instance("CyphScape Core") public static CWM instance = new CWM(); public static File configFile; @SidedProxy(clientSide = "cwm.clientSide", serverSide = "cwm.serverSide") public static serverSide proxy; public static CreativeTabs tabCWM = new tabCyphereionsWorldOfMagic(CreativeTabs.getNextID(),"tabCWM"); public static Item Cloth; public static Item ResearchBook; @PreInit() public void PreInitTutorial(FMLPreInitializationEvent e){ Cfg.loadConfig(e); Cfg cc = new Cfg(); Cloth = new ItemCloth(cc.itemClothID); ResearchBook = new ItemResearchBook(cc.researchBookID); } @Init public void load(FMLInitializationEvent event) { Cloth.setUnlocalizedName("CWM_Cloth"); ResearchBook.setUnlocalizedName("CWM_ResearchBook"); GameRegistry.addShapelessRecipe(new ItemStack(Cloth, 1, 0), Item.silk, Item.silk, Item.silk, Item.silk, Item.silk); GameRegistry.addRecipe(new ItemStack(ResearchBook, 1), "G G"," B ","G G", Character.valueOf('B'), Item.book, Character.valueOf('G'), Item.ingotGold); LanguageRegistry.addName(Cloth, "Cloth"); LanguageRegistry.addName(ResearchBook, "Research Book"); LanguageRegistry.instance().addStringLocalization("itemGroup.tabCWM","Cyphereion's World of Magic"); proxy.registerRenderersThings(); } @PostInit public void postInit(){ configFile = proxy.initConfigs(); } } Here's Why: Originally, you were constructing Items using the default values of the variable (256 i think). Then after the Item was created, you were setting the variables to their proper values. Remember, Java reads code from top to bottom Also, why are you still using @PreInit, @PostInit, @Init, ect.? They are depreciated. Change the @Init annotations to @EventHandler.
-
Do you have screenshots? And is your mod open source? And if so, can I please see the link?
-
[1.6.2] [SOLVED] Gui textures are not working
mrkirby153 replied to mrkirby153's topic in Modder Support
Actually, it's working now. MscHouses was capitalized and it should've been mschouses. Anyways, thank you for trying to help! -
[still unsolved]where to place texture
mrkirby153 replied to buster_the_dog's topic in Modder Support
What is the folder structure inside the zip/jar? -
[1.6.2] [SOLVED] Gui textures are not working
mrkirby153 replied to mrkirby153's topic in Modder Support
How does this solve my problem though? All the textures are not working -
[1.6.2] [SOLVED] Gui textures are not working
mrkirby153 replied to mrkirby153's topic in Modder Support
Actually, ALL the textures are not showing up. My Item resource location is "mschouses:ITEMNAME" My Block resource location is "mschouses:BLOCKNAME" My Gui resource location is "mschouses", "/textures/gui/BlockBase.png" The error it shows in the console is: -
Try adding this.setUnlocalizedName(NAMEHERE) to both the book and cloth constructors. Also, do you know what would be really cool? If you somehow used the enchanting font kinda like thaumcraft
-
Code? (Of ItemCloth and ItemBook)
-
Define "Overwrite". Is one but not the other showing up? Are the names the same? Also, why would you store if something is researched in the config file? You know that the config file is global right? Edit: Are the configuration settings in the config file overwriting each other?
-
[1.6.2] [SOLVED] Gui textures are not working
mrkirby153 replied to mrkirby153's topic in Modder Support
But what about the GUI? The folder IS lowercase and it STILL doesn't work -
[1.6.2] [SOLVED] Gui textures are not working
mrkirby153 replied to mrkirby153's topic in Modder Support
AND the file names? -
[1.6.2] [SOLVED] Gui textures are not working
mrkirby153 replied to mrkirby153's topic in Modder Support
Sure, here's my source http://github.com/mrkirby153/MscHouses/