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.
2015-02-01 18:53:10 -07:00

32 lines
880 B
C#

using System;
using TrueCraft.API.Logic;
using TrueCraft.API;
using TrueCraft.API.World;
namespace TrueCraft.Core.Logic.Blocks
{
public class GrassBlock : BlockProvider
{
public static readonly byte BlockID = 0x02;
public override byte ID { get { return 0x02; } }
public override double BlastResistance { get { return 3; } }
public override double Hardness { get { return 0.6; } }
public override byte Luminance { get { return 0; } }
public override string DisplayName { get { return "Grass"; } }
public override Tuple<int, int> GetTextureMap(byte metadata)
{
return new Tuple<int, int>(3, 0);
}
protected override ItemStack[] GetDrop(BlockDescriptor descriptor)
{
return new[] { new ItemStack(DirtBlock.BlockID, 1) };
}
}
}