Created
January 2, 2014 22:47
-
-
Save anonymous/8228598 to your computer and use it in GitHub Desktop.
My recipe for crafting coal into Black Dye (Ink Sacs)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mod.recipe; | |
import net.minecraft.item.ItemCoal; | |
import net.minecraft.item.ItemDye; | |
import net.minecraft.item.Item; | |
import net.minecraft.item.ItemStack; | |
import cpw.mods.fml.common.Mod; | |
import cpw.mods.fml.common.Mod.EventHandler; // used in 1.6.2 | |
import cpw.mods.fml.common.event.FMLInitializationEvent; | |
import cpw.mods.fml.common.event.FMLPostInitializationEvent; | |
import cpw.mods.fml.common.event.FMLPreInitializationEvent; | |
import cpw.mods.fml.common.network.NetworkMod; | |
import cpw.mods.fml.common.registry.GameRegistry; | |
//import cpw.mods.fml.common.Mod.PreInit; // used in 1.5.2 | |
//import cpw.mods.fml.common.Mod.Init; // used in 1.5.2 | |
//import cpw.mods.fml.common.Mod.PostInit; // used in 1.5.2 | |
@Mod( name = "newrec", version = "0.2.9", modid = "newrec") | |
@NetworkMod(clientSideRequired = true, serverSideRequired = true) | |
public class newrec | |
{ | |
{ | |
System.out.println("pre-preInit"); | |
} | |
// The instance of your mod that Forge uses. | |
@EventHandler | |
public void preInit(FMLPreInitializationEvent event) | |
{ | |
System.out.println("preInit"); | |
} | |
@EventHandler | |
public void load(FMLInitializationEvent event) | |
{ | |
GameRegistry.addShapelessRecipe(new ItemStack(net.minecraft.item.Item.dyePowder, 2, 0), new ItemStack(Item.coal)); | |
System.out.println("Load"); | |
} | |
@EventHandler | |
public void postInit(FMLPostInitializationEvent event) | |
{ | |
System.out.println("Post"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment