Making it into a jewel so this part is much more simple than randomly generating this it’s only if it’s only a couple lines of codes so uh yeah so first of all you want to um yes you want to go into your constructor and just make a it’s constructor Underneath the public mod sapphire block like i explained before um you want to make some room just for a couple lines of code just uh underneath here just put um just like just sapphire just to explain that we’re making uh we’re just making the smelting recipe so uh We’re gonna have to make a new item so after the ore smelts we can make a new item out of it so it’s almost the same thing just uh we want to start with modloader dot add name bracket sapphire and then comma uh we want to put it in uh That have breadth uh parentheses and put sapphire instead then we want to end the bracket and then semicolon after that we want to move down line and we want to put sapphire dot icon icon index oops icon should not have a capital only index should have a capital i and uh whoops You want to put a equal sign is equal to mod loader dot add override and uh um the only the override should have a capital o i’m gonna whoops i’m gonna make a mistake but um want to put a bracket and we want to put uh inside parentheses uh slash gui items Dot png then when then we want to end the end the parentheses put a comma and put another parenthesis and this time put in just sapphire dot png um then you want to end the bracket and semicolon uh i will not be showing the sapphire the Png one you you can make it on your own just take like for example the diamond diamond and then uh recolor it or you can uh take or you can just like use anything you want but just make sure you name it sapphire.png like just sapphire and make sure it’s in png Format so that’s pretty much all you have to do and then after that we want to put the smelting it’s just so it’s smelting compatible so we want to put a mod loader dot add smelting and then the a and s and add smelting should be capitalized then bracket space sapphire or dot Block block shouldn’t have a capital the id after it block id should the the id should have uh it should be capitalized both lighters if we want to put a comma new item stack bracket sapphire sorry about that um that was my pet and i guess my pet will be occasionally joining us Sorry about that but uh back to this now where was i oh yeah um yeah i just put new item stack um bracket sapphire then you want to just and just put two end brackets and then semicolon and yeah that’s pretty much it just two Rich just to uh register a new plug but now here comes the more tedious part now you want to open up a new file and just put a few lines or something like that and then you want to oops wanna save and this time you want to put just sapphire just put uh Yeah just put sapphire and just save it as a java java source file and yeah just save it now we’re going to be writing the code for this and it’s practically just the same thing like this as this except without all the fancy stuff it’s just literally just writing a simple code so You want to start off with package sorry if i’m jumping back and forth it’s just that i can’t remember all this so uh package net.minecraft dot src and then semicolon and after that you want to put import java.util set my colon skip down another few lines and put public class item Sapphire so that i and items should be capitalized extends item so this just literally tells that this is supposed to be noted as an item and then you want to go down one line put a curly bracket then you want to do it in indent or yeah ninden then you want to Put public item sapphire and here you put int i in two brackets then you want to go down one line and you want to do two indents put a curly bracket go down another line three ended and you want to put a three indents one two three And put super and then put a bracket and inside that bracket put i and then semicolon i’m not very sure why it’s super but uh it’s just how the code works so after that you want to put max stack size i don’t want to spell that wrong the s In both stack and size should be um capitalized and then you want to put equal to 64. then semicolon you want to go down and then two times whoops and the curly bracket then go down one more time and just end the whole process completely so That wasn’t too bad 12 lines this is just to tell what’s up the sapphire so we’re just gonna save this it’s just to tell what sapphire means over here so yeah that’s pretty much it so now we want to register that down here so um you want to go underneath the world World and put to two spaces and then you want to put um just put a comment here just saying for example uh just saying that these are the items and then you just end the comment and for other people if you don’t want to just delete it and you just want to Put a public static and you want to put a sapphire this is just to tell that this is an item sorry i paused this video right there um wow i was way off so after the world world we want to put a public static and then you want to put item Sapphire make sure that item that i is capitalized then you want to put is equal to bracket new item sapphire make sure sapphire is uh the s is capitalized and uh you want to put bracket mod loader dot get unique entity id and you want the u and unique to be Capitalized the e and entity to be capitalized and the i and id to be capitalized and then you want to put in a bracket an open bracket then you want to put three closing brackets after that one two three just to close all the brackets we made so after that you want To put dot set item name make sure the i and n in item name is capitalize this is not sending the item name this is just to this is this is not saying the item name up here the modloader.add name this is what really sets name so just uh in In this in this right here just put uh inside two brackets sapphire just with no capitals or anything just sapphire and then just close bracket then semicolon and yeah that’s pretty much it and uh whoops forgot one more thing so um underneath sapphire ore just put sapphire is equal to new item And make sure it says 20 and well this is just to say what number it is just like new block but this one’s just just a number so let’s say let’s make the number what year it is right now so 2011. so it’s just going to show up as like 2011 in there or some bigger number but after that we’ll put set item set item name and again you want this isn’t really saying the item name just put in sapphire and after that just put a semicolon um yeah that’s pretty much it just for randomly uh generating your Ore and uh for and for when you smelt the oreo become sapphire so uh yeah i think that’s pretty much it um this video has i guess gone long enough and uh next video i’ll be teaching you how to uh make tools after that just like Uh just like swords and pickaxes you get the idea yeah uh and in a future one i might make it so that uh the ore drops an item instead of just dropping the block uh yeah um hope you like this video and if so if some of you people out there noticed That i paused the video many many times it’s just me writing down some notes just for uh explaining this a bit better but um i know this wasn’t the best video but i hoped you enjoyed leave a comment and a rating thanks and uh bye for now Video Information
This video, titled ‘Minecraft Mod Tutorial Part 3-2 – Ore Generation’, was uploaded by RydanianGamer on 2011-08-13 18:24:30. It has garnered 484 views and 6 likes. The duration of the video is 00:10:49 or 649 seconds.
Hey everyone, this is a continuation on my Minecraft Mod Tutorial Series. In this part, I will be teaching you how to make a smelting recipe for a new item. Rate, Comment, and Subscribe!