This commit is contained in:
MidnightTale 2023-04-11 21:55:20 +07:00
commit d2dbdabd8b

View file

@ -45,7 +45,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
Location spawnLoc = new Location(world, 100, 50, 0); Location spawnLoc = new Location(world, 100, 50, 0);
*/ */
//Entity Scheduler Task //Entity Scheduler Task
foliaLib.getImpl().runAtEntity(entity, () -> { foliaLib.getImpl().runAtLocation(loc, () -> foliaLib.getImpl().runAtLocation(loc2, () -> foliaLib.getImpl().runAtEntity(entity, () -> {
//spawn new falling block in the end dimension and have same properties entity type and material same form entity that detect near end portal //spawn new falling block in the end dimension and have same properties entity type and material same form entity that detect near end portal
FallingBlock dummy = (FallingBlock) loc2.getWorld().spawnEntity(loc2, EntityType.FALLING_BLOCK); FallingBlock dummy = (FallingBlock) loc2.getWorld().spawnEntity(loc2, EntityType.FALLING_BLOCK);
Vector dummyVel = vel.clone(); Vector dummyVel = vel.clone();
@ -58,7 +58,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
dummy.setVelocity(new Vector(1, 0, 0)); dummy.setVelocity(new Vector(1, 0, 0));
//velocity to west //velocity to west
dummy.setVelocity(new Vector(-1, 0, 0)); dummy.setVelocity(new Vector(-1, 0, 0));
}); })));
} }
} }
} }