Added hammer and imprint recipes

This commit is contained in:
Calclavia 2014-01-25 00:07:44 +08:00
parent de28fb85f6
commit f54f3652b5
4 changed files with 8 additions and 2 deletions

View file

@ -90,13 +90,13 @@ public class RecipeUtils
public boolean equals(Object obj)
{
if (obj instanceof OreDictResource)
{System.out.println(name +" VS " +((OreDictResource) obj).name);
{
return this.name.equals(((OreDictResource) obj).name);
}
if (obj instanceof ItemStackResource)
{
return this.name.equals(OreDictionary.getOreName(OreDictionary.getOreID(((ItemStackResource) obj).itemStack)));
return this.name.equals(OreDictionary.getOreName(OreDictionary.getOreID(((ItemStackResource) obj).itemStack)));
}
return false;

View file

@ -121,5 +121,8 @@ public class Archaic
GameRegistry.addRecipe(new ShapedOreRecipe(blockHotPlate, "SSS", "III", 'I', Item.ingotIron, 'S', Block.stone));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockHotPlate, 1, 1), "HHH", "WWW", 'H', new ItemStack(blockHotPlate, 1, 0), 'W', UniversalRecipe.WIRE.get()));
GameRegistry.addRecipe(new ShapedOreRecipe(itemImprint, "PPP", "PIP", "PPP", 'P', Item.paper, 'I', new ItemStack(Item.dyePowder, 0)));
GameRegistry.addRecipe(new ShapedOreRecipe(itemHammer, "CC ", "CS ", " S", 'C', Block.cobblestone, 'S', Item.stick));
}
}

View file

@ -24,6 +24,7 @@ public class ItemOreResource extends ItemRI
public ItemOreResource(int id, String name)
{
super(name, id);
setHasSubtypes(true);
}
@Override

View file

@ -63,6 +63,8 @@ public class BlockGrinderWheel extends BlockRIRotatable implements ITileEntityPr
{
entity.setPosition(entity.posX, entity.posY - 1.2, entity.posZ);
}
((EntityItem) entity).age--;
}
else
{