Reduced random range

This commit is contained in:
Shoghi Cervantes 2013-08-30 17:51:12 +02:00
parent 5395f15fe7
commit 84deac3ef7

View File

@ -121,9 +121,9 @@ class EntityAPI{
return; return;
} }
$data = array( $data = array(
"x" => $pos->x + mt_rand(-10, 10) / 10, "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) / 10, "z" => $pos->z + mt_rand(-10, 10) / 50,
//"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,