mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Random pos on item drop
This commit is contained in:
parent
82c655c09a
commit
399f9b808b
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue