public function getDrops(Item $item) { if ($item->isPickaxe()) { return [$this->id, 0, 1]; } return []; }
public function getDrops(Item $item) { if ($item->isPickaxe() >= Tool::TIER_DIAMOND) { return [[Item::OBSIDIAN, 0, 1]]; } else { return []; } }
public function getDrops(Item $item) { if ($item->isPickaxe() >= Tool::TIER_IRON) { return [[Item::GOLD_ORE, 0, 1]]; } else { return []; } }
public function getDrops(Item $item) { if ($item->isPickaxe() >= Tool::TIER_WOODEN) { return [[$this->getDamage() === 0 ? Item::COBBLESTONE : Item::STONE, $this->getDamage(), 1]]; } else { return []; } }
public function getDrops(Item $item) { if ($item->isPickaxe() >= Tool::TIER_WOODEN) { return [[Item::STONE_BRICKS, $this->meta & 0x3, 1]]; } else { return []; } }
public function getDrops(Item $item) { if ($item->isPickaxe() >= Tool::TIER_WOODEN) { return [[$this->id, $this->meta, 1]]; } else { return []; } }
public function getDrops(Item $item) { if ($item->isPickaxe() >= Tool::TIER_WOODEN) { return [[Item::COAL, 0, 1]]; } else { return []; } }
public function getDrops(Item $item) { $drops = []; if ($item->isPickaxe() >= Tool::TIER_WOODEN) { $drops[] = [Item::BREWING_STAND, 0, 1]; } return $drops; }
public function getDrops(Item $item) { if ($item->isPickaxe() >= Tool::TIER_STONE) { return [[Item::LAPIS_BLOCK, 0, 1]]; } else { return []; } }
public function getDrops(Item $item) { if ($item->isPickaxe() >= Tool::TIER_GOLD) { return [[Item::REDSTONE_DUST, 0, mt_rand(4, 5)]]; } else { return []; } }
public function getDrops(Item $item) { if ($item->isPickaxe() >= Tool::TIER_WOODEN) { return [[Item::QUARTZ_BLOCK, $this->meta & 0x3, 1]]; } else { return []; } }
public function getDrops(Item $item) { if ($item->isPickaxe() >= Tool::TIER_STONE) { return [[Item::DYE, 4, mt_rand(4, 8)]]; } else { return []; } }
public function getDrops(Item $item) { if ($item->isPickaxe() >= Tool::TIER_WOODEN) { return [[Item::SLAB, $this->meta & 0x7, 2]]; } else { return []; } }
public function getDrops(Item $item) { $damage = $this->getDamage(); if ($item->isPickaxe() >= Tool::TIER_WOODEN) { if ($damage >= 0 && $damage <= 3) { //Anvil return [[$this->id, 0, 1]]; } elseif ($damage >= 4 && $damage <= 7) { //Slightly Anvil return [[$this->id, $this->meta & 0x4, 1]]; } elseif ($damage >= 8 && $damage <= 11) { //Very Damaged Anvil return [[$this->id, $this->meta & 0x8, 1]]; } } else { return []; } }
public function getDrops(Item $item) { $drops = []; if ($item->isPickaxe() >= 1) { $drops[] = [Item::FURNACE, 0, 1]; } return $drops; }