mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
Level included in data for event item.drop
This commit is contained in:
parent
ec70dd476a
commit
49e5d930f1
@ -124,6 +124,7 @@ class EntityAPI{
|
|||||||
"x" => $pos->x + mt_rand(-10, 10) / 50,
|
"x" => $pos->x + mt_rand(-10, 10) / 50,
|
||||||
"y" => $pos->y + 0.19,
|
"y" => $pos->y + 0.19,
|
||||||
"z" => $pos->z + mt_rand(-10, 10) / 50,
|
"z" => $pos->z + mt_rand(-10, 10) / 50,
|
||||||
|
"level" => $pos->level,
|
||||||
//"speedX" => mt_rand(-3, 3) / 8,
|
//"speedX" => mt_rand(-3, 3) / 8,
|
||||||
"speedY" => mt_rand(5, 8) / 2,
|
"speedY" => mt_rand(5, 8) / 2,
|
||||||
//"speedZ" => mt_rand(-3, 3) / 8,
|
//"speedZ" => mt_rand(-3, 3) / 8,
|
||||||
@ -170,4 +171,4 @@ class EntityAPI{
|
|||||||
unset($entity);
|
unset($entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user