Added Tool for Items, new items

This commit is contained in:
Shoghi Cervantes
2014-04-02 04:26:53 +02:00
parent ee23b42e23
commit 9a5ffbe56c
29 changed files with 788 additions and 145 deletions

View File

@ -27,11 +27,10 @@ use pocketmine\block\Solid;
use pocketmine\level\Level;
use pocketmine\Player;
class FlintSteel extends Item{
class FlintSteel extends Tool{
public function __construct($meta = 0, $count = 1){
parent::__construct(self::FLINT_STEEL, $meta, $count, "Flint and Steel");
$this->isActivable = true;
$this->maxStackSize = 1;
}
public function onActivate(Level $level, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){