mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
fixed more tasks
This commit is contained in:
parent
bcf7ef7c79
commit
2636aa985d
15 changed files with 64 additions and 20 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue