Custom Code Tutorials Lite Edition ( All In One Creative Tab )

Started by Wes on Sun, 02/15/2015 - 15:52
Last seen on 17:22, 20. May 2018
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
Custom Code Tutorials Lite Edition ( All In One Creative Tab )
Sun, 02/15/2015 - 15:54 (edited)

Ok Ok OK Im Out Of time so I Will Make Some Lite Tutorials 
This time is about Adding Food Tool Armor And other things to Creative Tab 

So Let's Start From Armor :)

Steps:
Open Your Armor Code (I Will Use Omega Armor)

Find Line 133
You will Find Something Like this
helmet.setCreativeTab(creativetab_combatTab.tab); Or Different What Ever

(Include Picture)
https://copy.com/thumbs/Tutoriale/Creative%20Tabs/Tabs.png?size=1024&re…

Red Box Shows Name Of Creative Tab You can Put what ever you won Wait What ???
you chave to put your creative tab name if you don't know what is your tab name so
go to Any Item code that is in your Custom Tab And Copy this tab here ---> (mcreator_MyTab.tab);

Ok Thats All About Tabs

Now Combat And Tools

Q: Why I Will Not gona Separate Tools And Swords to 2 Different Sctions in tutorial ?
A: There Is No Difference Between Sword And tool They Bouth Are Created By same code
 

Lets Start This  Go On Bottom of your Tool/Sword BTW Sword Is Still an tool 
and find this Line
 

}).setUnlocalizedName("HellHoe") .setTextureName("RedGem_hoe");
Item.itemRegistry.addObject(473, "HellHoe", block);


Ok 

Q: Why I Need This Texture Line ??
A: Code Will Crash If you will not Do in this Way

Ok Now Compare Code Below To Code Above
 

}).setUnlocalizedName("HellHoe").setTextureName ("RedGem_hoe").setCreativeTab(mcreator_omegaTab.tab); Item.itemRegistry.addObject(473, "HellHoe", block);


As I Say It Has to be In That Way :P

Ok Now Food 

Food Is Similar to Tool's But It Has Longer Code So I Will Not Gona Make Any Picture About This
There is No Use for It I Will Just Give The Code That You Need to Find 
and add the Tab Line 

I Will Mark Tab Line In This Code

Code Starts on Line 111 to 114 Withour Any Special Effects And Events
 

static{ block = (Item)(new BlockCustomFood(6, 0.3F, true));block = ((BlockCustomFood)block) .setUnlocalizedName("CookedFlesh") .setTextureName("cooked_flesh") .setCreativeTab(mcreator_omegaTab.tab); block.setMaxStackSize(64); Item.itemRegistry.addObject(467, "CookedFlesh", block); }     Thats All

and I WIll Re-Make Tutorial About Flying Armor Or Just Simply Make An Video About it

Good Luck In Mod Making        



 

 

Edited by Wes on Sun, 02/15/2015 - 15:54
Last seen on 21:04, 22. Feb 2018
Joined Nov 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
That is So Awesome! Thanks
Sun, 02/15/2015 - 17:28

That is So Awesome! Thanks for The Tutorial! Great Job!

Last seen on 17:22, 20. May 2018
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
RE:@Wes hey check this out, I
Mon, 02/16/2015 - 17:20

@#2 Thanks :)
BTW where I have to Post My tutorials do i have to move it to User side tutorials
or can stay here ?

Last seen on 20:39, 17. Mar 2017
Joined Feb 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Awesome this helped me! Great
Sat, 03/07/2015 - 21:43

Awesome this helped me! Great tutorial Wes! Keep it up. :D