From 399f9b808b5625439237c1fb1e5043d17529c45c Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Fri, 30 Aug 2013 17:47:54 +0200 Subject: [PATCH] Random pos on item drop --- src/API/EntityAPI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/API/EntityAPI.php b/src/API/EntityAPI.php index 5f317ad6..90e571b7 100644 --- a/src/API/EntityAPI.php +++ b/src/API/EntityAPI.php @@ -121,9 +121,9 @@ class EntityAPI{ return; } $data = array( - "x" => $pos->x, + "x" => $pos->x + mt_rand(-10, 10) / 10, "y" => $pos->y + 0.19, - "z" => $pos->z, + "z" => $pos->z + mt_rand(-10, 10) / 10, //"speedX" => mt_rand(-3, 3) / 8, "speedY" => mt_rand(5, 8) / 2, //"speedZ" => mt_rand(-3, 3) / 8,