Added hammer and imprint recipes
This commit is contained in:
parent
de28fb85f6
commit
f54f3652b5
4 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@ public class ItemOreResource extends ItemRI
|
|||
public ItemOreResource(int id, String name)
|
||||
{
|
||||
super(name, id);
|
||||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue