samhalo007 Posted November 14, 2012 Posted November 14, 2012 Hi! First sorry for my bad English... Well, my problem is that I modding with Forge for 1.4.2 but my new blocks don't show in the Creative Mod... And the GameRegistry.addName too... So I can't make my mod !!! Please help me ! Quote
DarkGuardsman Posted November 15, 2012 Posted November 15, 2012 you need to set the creative tab for your block then add it to the creative list. Use this as an example https://github.com/DarkGuardsman/BasicUtilities/blob/master/common/dark/BasicUtilities/ItemParts.java You want this.setCreativeTab(CreativeTabs.tabMaterials); and this, though it might be diffrent for Block.class @Override public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List) { par3List.add(new ItemStack(this, 1, meta)); } Quote http://i577.photobucket.com/albums/ss215/bobstrong/ModBannerMed.png[/img]
samhalo007 Posted November 15, 2012 Author Posted November 15, 2012 The problem is that ALL the GameRegistry that I did like the GameRegistry.registerBlock, the LanguageRegistry.addName, and the GameRegistry.addRecipe does not work ! I have a serious problem because it's for a server... (I'll all put that on Bukkit...) Quote
DarkGuardsman Posted November 16, 2012 Posted November 16, 2012 The problem is that ALL the GameRegistry that I did like the GameRegistry.registerBlock, the LanguageRegistry.addName, and the GameRegistry.addRecipe does not work ! I have a serious problem because it's for a server... (I'll all put that on Bukkit...) hmm might want to link your code using paste bin or github so i can try to help your future. However, by the sound of it you messed up your main class file. Might want to use forge tuts to check your code over. Quote http://i577.photobucket.com/albums/ss215/bobstrong/ModBannerMed.png[/img]
samhalo007 Posted November 16, 2012 Author Posted November 16, 2012 H MY God ! I was'nt using the good method for the preinit so all was crashing! but thank you for taking time to reply me ! Quote
Recommended Posts
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.