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

5 posts / 0 new
Last post
Wes
Wes's picture
Offline
Last seen: 3 months 1 day ago
Joined: 04/26/2014 - 16:35
Gems: 3
Custom Code Tutorials Lite Edition ( All In One Creative Tab )

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&rev...

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 02/15/2015 - 16:54


TheFallenEmpire's picture
Offline
Last seen: 10 months 2 weeks ago
Joined: 11/21/2014 - 01:39
Gems: -1
That is So Awesome! Thanks

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

xXMCXx's picture
Offline
Last seen: 6 days 3 hours ago
Joined: 12/27/2013 - 21:01
Gems: 378
@Wes hey check this out, I

@Wes hey check this out, I have officially made a wiki page for you and other peoples tutorials. http://wiki.mcreator.pylo.co/index.php?title=UserTutorials

Wes
Wes's picture
Offline
Last seen: 3 months 1 day ago
Joined: 04/26/2014 - 16:35
Gems: 3
RE:@Wes hey check this out, I

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

Offline
Last seen: 2 months 1 week ago
Joined: 02/24/2015 - 19:32
Gems: 0
Awesome this helped me! Great

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