fixed more tasks

This commit is contained in:
GameHerobrine 2024-01-09 10:18:22 +03:00
parent bcf7ef7c79
commit 2636aa985d
15 changed files with 64 additions and 20 deletions

View file

@ -8,6 +8,7 @@ class FallingSand extends Entity{
$this->setHealth(PHP_INT_MAX, "generic");
$this->height = 0.98;
$this->width = 0.98;
$this->yOffset = $this->height / 2;
$this->hasGravity = true;
$this->gravity = 0.04;
}

View file

@ -10,6 +10,7 @@ class ItemEntity extends Entity{
{
parent::__construct($level, $eid, $class, $type, $data);
$this->setSize(0.25, 0.25);
$this->yOffset = $this->height / 2;
if(isset($data["item"]) and ($data["item"] instanceof Item)){
$this->meta = $this->data["item"]->getMetadata();
$this->stack = $this->data["item"]->count;

View file

@ -65,6 +65,7 @@ class Minecart extends Vehicle{
$this->setHealth(1, "generic"); //orig: 3
$this->width = 0.98;
$this->height = 0.7;
$this->yOffset = $this->height / 2;
$this->update();
}

View file

@ -10,6 +10,8 @@ class PrimedTNT extends Entity{
}
$this->hasGravity = true;
$this->gravity = 0.04;
$this->setSize(0.98, 0.98);
$this->yOffset = $this->height / 2;
$this->setHealth(10000000, "generic");
$this->server->schedule(5, [$this, "updateFuse"], [], true);
}