public override bool GetDrop(ToolItem tool, out Slot[] drop) { drop = new Slot[0]; if (tool is ShovelItem) drop = new[] { new Slot((ushort)new SnowballItem(), 1) }; return tool is ShovelItem; }
public override bool GetDrop(ToolItem tool, out ItemStack[] drop) { drop = new ItemStack[0]; if (tool is ShovelItem) drop = new[] { new ItemStack(new SnowballItem(), 1) }; return tool is ShovelItem; }
public override bool CanHarvest(ToolItem tool) { return tool is PickaxeItem && (tool.ToolMaterial == ToolMaterial.Iron || tool.ToolMaterial == ToolMaterial.Gold || tool.ToolMaterial == ToolMaterial.Diamond); }
public override bool GetDrop(ToolItem tool, out ItemStack[] drop) { if (Metadata >= 3) drop = new[] { new ItemStack(new NetherWartItem(), (sbyte)MathHelper.Random.Next(2, 4)) }; else drop = new[] { new ItemStack(new NetherWartItem()) }; return true; }
public override bool GetDrop(ToolItem tool, out ItemStack[] drops) { if (Metadata == 7) drops = new[] { new ItemStack(new CarrotItem(), (sbyte)MathHelper.Random.Next(1, 4)) }; else drops = new[] { new ItemStack(new CarrotItem()) }; return true; }
public override bool GetDrop(ToolItem tool, out ItemStack[] drop) { if (Metadata != 7) drop = new[] { new ItemStack(new SeedsItem(), 1) }; else drop = new[] { new ItemStack(new WheatItem(), 1), new ItemStack(new SeedsItem(), (sbyte)MathHelper.Random.Next(1, 4)) }; return true; }
public override bool GetDrop(ToolItem tool, out ItemStack[] drop) { if (Size != CocoaPlantSize.Large) drop = new[] { new ItemStack(new DyeItem(), 1, (short)DyeItem.DyeType.CocoaBeans) }; else drop = new[] { new ItemStack(new DyeItem(), 3, (short)DyeItem.DyeType.CocoaBeans) }; return true; }
public override bool GetDrop(ToolItem tool, out Slot[] drop) { drop = new[] { new Slot((ushort)new RedstoneItem(), (byte)DataUtility.Random.Next(4, 5)) }; return tool is PickaxeItem && (tool.ToolMaterial == ToolMaterial.Iron || tool.ToolMaterial == ToolMaterial.Gold || tool.ToolMaterial == ToolMaterial.Diamond); }
public override bool GetDrop(ToolItem tool, out Slot[] drop) { drop = new[] { new Slot(new RedstoneItem(), (sbyte)MathHelper.Random.Next(4, 5)) }; return tool is PickaxeItem && (tool.ToolMaterial == ToolMaterial.Iron || tool.ToolMaterial == ToolMaterial.Gold || tool.ToolMaterial == ToolMaterial.Diamond); }
public override bool GetDrop(ToolItem tool, out Slot[] drop) { if ((Metadata & 0xC) <= 4) drop = new[] { new Slot((ushort)new CocoaBeanItem(), 1) }; else drop = new[] { new Slot((ushort)new CocoaBeanItem(), 3) }; return true; }
public override bool GetDrop(ToolItem tool, out Slot[] drop) { if (DataUtility.Random.Next(10) == 0) { drop = new[] { new Slot((ushort)new FlintItem(), 1) }; return true; } return base.GetDrop(tool, out drop); }
public override bool GetDrop(ToolItem tool, out ItemStack[] drop) { if (MathHelper.Random.Next(10) == 0) { drop = new[] { new ItemStack(new FlintItem(), 1) }; return true; } return base.GetDrop(tool, out drop); }
public override bool GetDrop(ToolItem tool, out Slot[] drop) { if (DataUtility.Random.Next(100) == 0) { drop = new[] { new Slot((ushort)new PotatoItem(), (byte)DataUtility.Random.Next(1, 4)), new Slot((ushort)new PoisonousPotatoItem(), 1) }; } else { drop = new[] { new Slot((ushort)new PotatoItem(), (byte)DataUtility.Random.Next(1, 4)) }; } return true; }
public override bool GetDrop(ToolItem tool, out Slot[] drop) { if (MathHelper.Random.Next(100) == 0) { drop = new[] { new Slot(new PotatoItem(), (sbyte)MathHelper.Random.Next(1, 4)), new Slot(new PoisonousPotatoItem(), 1) }; } else { drop = new[] { new Slot(new PotatoItem(), (sbyte)MathHelper.Random.Next(1, 4)) }; } return true; }
public override bool GetDrop(ToolItem tool, out ItemStack[] drop) { if (Metadata == 7) { if (MathHelper.Random.Next(100) == 0) { drop = new[] { new ItemStack(new PotatoItem(), (sbyte)MathHelper.Random.Next(1, 4)), new ItemStack(new PoisonousPotatoItem(), 1) }; } else drop = new[] { new ItemStack(new PotatoItem(), (sbyte)MathHelper.Random.Next(1, 4)) }; } else drop = new[] { new ItemStack(new PotatoItem()) }; return true; }
public override bool GetDrop(ToolItem tool, out ItemStack[] drop) { drop = new[] { new ItemStack(new SugarCanesItem(), 1) }; return true; }
public override bool CanHarvest(ToolItem tool) { return tool is DiamondPickaxeItem; }
public override bool GetDrop(ToolItem tool, out Slot[] drop) { drop = new[] { new Slot(new StringItem(), 1) }; return true; }
public override bool GetDrop(ToolItem tool, out ItemStack[] drop) { drop = new[] { new ItemStack(new DirtBlock(), 1) }; return true; }
public override bool GetDrop(ToolItem tool, out Slot[] drop) { drop = new[] { new Slot((ushort)new RedstoneItem(), 1) }; return true; }
public override bool GetDrop(ToolItem tool, out ItemStack[] drop) { drop = new[] { new ItemStack(new PumpkinSeedsItem(), 1) }; return true; }
public override bool GetDrop(ToolItem tool, out Slot[] drop) { drop = new[] { new Slot((ushort)new SeedsItem(), 1) }; return DataUtility.Random.Next(0, 5) == 0; // TODO: Find exact value }
public virtual bool CanHarvest(ToolItem tool) { if (Hardness == -1) return false; return true; }
public override bool GetDrop(ToolItem tool, out Slot[] drop) { drop = new[] { new Slot(new RedstoneTorchActiveBlock(), 1) }; return true; }
public override bool GetDrop(ToolItem tool, out Slot[] drop) { drop = new[] { new Slot(new GlowstoneDustItem(), (sbyte)MathHelper.Random.Next(2, 4)) }; return true; }
public override bool GetDrop(ToolItem tool, out Slot[] drop) { drop = new[] { new Slot((ushort)new DirtBlock(), 1) }; return true; }
public override bool GetDrop(ToolItem tool, out Slot[] drops) { drops = new[] { new Slot((ushort)new BookItem(), 3) }; return true; }
public override bool GetDrop(ToolItem tool, out ItemStack[] drop) { drop = new[] { new ItemStack(new NetherQuartzItem()) }; return tool is PickaxeItem; }
public override bool CanHarvest(ToolItem tool) { return false; }
public virtual bool GetDrop(ToolItem tool, out ItemStack[] drop) { drop = new[] { new ItemStack(this.Id, 1, this.Metadata) }; return CanHarvest(tool); }