public function getDrops(Item $item, Player $player) { if ($item->isPickaxe() >= 5) { return array(array(OBSIDIAN, 0, 1)); } else { return array(); } }
public function getDrops(Item $item, Player $player) { if ($item->isPickaxe() >= 1) { return array(array(SLAB, $this->meta & 0x7, 2)); } else { return array(); } }
public function getDrops(Item $item, Player $player) { if ($item->isPickaxe() >= 1) { return array(array(COBBLESTONE, 0, 1)); } else { return array(); } }
public function getDrops(Item $item, Player $player) { if ($item->isPickaxe() >= 4) { return array(array(REDSTONE_DUST, 0, mt_rand(4, 5))); } else { return array(); } }
public function getDrops(Item $item, Player $player) { if ($item->isPickaxe() >= 1) { return array(array(NETHER_BRICKS, 0, 1)); } else { return array(); } }
public function getDrops(Item $item, Player $player) { if ($item->isPickaxe() >= 4) { return array(array(GOLD_ORE, 0, 1)); } else { return array(); } }
public function getDrops(Item $item, Player $player) { if ($item->isPickaxe() >= 1) { return array(array(STONE_BRICKS, $this->meta & 0x3, 1)); } else { return array(); } }
public function getDrops(Item $item, Player $player) { if ($item->isPickaxe() >= 1) { return array(array(IRON_DOOR, 0, 1)); } else { return array(); } }
public function getDrops(Item $item, Player $player) { if ($item->isPickaxe() >= 4) { return array(array(DIAMOND_BLOCK, 0, 1)); } else { return array(); } }
public function getDrops(Item $item, Player $player) { if ($item->isPickaxe() >= 3) { return array(array(DYE, 4, mt_rand(4, 8))); } else { return array(); } }
public function getDrops(Item $item, Player $player) { if ($item->isPickaxe() >= 1) { return array(array(QUARTZ_BLOCK, $this->meta & 0x3, 1)); } else { return array(); } }
public function getDrops(Item $item, Player $player) { $drops = array(); if ($item->isPickaxe() >= 1) { $drops[] = array(FURNACE, 0, 1); } $t = ServerAPI::request()->api->tile->get($this); if ($t !== false and $t->class === TILE_FURNACE) { for ($s = 0; $s < FURNACE_SLOTS; ++$s) { $slot = $t->getSlot($s); if ($slot->getID() > AIR and $slot->count > 0) { $drops[] = array($slot->getID(), $slot->getMetadata(), $slot->count); } } } return $drops; }
public function getBreakTime(Item $item, Player $player) { if (($player->gamemode & 0x1) === 0x1) { return 0.2; } switch ($item->isPickaxe()) { case 5: return 0.1; case 4: return 0.15; case 3: return 0.2; case 2: return 0.1; case 1: return 0.4; default: return 0.75; } }