loc2
This commit is contained in:
parent
4c02f68e4b
commit
68c3c92936
1 changed files with 2 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
|
||||||
foliaLib.getImpl().runAtEntity(entity, () -> {
|
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 = loc2.getWorld().spawnFallingBlock(loc2, ((FallingBlock) entity).getBlockData());
|
||||||
Vector dummyVel = vel.clone();
|
Vector dummyVel = vel.clone();
|
||||||
dummy.setVelocity(dummyVel);
|
dummy.setVelocity(dummyVel);
|
||||||
//velocity to north
|
//velocity to north
|
||||||
|
|
@ -63,6 +63,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
|
||||||
getLogger().severe("Error spawning falling block entity: " + ex.getMessage());
|
getLogger().severe("Error spawning falling block entity: " + ex.getMessage());
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
logger.info("im here 66");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue