tweak velocity on overworld
This commit is contained in:
parent
9a4e61e201
commit
787751bd3d
1 changed files with 3 additions and 3 deletions
|
|
@ -59,7 +59,7 @@ public class FoliaFlow extends JavaPlugin implements Listener {
|
|||
if(movingTo != null && movingTo.getType() == Material.END_PORTAL){
|
||||
Location spawnLoc = movingTo.getLocation();
|
||||
spawnLoc.setX(spawnLoc.getX()+0.5);
|
||||
spawnLoc.setY(spawnLoc.getY()-3.5);
|
||||
spawnLoc.setY(spawnLoc.getY()-0.1);
|
||||
spawnLoc.setZ(spawnLoc.getZ()+0.5);
|
||||
|
||||
FallingBlock dummy = loc.getWorld().spawnFallingBlock(spawnLoc, ((FallingBlock) entity).getBlockData());
|
||||
|
|
@ -68,9 +68,9 @@ public class FoliaFlow extends JavaPlugin implements Listener {
|
|||
dummy.setGravity(true);
|
||||
Vector dummyVel = vel.clone();
|
||||
dummyVel.setY(-dummyVel.getY());
|
||||
dummyVel.multiply(new Vector(2, 2, 2));
|
||||
dummyVel.multiply(new Vector(2, 1, 2));
|
||||
|
||||
dummyVel.add(new Vector(0, 3, 0));
|
||||
dummyVel.add(new Vector(0, 0.2, 0));
|
||||
|
||||
dummy.setVelocity(dummyVel);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue