Item Drop

This commit is contained in:
Shoghi Cervantes Pueyo
2013-01-05 15:17:57 +01:00
parent c2a45212dd
commit 9ebe68294b
5 changed files with 30 additions and 6 deletions

View File

@@ -373,6 +373,9 @@ class Player{
$this->entity->setHealth(20, "respawn");
$this->entity->setPosition($data["x"], $data["y"], $data["z"], 0, 0);
break;
case MC_DROP_ITEM:
$this->server->api->block->drop($this->entity->x, $this->entity->y, $this->entity->z, $data["block"], $data["meta"], $data["stack"]);
break;
}
break;