Is there a Player method I could use to force players to spawn at a specific location in a dimension other than the Overworld? I've tried using the following
public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer player,
EnumFacing side, float hitX, float hitY, float hitZ) {
if (worldIn.isRemote) {
return true;
}
else {
player.setSpawnChunk(pos, true, player.worldObj.provider.getDimensionId());
}
return true;
}
It seems to only work in the Overworld though.