
For example, mining stone with your hand now drops nothing, and mining leaves with shears will drop the leaves.
33 lines
929 B
C#
33 lines
929 B
C#
using System;
|
|
using TrueCraft.API.Logic;
|
|
using TrueCraft.API;
|
|
|
|
namespace TrueCraft.Core.Logic.Blocks
|
|
{
|
|
public class MonsterSpawnerBlock : BlockProvider
|
|
{
|
|
public static readonly byte BlockID = 0x34;
|
|
|
|
public override byte ID { get { return 0x34; } }
|
|
|
|
public override double BlastResistance { get { return 25; } }
|
|
|
|
public override double Hardness { get { return 5; } }
|
|
|
|
public override byte Luminance { get { return 0; } }
|
|
|
|
public override bool Opaque { get { return false; } }
|
|
|
|
public override string DisplayName { get { return "Monster Spawner"; } }
|
|
|
|
public override Tuple<int, int> GetTextureMap(byte metadata)
|
|
{
|
|
return new Tuple<int, int>(1, 4);
|
|
}
|
|
|
|
protected override ItemStack[] GetDrop(BlockDescriptor descriptor, ItemStack item)
|
|
{
|
|
return new ItemStack[0];
|
|
}
|
|
}
|
|
} |