-
-
Save anonymous/f63dd1916f1a3c1f4274 to your computer and use it in GitHub Desktop.
This file contains 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 com.drunksmanknife.harshnature; | |
import com.drunksmanknife.harshnature.blocks.MaterialUnpunchableLogs; | |
import com.drunksmanknife.harshnature.init.HarshNatureBlocks; | |
import com.drunksmanknife.harshnature.init.HarshNatureItems; | |
import com.drunksmanknife.harshnature.proxy.CommonProxy; | |
import net.minecraft.init.Items; | |
import net.minecraft.item.ItemStack; | |
import net.minecraftforge.common.MinecraftForge; | |
import net.minecraftforge.event.world.BlockEvent; | |
import net.minecraftforge.fml.common.FMLCommonHandler; | |
import net.minecraftforge.fml.common.Mod; | |
import net.minecraftforge.fml.common.Mod.EventHandler; | |
import net.minecraftforge.fml.common.SidedProxy; | |
import net.minecraftforge.fml.common.event.FMLInitializationEvent; | |
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; | |
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; | |
import net.minecraftforge.fml.common.registry.GameRegistry; | |
@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION) | |
public class HarshNature { | |
public MaterialUnpunchableLogs materialUnpunchableLogs = new MaterialUnpunchableLogs(); | |
@SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) | |
public static CommonProxy proxy; | |
@EventHandler | |
public void preInit(FMLPreInitializationEvent event) | |
{ | |
MinecraftForge.EVENT_BUS.register(new HNEventHandler()); | |
HarshNatureBlocks.init(); | |
HarshNatureBlocks.register(); | |
HarshNatureItems.init(); | |
HarshNatureItems.register(); | |
} | |
@EventHandler | |
public void init(FMLInitializationEvent event) | |
{ | |
proxy.registerRenders(); | |
//Normal Recipe | |
GameRegistry.addRecipe(new ItemStack(HarshNatureItems.Grassmade, 2), //Create Grass Rope | |
"AA", | |
"AA", | |
'A', HarshNatureItems.Grassstem); | |
GameRegistry.addRecipe(new ItemStack(HarshNatureItems.Flintaxe, 1), //Create Grass Rope | |
"A ", | |
"X ", | |
'A', HarshNatureItems.Tied_Axehead, 'X', Items.stick); | |
//Shapeless recipe | |
GameRegistry.addShapelessRecipe(new ItemStack(Items.stick, 2), HarshNatureItems.Twigs); // Twig crafting | |
GameRegistry.addShapelessRecipe(new ItemStack(HarshNatureItems.Axehead, 1), HarshNatureItems.Small_Flint, Items.flint); // Flint axehead | |
GameRegistry.addShapelessRecipe(new ItemStack(HarshNatureItems.Tied_Axehead, 1), HarshNatureItems.Axehead, HarshNatureItems.Grassmade);// Tied Axehead | |
} | |
@EventHandler | |
public void postInit(FMLPostInitializationEvent event) | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment