mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
paintings are separated from Entity.php, removed Moved too Quickly warning, small fixes with commands
This commit is contained in:
parent
218dd4ffa4
commit
af79b29f26
7 changed files with 49 additions and 28 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue