Recipes for mundane things that Mojang has declared "treasure"

This commit is contained in:
Emmanuel BENOîT 2016-07-21 19:37:06 +02:00
parent 6165651b51
commit 48017ecc30
3 changed files with 68 additions and 1 deletions

View file

@ -45,7 +45,6 @@ tech.base No Alloy furnace
tech.base No Coke oven
tech.base No Metal recycler / advanced furnace
tech.base No Workbench
Support for remaining recipe types BF
Allow clicking ingredients to get their recipe BF
-------------------------------------------------------------------------------------------------------
tech.tools No Pan (for e.g. panning gold)

View file

@ -8,6 +8,7 @@ import mmm.MmmPlants;
import mmm.MmmTech;
import mmm.MmmWorld;
import mmm.recipes.RCraftingWrappers;
import mmm.recipes.RExtraRecipes;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
@ -20,6 +21,7 @@ public class CProxyCommon
public void preInit( final FMLPreInitializationEvent event )
{
RCraftingWrappers.preInit( );
CRegistry.addRegistrar( new RExtraRecipes( ) );
CAccessors.preInit( );
MmmPlants.preInit( );

View file

@ -0,0 +1,66 @@
package mmm.recipes;
import mmm.core.api.I_RecipeRegistrar;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.EnumDyeColor;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.registry.GameRegistry;
public class RExtraRecipes
implements I_RecipeRegistrar
{
// I don't need a pretext to go adventuring, and neither does my kid (actually, it's more like
// "nah, not going caving today, too tired... please?"), so fuck you and your "but it encourages
// adventuring!" BS.
//
// ...
//
// Sorry, this just annoys me.
@Override
public void registerRecipes( )
{
// "I can make pistons but not saddles because fuck you"
// ... Well, no. Fuck *you*.
GameRegistry.addShapedRecipe( new ItemStack( Items.SADDLE ) , //
"LLL" , //
"SLS" , //
"ILI" , //
'L' , new ItemStack( Items.LEATHER ) , //
'S' , new ItemStack( Items.STRING ) , //
'I' , new ItemStack( Items.IRON_INGOT ) );
// "Oh God, name tags are so hard to make!!!111one one one"
GameRegistry.addShapelessRecipe( new ItemStack( Items.NAME_TAG ) , //
Items.PAPER , Items.PAPER , Items.PAPER , Items.STRING , Items.FEATHER ,
new ItemStack( Items.DYE , 1 , EnumDyeColor.BLACK.getDyeDamage( ) ) );
// "Holse amor? IMPOSSIBRU!"
GameRegistry.addShapedRecipe( new ItemStack( Items.IRON_HORSE_ARMOR ) , //
"LBL" , "LBL" , "LBL" , //
'L' , Items.LEATHER , //
'B' , Blocks.IRON_BLOCK );
GameRegistry.addShapedRecipe( new ItemStack( Items.GOLDEN_HORSE_ARMOR ) , //
"LBL" , "LBL" , "LBL" , //
'L' , Items.LEATHER , //
'B' , Blocks.GOLD_BLOCK );
GameRegistry.addShapedRecipe( new ItemStack( Items.DIAMOND_HORSE_ARMOR ) , //
"LBL" , "LBL" , "LBL" , //
'L' , Items.LEATHER , //
'B' , Blocks.DIAMOND_BLOCK );
// Low gain gravel -> flint recipe, because doing it manually is just so bloody annoying.
GameRegistry.addShapelessRecipe( new ItemStack( Items.FLINT ) , //
Blocks.GRAVEL , Blocks.GRAVEL , Blocks.GRAVEL , //
Blocks.GRAVEL , Blocks.GRAVEL , Blocks.GRAVEL , //
Blocks.GRAVEL , Blocks.GRAVEL , Blocks.GRAVEL );
// Spinning cobwebs into strings, because my enchanted diamond sword's durability hates you.
GameRegistry.addShapelessRecipe( new ItemStack( Items.STRING ) , Blocks.WEB );
}
}