Exemplo n.º 1
0
 public override bool CanHarvest(Items.ToolItem tool)
 {
     return(tool is PickaxeItem &&
            (tool.ToolMaterial == ToolMaterial.Iron ||
             tool.ToolMaterial == ToolMaterial.Gold ||
             tool.ToolMaterial == ToolMaterial.Diamond));
 }
Exemplo n.º 2
0
 public override bool CanHarvest(Items.ToolItem tool)
 {
     return(false);
 }
Exemplo n.º 3
0
 public override bool CanHarvest(Items.ToolItem tool)
 {
     return(tool is PickaxeItem || tool is AxeItem);
 }
Exemplo n.º 4
0
 public override bool GetDrop(Items.ToolItem tool, out ItemStack[] drop)
 {
     drop = new[] { new ItemStack(new DirtBlock(), 1) };
     return(true);
 }
Exemplo n.º 5
0
 public override bool GetDrop(Items.ToolItem tool, out ItemStack[] drop)
 {
     drop = new[] { new ItemStack(new ClayItem(), 4) };
     return(true);
 }