mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-07 02:21:46 +00:00
Random pos on item drop
This commit is contained in:
parent
82c655c09a
commit
399f9b808b
@ -121,9 +121,9 @@ class EntityAPI{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$data = array(
|
$data = array(
|
||||||
"x" => $pos->x,
|
"x" => $pos->x + mt_rand(-10, 10) / 10,
|
||||||
"y" => $pos->y + 0.19,
|
"y" => $pos->y + 0.19,
|
||||||
"z" => $pos->z,
|
"z" => $pos->z + mt_rand(-10, 10) / 10,
|
||||||
//"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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user