local entity ids

This commit is contained in:
GameHerobrine 2025-06-28 22:32:47 +03:00
parent 1ea54bc95b
commit 565a9420fd
13 changed files with 179 additions and 51 deletions

View file

@ -262,6 +262,7 @@ class Arrow extends Entity{
public function spawn($player){
if($this->type === OBJECT_ARROW){
$player->addEntity($this);
$pk = new AddEntityPacket;
$pk->eid = $this->eid;
$pk->type = $this->type;

View file

@ -21,6 +21,7 @@ class FallingSand extends Entity{
}
public function spawn($player)
{
$player->addEntity($this);
$pk = new AddEntityPacket();
$pk->eid = $this->eid;
$pk->type = $this->type;

View file

@ -44,6 +44,7 @@ class ItemEntity extends Entity{
public function spawn($player)
{
$player->addEntity($this);
$pk = new AddItemEntityPacket();
$pk->eid = $this->eid;
$pk->x = $this->x;

View file

@ -427,6 +427,7 @@ class Minecart extends Vehicle{
}
public function spawn($player){
$player->addEntity($this);
$pk = new AddEntityPacket;
$pk->eid = $this->eid;
$pk->type = $this->type;

View file

@ -198,6 +198,7 @@ class Painting extends Entity{
}
public function spawn($player){
$player->addEntity($this);
$pk = new AddPaintingPacket;
$pk->eid = $this->eid;
$pk->x = (int) $this->xPos;

View file

@ -66,6 +66,7 @@ class PrimedTNT extends Entity{
}
public function spawn($player){
$player->addEntity($this);
$pk = new AddEntityPacket;
$pk->eid = $this->eid;
$pk->type = $this->type;