Created
October 10, 2015 17:55
-
-
Save tinkerstudent/e222f9efe019c274fc3e to your computer and use it in GitHub Desktop.
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 com.tinkeracademy.rvergis; | |
| import net.minecraft.init.Blocks; | |
| import net.minecraft.init.Items; | |
| import net.minecraft.item.ItemStack; | |
| import net.minecraftforge.common.DungeonHooks; | |
| import net.minecraftforge.fml.common.Mod; | |
| import net.minecraftforge.fml.common.Mod.EventHandler; | |
| import net.minecraftforge.fml.common.event.FMLInitializationEvent; | |
| import net.minecraftforge.fml.common.registry.GameRegistry; | |
| @Mod(modid = MyMod.MODID, version = MyMod.VERSION) | |
| public class MyMod | |
| { | |
| public static final String MODID = "rvergis_mymod"; | |
| public static final String VERSION = "1.0"; | |
| @EventHandler | |
| public void init(FMLInitializationEvent event) | |
| { | |
| GameRegistry.addShapedRecipe(new ItemStack(Items.apple), new Object[]{"XXX", "XXX", "XXX", 'X', Blocks.leaves}); | |
| GameRegistry.addShapedRecipe(new ItemStack(Items.arrow, 2), new Object[]{"XY", "Z ", 'X', Items.flint, 'Y', Blocks.leaves, 'Z', Items.stick}); | |
| GameRegistry.addShapelessRecipe(new ItemStack(Blocks.wool, 1, 10), Blocks.wool, new ItemStack(Items.dye, 1, 5)); | |
| GameRegistry.addShapelessRecipe(new ItemStack(Items.diamond, 64), Blocks.dirt); | |
| GameRegistry.addSmelting(Blocks.stone, new ItemStack(Blocks.stonebrick, 1), 2); | |
| GameRegistry.addSmelting(Blocks.dirt, new ItemStack(Items.gold_ingot, 1), 2); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment