This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
Drew DeVault f687a22531 Implement all crafting recipes (except for wool)
Because I am really, really out of patience
2015-02-08 00:05:00 -07:00

57 lines
1.4 KiB
C#

using System;
using TrueCraft.API.Logic;
using TrueCraft.API;
using TrueCraft.Core.Logic.Items;
namespace TrueCraft.Core.Logic.Blocks
{
public class TorchBlock : BlockProvider, ICraftingRecipe
{
public static readonly byte BlockID = 0x32;
public override byte ID { get { return 0x32; } }
public override double BlastResistance { get { return 0; } }
public override double Hardness { get { return 0; } }
public override byte Luminance { get { return 13; } }
public override bool Opaque { get { return false; } }
public override string DisplayName { get { return "Torch"; } }
public override Tuple<int, int> GetTextureMap(byte metadata)
{
return new Tuple<int, int>(0, 5);
}
public ItemStack[,] Pattern
{
get
{
return new[,]
{
{ new ItemStack(CoalItem.ItemID) },
{ new ItemStack(StickItem.ItemID) }
};
}
}
public ItemStack Output
{
get
{
return new ItemStack(TorchBlock.BlockID, 1);
}
}
public bool SignificantMetadata
{
get
{
return false;
}
}
}
}