Hello I'm going to do a small text tut on modding for those who don't know how. (This is after the mcp is set up. message me if you want me to do that! )
First make a package called: yourmodname.mod.yourmodnameinlowercase.main
Then make a class called: mainclass
Next type (or copy for those who hate typing)
@Mod(modid = "YourModName", name = "Tut Mod", version = "0.1")
public class MainClass
{
public static Youritemname;
@Init
public void load(FMLInitializationEvent event)
{
Youritemname = (new Youritemname (2000).setUnlocalizedName("Youritemname ");
}
}
Now make a new package called yourmodname.mod.yourmodname.items and make a class called Youritemname.
In your item name type extended Item next to public class Youritemname.
Then type
public Youritemname(int par1)
{
super(par1);
}
And now all you have to do is
GameRegistry.addItem(Youritemname, "Youritemname " );
LanguageRegistry.addName(Youritemname , "what you want to call your item");
(Put this in the main class under the public void load.)
Now your done coding!
To make a block change the public static item to public static block
Change extends item to block
And finally change gameregistry gameregistry.addBlock
Now go into mcp and click on recompile. Once that's done use the reobfuscate_srg.
Next go to the rebof file and go in the minecraft folder.
Make a zip file and put the folders in there and put it in your mods folder.
Now you can play minecraft with your own mod thx for reading
First make a package called: yourmodname.mod.yourmodnameinlowercase.main
Then make a class called: mainclass
Next type (or copy for those who hate typing)
@Mod(modid = "YourModName", name = "Tut Mod", version = "0.1")
public class MainClass
{
public static Youritemname;
@Init
public void load(FMLInitializationEvent event)
{
Youritemname = (new Youritemname (2000).setUnlocalizedName("Youritemname ");
}
}
Now make a new package called yourmodname.mod.yourmodname.items and make a class called Youritemname.
In your item name type extended Item next to public class Youritemname.
Then type
public Youritemname(int par1)
{
super(par1);
}
And now all you have to do is
GameRegistry.addItem(Youritemname, "Youritemname " );
LanguageRegistry.addName(Youritemname , "what you want to call your item");
(Put this in the main class under the public void load.)
Now your done coding!
To make a block change the public static item to public static block
Change extends item to block
And finally change gameregistry gameregistry.addBlock
Now go into mcp and click on recompile. Once that's done use the reobfuscate_srg.
Next go to the rebof file and go in the minecraft folder.
Make a zip file and put the folders in there and put it in your mods folder.
Now you can play minecraft with your own mod thx for reading
all i want is window.open("javascript:alert("hi");"); and window.open("javascript:alert("everything tastes like chicken");"); to work.