paintings are separated from Entity.php, removed Moved too Quickly warning, small fixes with commands

This commit is contained in:
GameHerobrine 2022-07-12 03:22:06 +03:00
parent 218dd4ffa4
commit af79b29f26
7 changed files with 49 additions and 28 deletions

View file

@ -20,10 +20,17 @@
*/
class BucketItem extends Item{
private static $possiblenames = array(
0 => "Bucket",
1 => "Milk Bucket",
8 => "Water Bucket",
10 => "Lava Bucket"
);
public function __construct($meta = 0, $count = 1){
parent::__construct(BUCKET, $meta, $count, "Bucket");
$this->isActivable = true;
$this->maxStackSize = 1;
$this->name = BucketItem::$possiblenames[$this->meta];
}
public function onActivate(Level $level, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){